lvm liveCD help needed
Hi people
I have a little problem that I was hoping someone might be able to help me with.
I 'text mode' installed a FC1 installation and was unable to configure the volume groups or logical volumes (limitation of text mode :( ...). I thought "that's ok - I will just create them later!" - and this is where my problem began :)
I configured the 2 x 200G ide drives with software raid as follows:/dev/md0 - /boot - 100M/dev/md1 - / - 10G/dev/md2 - swap/dev/md3 - one big physical volume (lvm) ~185G
The system is installed and I assume that it all went onto /dev/md1. What I wanted to do was to put /usr, /var, and /home in logical volumes in one large volume group as such:
/vgRoot/lvUsr - 10G
/vgRoot/lvHome - 20G
/vgRoot/lvVar - 120G
with 30G free for playing around with later
Now ...
I have a gentoo live cd (with lvm support) and I assume this is what I need to use to
1. create the volume group vgRoot
2. create the three logical volumes lvUsr, lvHome, lvVar
3. copy /usr, /home, /var from /dev/md1 over to these newly created logical volumes
4. edit /etc/fstab to reflect the new partition layout
5. reboot and dance around the room with my pants down singing 'oh what a beautiful morning'
My problem is I don't know how to access the lvm support on the gentoo live cd and even worse than that - I don't know how to get at my / partition with the live cd because it is a software raid partition and I don't know how to go about mounting it.
Any ideas would be much appreciated - and I will promise not to drop my pants whilst singing if we can get this figured out :)
thanks
pantz
Paul Pianta <[email protected]>
wrote at Wed, Feb 23, 2005 at 04:43:41PM -0500:
Quoted 12 lines
Hi people
I have a gentoo live cd (with lvm support) and I assume this is what I need to use to
1. create the volume group vgRoot
2. create the three logical volumes lvUsr, lvHome, lvVar
3. copy /usr, /home, /var from/dev/md1over to these newly created logical volumes
4. edit/etc/fstabto reflect the new partition layout
5. reboot and dance around the room with my pants down singing 'oh what a beautiful morning'
Paul,
The url below is what i used and it runs perfectly.
http://gentoo-wiki.com/HOWTO_Gentoo_Install_on_Software_RAID_mirror_and_LVM2_on_top_of_RAID
I have a 4x250Gb machine with disk 0 and 3 as raid pair. My fstab looks like this:
/dev/md0 /boot ext3 noauto,noatime 1 1 /dev/md2 / reiserfs noatime 0 0 /dev/md1 none swap sw 0 0 /dev/vg/usr /usr reiserfs noatime 0 0 /dev/vg/var /var reiserfs noatime 0 0 /dev/vg/tmp /tmp reiserfs noatime 0 0 /dev/vg/opt /opt reiserfs noatime 0 0 /dev/vg/home /home reiserfs noatime 0 0
have a look at the URL
Quoted 9 lines
thanks
pantz
_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
--- End of [email protected]'s quote ---
cheers,
Signature · 3 lines
Fred Buzzwords are like annoying little flies that deserve to be swatted
Fred Donck <[email protected]>
wrote at Thu, Feb 24, 2005 at 09:35:03AM +0100:
Quoted 18 lines
Paul,
The url below is what i used and it runs perfectly.
http://gentoo-wiki.com/HOWTO_Gentoo_Install_on_Software_RAID_mirror_and_LVM2_on_top_of_RAIDI have a 4x250Gb machine with disk 0 and 3 as raid pair. My fstab looks like this:
/dev/md0 /boot ext3 noauto,noatime 1 1 /dev/md2 / reiserfs noatime 0 0 /dev/md1 none swap sw 0 0 /dev/vg/usr /usr reiserfs noatime 0 0 /dev/vg/var /var reiserfs noatime 0 0 /dev/vg/tmp /tmp reiserfs noatime 0 0 /dev/vg/opt /opt reiserfs noatime 0 0 /dev/vg/home /home reiserfs noatime 0 0
Quoted 1 line
have a look at the URL
forgot to mentions few things:
o) make sure you have latest available version of lvm2 from gentoo using ACCEPT_KEYWORDS="~x86" emerge lvm2
o) in my case the volumegroup 'vg' is on /dev/md3
Quoted 8 lines
cheers,
Signature · 3 lines
Fred Buzzwords are like annoying little flies that deserve to be swatted
--- End of [email protected]'s quote ---
Signature · 3 lines
Fred Objects in a mirror are closer than you think!
Quoted 4 lines · Fred Donck
forgot to mentions few things:
o) make sure you have latest available version of lvm2 from gentoo using ACCEPT_KEYWORDS="~x86" emerge lvm2
Thanks for the pointer to the how-to Fred. I am trying the above command once booted into the live cd but it is telling me that it can't find 'emerge'.
Is there something that I need to do to enable emerge capability on the live cd before being able to use it?
#ls -l /usr/bin/emerge/usr/bin/emerge -> ../lib/portage/bin/emerge
but when I list /usr/lib/portage there is nothing there!
Sorry I am a bit of a gentoob ... any ideas how to get emerge working on the live cd?
pantz
Quoted 14 lines · Paul Pianta
Quoted 4 lines · Fred Donck
forgot to mentions few things:
o) make sure you have latest available version of lvm2 from gentoo using ACCEPT_KEYWORDS="~x86" emerge lvm2
Thanks for the pointer to the how-to Fred. I am trying the above command once booted into the live cd but it is telling me that it can't find 'emerge'.
Is there something that I need to do to enable emerge capability on the live cd before being able to use it?
Quoted 7 lines
#ls -l
/usr/bin/emerge/usr/bin/emerge-> ../lib/portage/bin/emergebut when I list
/usr/lib/portagethere is nothing there!Sorry I am a bit of a gentoob ... any ideas how to get emerge working on the live cd?
Don't worry about it - I used the version of lvm that comes on the 2004.3 livecd and all went well - only to discover that FC1 doesn't support lvm2 so when I booted back into FC1 it didn't recognise my lvm partitions and so didn't boot any further ...
Not to worry - I just learnt lots about software raid and lvm2 from the gentoo how-to!
thanks again
pantz