Question : LVM install

On linux 2.1 AS, installed LVM pkg. Now I am trying to use it but I am getting following error:

[root@tc01a root]# rpm -q lvm
lvm-1.0.6-1
[root@tc01a root]# vgscan
vgscan -- LVM driver/module not loaded?


What am I missing here? What should I do to make LVM work?

Thank You in advance,

Sreeram

Answer : LVM install

> the procedure to re-compile kernel to load LVM within the kernel please
1. Check the kernel-source package installation:
# rpm -q kernel-source
If not installed, then install it from the CD (Kernel development) or download from RHN network.

2. After kernel-source installed, login as root in X-window:
# cd /usr/src/linux-2.4
# make mrproper
# make xconfig
Go to "File systems" and search for all "LVM" related and check "y".
Save and Exit.
# make dep
# make clean
# make bzImage
# make modules
# make modules_install
# depend -a
# mv /usr/src/linux-2.4/Systme.map /boot/System.map-2.4.9-e.49custom  <== version may vary
# mv /usr/src/linux-2.4/arch/i386/boot/bzImage /boot/vmlinuz-2.4.9-e.49custom  <== version may vary

3. Edit /etc/grub.conf, and add (the version and partition may vary)
--------------
title RHEL AS 2.1custom (2.4.9-e.49) <== version may vary
 root (hd0,0) <== partition may vary
 kernel /vmlinuz-2.4.9-e.49custom ro root=/dev/hda4 <== version/partition may vary
-------------

If you never compile kernel before, then you'd better read the following documount
carefully before you go for it:
http://www.redhat.com/docs/manuals/linux/RHL-7.2-Manual/custom-guide/custom-kernel.html

Still, NOT recommend use build-in LVM with RHEL 2.1 since kernel 2.4.9 is not well support
LVM (That's why LVM is not enabled in kernel by default). You will end up data lost.

Regards,

Wesly
Random Solutions  
 
programming4us programming4us