1748275 Members
3728 Online
108761 Solutions
New Discussion юеВ

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 4
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