[mythtv-users] Storage Directories - Rotate?
Michael T. Dean
mtdean at thirdcontact.com
Tue Jul 8 18:46:00 UTC 2008
On 07/08/2008 02:35 PM, Trey Thompson wrote:
> Is there a way to have the storage directories rotate? For example, I
> have two drives:
> /mnt/drive1
> /mnt/drive2
>
> I currently have all recordings going to drive 1.
>
> It's my understanding that if I setup another directory in the
> recording group to point to /mnt/drive2, then that will only be used
> when drive1 is full.
>
> Can this rotate so that as new recordings start, they go back and forth?
By default, Myth will select the "local" filesystem with the most space
available for new recordings, where "local" means one accessible through
the filesystem (whether an NFS/CIFS mount or actual local storage).
(Note that you can affect its preference, making some filesystems less
likely to be used, but that's another story.) The only time the default
rotation won't really work is if you have separate backends without NFS
mounts.
On my system, which consists of 2 backends each with local-only storage
and no NFS exports, I've configured cardinputs such that the 1st and 4th
inputs defined are on the master backend and the 2nd and 3rd inputs are
on the slave backend. With that approach, the first recording to start
gets input 1 and, therefore, writes to the master backend. However, any
time 2 or more recordings overlap, the 2nd and 3rd will be written to
the slave backend's storage. When 4 overlap, the 4th will be back on
the master backend.
Mike
More information about the mythtv-users
mailing list