<div dir="ltr"><div class="gmail_quote">On Mon, Aug 25, 2008 at 5:46 PM, Enigma <span dir="ltr">&lt;<a href="mailto:enigma@thedonnerparty.com">enigma@thedonnerparty.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div dir="ltr">Longtime Myth user, I have a 3 frontend/ 1 FE-BE/ 1 backend Myth 0.21 network.&nbsp; I have ~1.4 TB of storage, on 4 separate mount points:<br><br>
<ul>
<li>MythTV Drive #1: <br>
<ul>
<li>Directories: burns:/home/share/MYTH/db_backups, burns:/home/share/video, coilette:/home/share/video</li>
<li>Total Space: 1,102,486 MB </li>
<li>Space Used: 1,077,288 MB </li>
<li>Space Free: 25,197 MB </li></ul></li>
<li>MythTV Drive #2: <br>
<ul>
<li>Directory: burns:/mnt/disk1</li>
<li>Total Space: 187,785 MB </li>
<li>Space Used: 162,972 MB </li>
<li>Space Free: 24,812 MB </li></ul></li>
<li>MythTV Drive #3: <br>
<ul>
<li>Directory: burns:/mnt/disk2</li>
<li>Total Space: 20,399 MB </li>
<li>Space Used: 379 MB </li>
<li>Space Free: 20,019 MB </li></ul></li>
<li>MythTV Drive #4: <br>
<ul>
<li>Directory: burns:/mnt/disk3</li>
<li>Total Space: 183,933 MB </li>
<li>Space Used: 153,203 MB </li>
<li>Space Free: 30,730 MB </li></ul></li>
<li>Total Disk Space: 
<ul>
<li>Total Space: 1,494,604 MB </li>
<li>Space Used: 1,393,844 MB </li>
<li>Space Free: 100,759 MB </li></ul></li></ul><br>Drive #3 is configured as a LiveTV drive, the rest are all in the default storage group.<br><br>Today, I have a very irate and panicky roommate who has just discovered that the NASCAR race from last weekend has already been deleted.&nbsp; Checking the system, I notice that all the NASCAR races have been deleted.&nbsp; Upon checking the logs, I discovered that MythTV had autoexpired them, along with many other recordings that had very recently been made.&nbsp; Checking the autoexpire list, there are hundreds of items that are available to be expired that are much older than the items that were expired.&nbsp; For an example of the logfile when expiring:<br>
<br>2008-08-25 05:06:24.954 Scheduled 789 items in 14.3 = 0.00 match + 14.31 place<br>2008-08-25 05:15:50.998 AutoExpire: CalcParams(): Max required Free Space: 22.0 GB w/freq: 10 min<br>2008-08-25 05:15:51.579 Expiring 1320 MBytes for 4849 @ Sat Aug 23 14:00:00 2008 =&gt; Mega Disasters &quot;Dam Break&quot;<br>
2008-08-25 05:15:51.670 Reschedule requested for id 0.<br>2008-08-25 05:16:14.024 Scheduled 789 items in 22.3 = 0.00 match + 22.29 place<br>2008-08-25 05:16:14.032 Reschedule requested for id 0.<br>2008-08-25 05:16:31.271 Scheduled 789 items in 17.2 = 0.00 match + 17.18 place<br>
2008-08-25 05:21:26.398 UPnpMedia: BuildMediaMap - no VideoStartupDir set,&nbsp; skipping scan.<br>2008-08-25 05:25:52.104 AutoExpire: CalcParams(): Max required Free Space: 22.0 GB w/freq: 10 min<br>2008-08-25 05:25:52.727 Expiring 1455 MBytes for 4849 @ Sat Aug 23 15:00:00 2008 =&gt; Modern Marvels &quot;Wheat&quot;<br>
2008-08-25 05:25:52.864 Reschedule requested for id 0.<br>2008-08-25 05:26:14.276 Scheduled 789 items in 21.4 = 0.00 match + 21.37 place<br>2008-08-25 05:26:14.311 Reschedule requested for id 0.<br>2008-08-25 05:26:31.055 Scheduled 789 items in 16.7 = 0.00 match + 16.70 place<br>
2008-08-25 05:35:53.233 AutoExpire: CalcParams(): Max required Free Space: 22.0 GB w/freq: 10 min<br>2008-08-25 05:45:54.281 AutoExpire: CalcParams(): Max required Free Space: 22.0 GB w/freq: 10 min<br>2008-08-25 05:45:54.824 Expiring 1481 MBytes for 4849 @ Sat Aug 23 16:00:00 2008 =&gt; Modern Marvels &quot;Coin Operated&quot;<br>
2008-08-25 05:45:55.004 Reschedule requested for id 0.<br>2008-08-25 05:46:15.576 Scheduled 789 items in 20.5 = 0.00 match + 20.50 place<br>2008-08-25 05:46:15.584 Reschedule requested for id 0.<br>2008-08-25 05:46:31.863 Scheduled 789 items in 16.2 = 0.00 match + 16.22 place<br>
2008-08-25 05:51:31.447 UPnpMedia: BuildMediaMap - no VideoStartupDir set,&nbsp; skipping scan.<br>2008-08-25 05:55:55.336 AutoExpire: CalcParams(): Max required Free Space: 22.0 GB w/freq: 10 min<br>2008-08-25 05:55:55.891 Expiring 3135 MBytes for 1051 @ Sat Aug 23 17:00:00 2008 =&gt; NASCAR Countdown<br>
2008-08-25 05:55:55.994 Reschedule requested for id 0.<br>2008-08-25 05:56:20.219 Scheduled 789 items in 24.2 = 0.00 match + 24.16 place<br>2008-08-25 05:56:20.228 Reschedule requested for id 0.<br>2008-08-25 05:56:36.972 Scheduled 789 items in 16.7 = 0.00 match + 16.67 place<br>
<br><br>As you can see, Myth is autoexpiring programs that were recorded just 2 days earlier.&nbsp; <br><br><br>So my questions are:<br><br>#1 Is there any way to determine why these programs were autoexpired earlier than hundreds of other eligible programs? (like 550 GB of Olympics?)<br>
<br>#2 How the hell can I keep it from happening again?</div></blockquote>
<div>&nbsp;</div>
<div>I think a good question to answer is why, within the space of 30 minutes, is enough disk space being taken up on that drive that you are bumping against the 22GB reserve 4 times (roughly once every ten minutes).&nbsp; MythTV will show you what it is considering for auto-expiration and in what order on the System Status screen in the Frontend.&nbsp; This can be age, priority, or other combinations.&nbsp; But obviously something is consuming the disk space so Myth does what it is told and makes space available.</div>

<div>&nbsp;</div>
<div>Also, if you don&#39;t want stuff to expire, don&#39;t mark it for expiration.</div>
<div>&nbsp;</div>
<div>Kevin</div></div></div>