[mythtv-users] Recording to a temporary drive

Michael T. Dean mtdean at thirdcontact.com
Wed Nov 12 01:43:21 UTC 2008


On 11/11/2008 05:46 PM, Bobby Gill wrote:
> On Tue, Nov 11, 2008 at 5:35 PM, Brad DerManouelian wrote:
>> On Nov 11, 2008, at 2:27 PM, Bobby Gill wrote:
>>> I added an IDE drive but it's only temporary, I plan to pop another
>>> Sata in the mythbox soon enough. Now if I schedule a recording to
>>> the IDE drive, when I come to pull out the IDE, how would it work in
>>> regards to the Myth database? Say I take out the IDE and move this
>>> recording over to the existing sata or the new one, would I need to
>>> change some link or something?
>> Myth will look through all configured storage groups to find a
>> recording before it gives up. There's nothing you need to do but make
>> sure the file is in one of them.
> Ah, that puts me at ease. Thanks a ton Brad.

Definitely true, but note that there's no reason to make Myth look 
through all configured storage groups.  Just make sure that the 
directory in which you put the recordings is in the same storage group 
before and after the drive swap, and Myth will have no evidence that the 
files have been moved.  (Myth does not store any information about 
physical location of recordings into the database--only information 
about the storage group in which they are stored.)

And, just to make things clear, a storage group is simply "a list of 
directories mapped to a logical name (unrelated to physical location)."  
Myth will first look through all the directories listed in the storage 
group associated with the recording.  If it fails to find the recording, 
it will look through the directories listed in all the other storage 
groups configured for the system.

So, there's no reason not to add the directory that contains the 
recordings on the new drive to the same storage group that was used to 
record the recordings.

I.e. if you have a single storage group, 'Default', with a list of 
directories:

/srv/mythtv/recordings/somedrive/tv
/srv/mythtv/recordings/oldpatadrive/tv

you can either a) mount the new SATA drive at 
/srv/mythtv/recordings/oldpatadrive or b) mount the new SATA drive at 
/srv/mythtv/recordings/newsatadrive and edit the Default storage group 
to remove /srv/mythtv/recordings/oldpatadrive/tv and add 
/srv/mythtv/recordings/newsatadrive/tv .

Note, also, how the mount point directories ( 
/srv/mythtv/recordings/<mount-point-dir> ) should /NOT/ be put into a 
storage group, but a subdirectory under the mount point directory (in 
this case, I used "tv") should be in the storage group.  That way, if 
your drive fails to mount, Myth will not fill up your root drive (for 
example), by writing to the filesystem "under" the unmounted drive's 
filesystem.

Mike


More information about the mythtv-users mailing list