There appears to be a problem with the way the /etc/rc.d/rc.sysinit file
is checking for the presence of logical volumes during boot under RedHat
7.3. Or, I could be doing something incorrectly in my LVM setup. I post
here for comments and/or feedback.
I have created a logical volume across two disc partitions (separate,
non-striped discs). The volumes are then mounted via /etc/fstab as:
/dev/internet/ftp /var/ftp ext3 defaults 0 2
/dev/internet/www /www ext3 defaults 0 2
The / partition is *non*-LVM, only the two listed above are part of
These logical volumes work fine after manually running vgscan, vgcheck
-a y, and mount. But during boot up this fails, right when the system
tries to fsck the filesystems. Apparently the volume groups are not
Looking in /etc/rc.d/rc.sysinit there are two sections that attempt to
start the vgscan and vgcheck, but neither section makes it past the
conditional. The original lines are in sysinit twice and appear as:
# LVM initialization
if [ -e /proc/lvm -a -x /sbin/vgchange -a -f /etc/lvmtab ]; then
action $"Setting up Logical Volume Management:" \
/sbin/vgscan && /sbin/vgchange -a y
The evaluation of the statement "-e /proc/lvm" is what seems to be
causing the problem. Removing that from the conditional - leaving only
the check for vgchange and lvmtab - causes the system to scan for the
volume groups correctly, run the fsck.ext3, and boot as normal.
Why is this a problem? Obviously /proc/lvm *does* exist since the /proc
filesystem is supposedly mounted by this point, yet it does not appear
to be found at all during the boot. Except for the change to remove the
conditional, the sysinit file is exactly as installed off the 7.3 discs.
Is this a known problem, or am I doing something incorrectly?