[mythtv-users] additional drive
Daryl McDonald
darylangela at gmail.com
Thu Sep 11 12:25:54 UTC 2014
On Thu, Sep 11, 2014 at 7:56 AM, Hika van den Hoven <hikavdh at gmail.com>
wrote:
> Hoi Daryl,
>
> Thursday, September 11, 2014, 5:58:34 AM, you wrote:
>
>
>
>
>
> > On Wed, Sep 10, 2014 at 8:42 PM, Hika van den Hoven <hikavdh at gmail.com>
> wrote:
>
> > Hoi Daryl,
> >
>
> > Thursday, September 11, 2014, 1:43:26 AM, you wrote:
> >
> >
> >> On Sep 10, 2014 6:55 PM, "Hika van den Hoven" <hikavdh at gmail.com>
> wrote:
> >>>
> >>> Hoi Daryl,
> >>>
> >>> Thursday, September 11, 2014, 12:39:29 AM, you wrote:
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> > On Wed, Sep 10, 2014 at 6:28 PM, jacek burghardt
> >>> > <jaceksburghardt at gmail.com> wrote:
> >>>
> >>> > Well maybe it is permission issue you can can change e it to 0777
> >>> > or change owner to user that runs mythtv. I hope you got one of
> those 10 tb hard drives from wd.
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> > My drives are two single Tb drives, shucks! but on a brighter note
> >>> > I'm back to normal. A reboot meant that I can record tonight, yeah!
> >>> > so if I understand this correctly, I should "cd" to the newly added
> >>> > drive, make a directory there called /media/storage2, reboot, and
> >>> > then I should see the extra space in the FE's info pages?
> >>>
> >>> In essence correct. To sum it all up:
> >>> On what I assume is your root partition you need to have two
> >>> directories, /media/storage and /media/storage2. As you have it added
> >>> to your /etc/fstab you should, if you run df after a reboot see the
> >>> two 1 Tb volumes being mounted on those two mount-points.
> >>> Then within those two volumes you can create directories you add to
> >>> your volumegroups. By adding the same directory for every volume group
> >>> you use to each drive and adding them both to that volumegroup you
> >>> will get a balanced use over the two volumes.
> >>> Check that each directory you create on the two drives is owned by
> >>> your mythtv user ( for example: sudo chown mythtv
> >>> /media/storage/recordings etc.) and that the rights are 755 or 750
> >>> (sudo chmod 755 /media/storage/recordings) Also both /media,
> >>> /media/storage and /media/storage2 should have at least rx rights for
> >>> other ( sudo chmod o+rx /media/storage2 )
> >>>
> >>> Tot mails,
> >>> Hika mailto:hikavdh at gmail.com
> >>>
> >>> "Zonder hoop kun je niet leven
> >>> Zonder leven is er geen hoop
> >>> Het eeuwige dilemma
> >>> Zeker als je hoop moet vernietigen om te kunnen overleven!"
> >>>
> >>> De lerende Mens
> >>>
> >>> _______________________________________________
> >>> mythtv-users mailing list
> >>> mythtv-users at mythtv.org
> >>> http://www.mythtv.org/mailman/listinfo/mythtv-users
> >>> http://wiki.mythtv.org/Mailing_List_etiquette
> >>> MythTV Forums: https://forum.mythtv.org
> >> My set up may be slightly different, originally I started with one
> >> 1Tb drive, and had my son come over and set up a separate partition
> >> for recordings, what he did, apparently was create a link from
> >> /var/lib/mythtv to the new partition, so everything that is in that
> >> directory is on the separate partition, keeping root safe from
> >> corruption. There is actually another directory beside mythtv called
> >> "forever" where I could put recordings I wanted to keep. This was
> >> done with limited knowledge of myth's potential and I think I will
> undo it, as it is not used.
> >> So, has this original setup been done on a less than standard way,
> >> and need to be changed to allow the second drive to come into use
> >> properly? The OS is on a separate 250 Gb drive and the
> >> /var/lib/mythtv directory is on one 1Tb drive (/dev/sdc1) and the
> >> other 1Tb drive (/dev/sdb3) is ext4 with nothing on it. It was the
> >> original drive that my son separated and partitioned for me a year ago
> hence sdb3.
> >> I'm hoping this is a puzzle to your liking, Hika and not too
> >> confounded. The drive with recordings is only about 5/8 full so no
> >> great panic to get the second on line, but with the new season
> >> around the corner I may need the extra space.
> >> Again many thanks to all contributes to this point. Daryl
> >
> >
>
> > Except for being needlessly complicated with the simlink it doesn't
> > seem wrong. Only if /dev/sdb3 for any reason fails to mount, the
> > mythtv home directory will be a dead link. So if you feel like
> > straitening things out I would start by letting all volume groups
> > point directly to the directories in /media/storage/mythtv ( as I
> > assume it is called) and not to /var/lib/mythtv, this including the
> > metadata directories (banners, coverart, fanart, screenshots,
> > trailers) and video and livetv. Secondly to move everything except the
> > storagegroups, the metadata directories and video and livetv back
> > to being strait on /var/lib/mythtv. This last is a bit tricky for you
> > have to remove the simlink to the directory, which is not easy.
> >
> > Alternatively to this last part you can change the mythtv
> > homedirectory to /media/storage/mythtv instead of to the simlink.
> >
> > sudo usermod -d /media/storage/mythtv mythtv
> > (assuming the directoryname and the username to be as in the command)
> >
> > You then can leave the simlink as backup for wherever it might be
> > hardcoded in any configfile.
> > Be also sure to set the keep free parameter for the recording high
> > enough so your home directory can not get into trouble. I suggest 10
> > Gb
> >
> > If you want to move the main home directory back to being strait on
> > /var/lib/mythtv. You do the following:
> > Make sure mythbackend is not running
> > log in as a different user then mythtv
> > unmount /media/storage:
> > sudo umount /media/storage
> > now you can delete the simlink /var/lib/mythtv for it is dead:
> > sudo rm /var/lib/mythtv
> > create the directory /var/lib/mythtv and set the rights OK:
> > sudo mkdir /var/lib/mythtv
> > sudo chown mythtv /var/lib/mythtv
> > sudo chmod 750 /var/lib/mythtv
> > remount /media/storage
> > sudo mount /media/storage
> > copy everything from /media/storage/mythtv except for the storage
> > directories, the metadata directories, video and livetv back to
> > /var/lib/mythtv. Be sure to catch the hidden directories like .mythtv.
> > Then as an extra check that everything is still owned by mythtv run:
> > sudo chown -R mythtv /var/lib/mythtv
> >
> > Then on the second drive on /media/storage2 you create a recordings
> > directory as described earlier and add that to the storage group. You
> > can also do so for for instance livetv.
> >
>
> >
> > Tot mails,
> > Hika mailto:hikavdh at gmail.com
> >
> > "Zonder hoop kun je niet leven
> > Zonder leven is er geen hoop
> > Het eeuwige dilemma
> > Zeker als je hoop moet vernietigen om te kunnen overleven!"
> >
> > De lerende Mens
>
>
> > As I read what you've responded it's becoming clear that I
> > misinformed you. From poking around in the BE setup storage
> > directories, they are all pointing to /var/lib/mythtv, the symlink
> > my son setup for me was in my home directory (on the precise system)
> > to the mythtv directory (so I could easily manipulate recordings) so
> > becuse of the fstab editing, I assume, the two 1Tb drives present
> > themselves as "/media/storage" and "/media/storage2" (when I hover
> > on them after launching files), but /media/storage only has two
> > directories in it, mythtv ( this including the metadata directories
> > (banners, coverart, fanart, screenshots, trailers) and video and
> > livetv.) and forever (which I will remove) so now I would create a
> > directory in /media/storage2 called "recordings"? In /media/storage
> > there is mythtv with recordings in it, so I would have two
> > recordings directories? "/media/storage/mythtv/recordings" and
> > "/media/storage2/recordings" or should it be
> > "/media/storage2/mythtv/recordings"? as always, much appreciated
> Daryl
>
> De Nada. I already thought it strange for setting a simlink as
> homedirectory, although it would work. But then young people (I assume
> your son to be young) in my experience sometimes choose strange
> solutions without thinking it fully through. They often solve things
> as they come without looking at a further future and without placing
> themselfs in the position of the person they help solve.
>
>
> Tot mails,
> Hika mailto:hikavdh at gmail.com
>
> "Zonder hoop kun je niet leven
> Zonder leven is er geen hoop
> Het eeuwige dilemma
> Zeker als je hoop moet vernietigen om te kunnen overleven!"
>
> De lerende Mens
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
OK, I'm creating the directory in /media/storage2 and I chown'd it and
chmod'd it, and it looks like this:
drwxrwxr-x 2 mythtv root 4096 Sep 11 08:14 mythtv
whereas in /media/storage the same directory looks like:
drwxrwxr-x 15 ntp mythtv 4096 Sep 11 07:31 mythtv
Did I not chown it properly?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20140911/3bb179b4/attachment.html>
More information about the mythtv-users
mailing list