[mythtv-users] Moving from local disk to NFS for recordings

Michael T. Dean mtdean at thirdcontact.com
Fri Oct 18 16:21:27 UTC 2013


On 10/10/2013 05:28 PM, Phill Edwards wrote:
> I have a virtualised MythBackend 0.26 with recordings stored on two "local"
> disks (i.e. disks installed in the vmWare ESXi hypervisor machine). I want
> to change this setup so that recordings are stored on NFS. I have my NFS
> server already configured (except it doesn't yet have the disks as they're
> already in use by MythTV) but I'm not sure how to go about making the
> switch.
>
> My storage groups are currently:
> /mnt/xvdb1/recordings
> /mnt/xvdc1/recordings

Those aren't Storage Groups.  Those are directories.  Storage Groups are 
lists of directories (i.e. a grouping of several directories).  So, I'm 
assuming you mean, "The directory list for my Default (and/or Live TV) 
Storage Group contains:" (and if you do have identical Default and Live 
TV Storage Group directory lists, you should really delete the Live TV 
SG completely from the master backend's mythtv-setup).

> My plan is as follows:
>
> - Remove /mnt/xvdb1/recordings from the list of storage groups in
> mythtv-setup
>
> - Move everything on disk 1 (/mnt/xvdb1/recordings) to temporary storage on
> a USB disk
>
> - Install disk 1 into the hypervisor, mount it on my NFS machine and copy
> the files back from the USB disk.
>
> - Repeat for disk 2 (/mnt/xvdc1/recordings)
>
> - Recreate the storage groups to point to my new NFS shares.
>
> - Finished!
>
> Is this the right way to approach this? Any better options? Anything I've
> missed? The main aim is to migrate without losing any recordings.

Yes (terminology notwithstanding :).  Just ensure that the recordings 
exist inside any directory in any Storage Group and all is well.  You 
can even run MythTV applications when one or more recordings are missing 
and it won't cause problems.  So feel free to keep running MythTV when 
you're waiting for the many, many hours it will take to copy the data 
around.  Just remember that MythTV will continue to record to 
directories that are in the Storage Group, so you may want to remove the 
directory you're currently moving from the SG directory list, then run 
MythTV, then add the new NFS location for that directory and remove the 
other directory, ...

Mike


More information about the mythtv-users mailing list