[mythtv-users] Adding a hard drive, LVM or RAID0

Phill Wiggin wigginp at mantech-wva.com
Thu May 19 19:51:27 UTC 2005


Ryan Steffes wrote:

>On 5/19/05, Phill Wiggin <wigginp at mantech-wva.com> wrote:
>  
>
>>For whatever reason (random "eeny-meeny-miney-mo" decisionmaking), I
>>chose reiserfs. It works fine and I've had no problems with it.
>>
>>Out of curiosity, what did you mean when you said:
>>
>>6) Unmount both the new hard drive and my old video partition, rename
>>the logical partition to be the same as my old partition
>>
>>I'm thinking you just need to change your mount in fstab
>>
>>/dev/VGforTV/tv /mythtv/tv reiserfs auto 0 0
>>
>>or something like that... No renaming anything needed.
>>
>>You'll also need to be sure that lvm is activated at bootup.
>>
>>Manually:
>>vgscan                                 (scans for VGs)
>>vgchange -a y                      (activates the Volume Groups and puts
>>them in /dev)
>>mount /dev/VGforTV/tv /myth/tv
>>
>>
>>**
>>
>>In my setup, /myth is on /  /myth/tv is a VG /myth/video is a separate VG
>>
>>/dev/VGforTV/tv /mythtv/tv reiserfs auto 0 0
>>/dev/VGforVideo/video /mythtv/video reiserfs auto 0 0
>>
>>**
>>
>>I'm at work and getting ready to go home so I'm not being very complete.
>>If any of this is confusing, I'd be happy to be more detailed.
>>
>>--Phill Wiggin
>>
>>Greg Cope wrote:
>>
>>    
>>
>>>Choose a file system that you can grow, otherwise you will add another
>>>volume, but the file system will still be the same size.
>>>
>>>      
>>>
>
>
>How are you manually doing the vgscan & vgchange before the fstab
>runs, I assume a script of some sort, but do you have it anywhere in
>particular?
>
Sorry 'bout that, I was doing two things at once again.    In my
example, I'm assuming you are on a clean boot and the fstab has been
processed and no lvm configuration has been done.  Currently, my backend
doesn't mount the lvm partitions correctly on bootup, so I have to
manually do it when I reboot (I can fix it, I just haven't found the
time).  So, I'm pretty familiar with the initialization of lvm
partitions.  Having said that, I'm not particularly an expert, so if
someone else would like to correct me, please do. :)

(FyI, I'm using Gentoo)

Basically, up to your step 4, we're on the same page.

4a) vgscan  (to put the lvm info into lvmtab (or somesuch))
4b) vgchange -a y (to activate /dev/VGforTV/tv)
4c) format /dev/VGforTV/tv
5) mount /dev/VGforTV/tv /myth/tv

4a-c is the manual way to load and mount an lvm partition.  In Gentoo,
all I needed to do was add lvm to the startup scripts using:
rc-update add lvm default
I'm guessing w/ FC, you'll probably need to create a S02lvm link that
points to /etc/init.d/lvm or something similar.  I'm pretty sure the
myth documentation covers it.

Once you update your fstab with the mount points you want to use, get
that lvm startup script in place and you should be good to go. The lvm
startup script should take care of the vgscan and vgchange as well as
the mount.

--Phill W.










More information about the mythtv-users mailing list