Bug 72287 - LVM start-up fails prior to fscks
Summary: LVM start-up fails prior to fscks
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 7.3
Hardware: i386
OS: Linux
high
high
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-08-22 18:45 UTC by Bevis King
Modified: 2014-03-17 02:30 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-08-28 16:40:47 UTC
Embargoed:


Attachments (Terms of Use)

Description Bevis King 2002-08-22 18:45:42 UTC
Description of Problem:
Three of eight LVM partitions are reported as not existing during boottime
fsck despite being present.  It appears that the operation of LVM is not
detected correctly in /etc/rc.d/rc.sysinit and that fsck is only reporting
the first three failed devices.

Version-Release number of selected component (if applicable):
RedHat 7.3 SMP (Dual PIII) - supplied lvm (1.0.3)

How Reproducible:
Consistantly on this box.

Steps to Reproduce:
1. set up and mount LVM partitions via /etc/fstab, mark them to be
   fsck'd.
2. reboot
3. fsck fails with /dev/vg00/groupname: not a block device

Actual Results:
Drops to single user "Repair Filesystem" mode.

Expected Results:
Boots cleanly, fscks partitions and proceeds to mount them.

Additional Information:
I fixed this problem by removing the test in /etc/rc.d/rc.sysinit for the
existance of /proc/lvm.  The test is now based solely on executable-ness
of /sbin/vgchange and on the existance of /etc/lvmtab.  Under these
circumstances the "Starting Logical Volume Manager" message does now appear
and the fsck proceeds normally and the system comes up with the LVM partitions
live and mounted.

Comment 1 Trond Eivind Glomsrxd 2002-08-28 16:40:40 UTC
Looks like a initscript issue

Comment 2 Bill Nottingham 2002-08-28 18:55:23 UTC
You need to remake your initrd so that the lvm modules are on the initrd.

Comment 3 Bevis King 2002-08-29 08:36:21 UTC
This seems to me a mistake to leave it as that.  Yes, I appreciate it is a way
around the problem, but it's far from intuitive and is bound to trap a large
number of people and get many new-to-Linux system administrators stuck with
problems when trying to bring up a new Linux fileserver.

If you remove the test against /proc/lvm, it still uses the presence of
/sbin/vgchange (and hence of the LVM rpm) and the existence of a /etc/lvmtab
(and hence that the vgcreate has been run) to validate that LVM is likely to be
desired.  The driver is then modprobe'd by the existence of the entry in
/etc/fstab and loads fine.

There seems to me to be absolutely no need to go the initrd route - yes it
creates the /proc/lvm entry sought by the init script ahead of time - but the
test is extremely unlikely "to go off by mistake" even without the /proc/lvm
test and will not have particularly adverse effects even if it does.  Making an
LVM aware initrd seems excessive merely to satisfy an init script test that is
unlikely to go off in error.

Just my tuppence worth....

Regards, Bevis.


Note You need to log in before you can comment on or make changes to this bug.