[linux-lvm] FYI - Red Hat 7.2 and LVM module

Michael K Lambert mlambe7 at lsu.edu
Wed May 29 10:33:02 UTC 2002


Hello, all.

Although RH does not support LVM in 7.2, I've been making use of it by
compiling my own kernel. The LVM patches will not patch clean on my RH 390
systems, so we are stuck at version .9.1, but it does work. Just yesterday
I built a new kernel and compiled LVM as a module for the first time. After
building the kernel, I rebooted and was surpirsed to see that LVM did not
initialize. After boot, I could run vgscan manually and lvm would become
active, but not during boot up.

After looking into rc.sysinit, I found that for vgscan to run, three
conditions needed to be met.../sbin/vgscan had to exist, /etc/lvmtab must
exist, and /proc/lvm must exist. Unfortunately, when lvm is modularized,
the /proc entry is created whenever the module is loaded, not permanently.
This causes the rc.sysinit test to fail and LVM is not initialized. Of
course, it is simple to work around this. I changed rc.sysinit to test for
/proc/lvm OR the existence of the lvm-mod, and that seemed to work fine.
This is just an FYI so that others in similar circumstances can avoid any
confusion.

Michael Lambert





More information about the linux-lvm mailing list