Bug 75492 - initscripts /etc/rc.sysinit fails to mount lvm partitions if lvm-mod is not loaded
Summary: initscripts /etc/rc.sysinit fails to mount lvm partitions if lvm-mod is not l...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 8.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On: 50556
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-10-09 01:16 UTC by Josiah Royse
Modified: 2014-03-17 02:31 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-10-18 20:06:59 UTC
Embargoed:


Attachments (Terms of Use)

Description Josiah Royse 2002-10-09 01:16:58 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830

Description of problem:
The rcsysinit script to activate lvm partitions only works if the lvm-mod module
is contained in the initrd, or preloaded.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.install RedHat 8.0
2.setup a lvm partition
3.setup lvm parition to be mounted in /etc/fstab
4. reboot
	

Actual Results:  /etc/rc.sysinit lvm check is skipped because:
if [ -e /proc/lvm -a -x /sbin/vgchange -a -f /etc/lvmtab ]; then

doesn't find a /proc/lvm (the module is not loaded).


Expected Results:  /etc/rc.sysinit check runs lvm command "vgchange -a y" and
lvm filesystems are mounted.

Additional info:

There are several bugs that are in previous versions of RedHat:
50556
55460
57563

There are many proposed solutions, this is also one:

# If there are lvm configs, but no module, load the module
if [ ! -d /proc/lvm -a -f /etc/lvmtab.d/* ]; then
        /sbin/insmod
fi
# continue with /etc/rc.sysinit
if [ -e /proc/lvm -a -x /sbin/vgchange -a -f /etc/lvmtab ]; then
        /sbin/vgscan && /sbin/vgchange -a y
fi

Comment 1 Bill Nottingham 2002-10-18 20:06:53 UTC
Hm, sure, we can load the module. Added in CVS.

Comment 2 Travis Waldher 2003-08-04 22:00:11 UTC
The problem is not resolved with LVM.  Here's the catch in RH 8.0 that I 
experienced.

If during Anaconda setup using Disk Druid, I create a Volume Group.  LVM loads 
fine during bootup.

If I setup the volume group AFTER I install the machine, LVM fails as described.


Comment 3 Josiah Royse 2003-08-04 22:51:48 UTC
This was a fix for RH 8.0- so you'll have to be sure you are up2date.  Double
check the /etc/rc.sysinit script for the LVM file checks, you may no have put
the lvm config files in the same place the script checks for them in.


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