Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

LVM

K.C. Chan
Trusted Contributor

LVM

Does any know if rh7.2 comes with LVM utilities. Thanks.
Reputation of a thousand years can be determined by the conduct of an hour
4 REPLIES
Kodjo Agbenu
Honored Contributor

Re: LVM

Hello,

It seems that RedHat does not support LVM.

None of the RedHat distros currently supports LVM. Moreover, despite LVM is built in the kernel since 2.4.1, RedHat does not even compile the LVM driver as module that you could load manually.

If you want LVM with RedHat :

-> re-compile the kernel with LVM driver
-> install the LVM utilities
-> edit the /etc/rc.d/rc.sysinit file to add the two following lines :
vgscan
vgchange -a y

-> if the LVM is to be compiled as a module, don't forget to change your initial ramdisk (initrd) to add this. If you are not at ease with that, do not compile LVM as a module. It is better to have it directly included in the kernel.

Warning : if you decide to put some of the system mountpoints (/, /usr, ...) in LVM volumes, you must be aware by the fact that RedHat update bootable floppies or cd-roms won't work, because the kernel used during install/upgrade does not support LVM !


If you want a distro that is completely integrated with LVM, use SuSE or Mandrake.

Good luck.


Kodjo
Learn and explain...
K.C. Chan
Trusted Contributor

Re: LVM

Could you explain how I could add this to the intial ramdisk. Is via command line or is it something I've to add in the kernel? Thanks.
Reputation of a thousand years can be determined by the conduct of an hour
Eric Ladner
Trusted Contributor

Re: LVM

Once you build the kernel, say version 2.4.17, you just

$ mkinitrd /boot/initrd-2.4.17.img 2.4.17

The 2.4.17 part of the mkinitrd line has to match what the kernel was installed into /boot as (i.e. /boot/vmlinuz-2.4.17, the 2.4.17 part).

Cheers

K.C. Chan
Trusted Contributor

Re: LVM

All, Thanks for your reply. I've found this out long time ago.
Reputation of a thousand years can be determined by the conduct of an hour