[mythtv] Storage Groups - OK to move files between directories in same group ?

Albert Graham agraham at g-b.net
Mon Mar 17 14:29:18 UTC 2008



Nick Morrott wrote:
> On 17/03/2008, Albert Graham <agraham at g-b.net> wrote:
>
>   
>>  My question is, is it OK to move the new nightly recordings from /disk1
>>  to /disk2 (once mounted), both /disk1 and /disk2 are in the same storage
>>  group ?
>>
>>  I've tried this and I pretty sure it works OK, except now and again I
>>  get program listings like "_NO_TITLE_" and when I try play it says file
>>  not found ?, no "I"nfo is available for the file - except length in
>>  minutes.
>>     
>
> Do you get these errors when the /disk2 array is mounted for
> recordings made when it was unmounted (and recorded into the
> mountpoint directory on the first array)? Are you certain that the
> missing recordings are not just being hidden when your second array is
> mounted?
>
>   

I have an NFS export from my backend server as follows:

/raid5/mythtv    
10.0.0.0/8(fsid=12347,rw,insecure,no_root_squash,no_subtree_check,async,wdelay)

I have a symlink from /mythtv -> /raid5/mythtv on the backend

That is so both the backend and the frondend have the same view of the 
disks i.e. /mythtv as the data root.

The /mythtv directory structure is as follows:

For the Raid5 disk:

raid5/mythtv/
|-- covers
|   |-- music
|   `-- videos
|-- localrecordings -> /localrecordings
|-- lost+found
|-- music
|-- recordings
`-- videos


For the Raid0 disk:

raid5/mythtv/
|-- covers
|   |-- music
|   `-- videos
|-- localrecordings -> /localrecordings
|-- lost+found
|-- music
|-- recordings -> /localrecordings
`-- videos

As you can see when /raid5/mythtv is mounted, you can view all the data 
from both sides, but at night time, you
can only see /localrecordings in both places i.e. /mythtv/recordings and 
/mythtv/localrecordings point to the same place on the raid0 disk


My default storage group has two entries as follows:

/mythtv/recordings
/mythtv/localrecordings


OK, there is another reason for /localrecordings, I plan to let the 
frontend do some recordings on its local disk at a later date, in which 
case /mythtv/recordings (NFS server) will not be available at night, so 
I want that to record locally.

The data files are rsync'd from the /localrecordings directory to the 
/mythtv/recordings directory in the morning (this requires that I 
shutdown the backend :( )

Essentially, I need to know if files can be moved between the two 
directories without having to update the database, in other words, is 
the new storage groups intelligent enough to know, that a file "could" 
exist in any path within a storage group? or does it just remember in 
which directory in a group it put the file ?

As far as the _NO_TITLE_ is concerned, I'll need to investigate at what 
time this happens, but another thing its not (or does not seem to be) 
possible to delete the _NO_TITLE_ entry using the Delete option.

Thanks.

Albert.



More information about the mythtv-dev mailing list