[mythtv-users] Odd: Storage Group is showing two different drives as the same MythTV drive

Michael T. Dean mtdean at thirdcontact.com
Wed Jul 25 19:11:33 UTC 2007


On 07/25/2007 02:49 PM, Robert Kulagowski wrote:
> Michael T. Dean wrote:
>   
>> On 07/25/2007 12:38 PM, Robert Kulagowski wrote:
>>     
>>>      * MythTV Drive #2:
>>>            o Directories: mbe:/mnt/d3/video, mbe:/mnt/d4/video
>>>            o Total Space: 305,122 MB
>>>            o Space Used: 104,125 MB
>>>            o Space Free: 200,997 MB
>> ...
>>     
>>> $ df
>>> /dev/sda6            310333324 110571892 199761432  36% /mnt/d6
>>> /dev/sdb1            312445808 190638236 121807572  62% /mnt/d1
>>> /dev/sdc1            312445808 112946616 199499192  37% /mnt/d2
>>> /dev/sdd1            312445808 105659152 206786656  34% /mnt/d3
>>> /dev/sde1            312445808 106638676 205807132  35% /mnt/d4
>>> /dev/sdf1            390567516 288744124 101823392  74% /mnt/d5
>>>       
>> Partitions /dev/sd{b,c,d,e}1 all have the exact same size and /dev/sdd1
>> and /dev/sde1 have free space that is within 5 seconds of your max
>> recording bitrate, so...
>>
>> dd if=/dev/zero of=/mnt/d4/delete_me bs=1M count=100
>>
>> should make this "temporary" mistake disappear (for now :).  Or, with
>> the appropriate of, bs, and count, you could make all of the disks
>> appear as the same one in your status report.  (BTW, just guessing a
>> value for count--may need to increase it.)
>>     
>
> Without doing anything, now I have:
...
>      * MythTV Drive #2:
>            o Directory: mbe:/mnt/d3/video
>            o Total Space: 305,122 MB
>            o Space Used: 105,380 MB
>            o Space Free: 199,742 MB
>      * MythTV Drive #3:
>            o Directory: mbe:/mnt/d4/video
>            o Total Space: 305,122 MB
>            o Space Used: 104,139 MB
>            o Space Free: 200,983 MB

Your free space went from 956MB difference (first post, according to df
as quoted above) to 1196MB difference (from the above).  I'm guessing
you were recording something and it went to /mnt/d3.  If so, the
recording did the dd for you.  :)

> So the collapse of d3 and d4 into one "Drive" altered the Total Space / 
> Free Space calculation.

Yep.  It only includes the drive in the calculation for total once, so
if it thinks two drives are the same, it will affect the totals (until
it realizes they're different).

>> However, I do have a question.  Every once in a while in your master
>> backend log, you should see, "AutoExpire: Found max recording rate of
>> XXX MB/min".  What's the value you get?
> 2007-07-16 09:51:13.551 AutoExpire: Found max recording rate of 771 MB/min

Interesting...  That means that it should only consider them within 5
seconds of each other if they're within 155MB of each other, but the
values you posted from the df were almost 1GB apart.  Was the df from
the same time as your requesting the backend status page?  Were there
recordings occuring while you gathered the info (and you got the backend
status, then afterwards got the df output)?  What architecture is your
master backend?  And, just for good measure, how many capture cards do
you have and what types are they?  (I'm wondering if there's a type
error in some of the calculations and hoping all this will help me
determine where to look.)

Thanks,
Mike



More information about the mythtv-users mailing list