[mythtv-users] storage groups

Simon Hobson linux at thehobsons.co.uk
Sat Oct 20 07:49:33 UTC 2012


Dave Lawton wrote:

>This is how I do it (best done before starting any recordings)
>
>Install MythTv (Mythbuntu) just using a single drive - sda
>as below.  Then quit both the frontend & the backend.
>
>I have 3 drives :-
>System (sda) swap (sda1), / ext4 (sda2) /home xfs (sda3)
>Recordings1 (sdb1) xfs
>Recordings2 (sdc1) xfs
>
>On / create Recordings folder, then change user & group.
>
>sudo mkdir Recordings
>sudo chown -R mythtv /Recordings
>sudo chgrp -R mythtv /Recordings
>
>Then create 2 subfolders
>
>sudo mkdir /Recordings/Recordings01
>sudo chown -R mythtv /Recordings/Recordings01
>sudo chgrp -R mythtv /Recordings/Recordings01
>
>sudo mkdir /Recordings/Recordings02
>sudo chown -R mythtv /Recordings/Recordings02
>sudo chgrp -R mythtv /Recordings/Recordings02
>
>Now mount the drives
>
>sudo mount -t xfs /dev/sdb1 /Recordings/Recordings01
>sudo mount -t xfs /dev/sdc1 /Recordings/Recordings02
>
>Restart the backend, and go into setup.
>go into Storage Directories>Storage Groups>Default
>Using (Add New Directory) add
>/Recordings/Recordings01
>/Recordings/Recordings02

And if one of those volumes fails to mount for any reason, as pointed 
out by Raymond Myth *WILL* proceed to fill up your root filesystem 
which is "not pretty" when the system crashes.

Put the recordings within a directory within the mounted filesystem. 
So using your setup, you'd want to create folders of (say) 
/Recordings/Recordings01/Myth and /Recordings/Recordings02/Myth. That 
way, if the volume fails to mount, the storage directory doesn't 
exist, and Myth won't record to it.

Personally I use /store<n>/ for my mountpoints, and /store<n>/myth 
for my recordings. I also have /store<n>/video and so on for the 
other stuff that Myth uses - again, on th emounted volume but not in 
the root.
-- 
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.


More information about the mythtv-users mailing list