Bug 75492

Summary: initscripts /etc/rc.sysinit fails to mount lvm partitions if lvm-mod is not loaded
Product: [Retired] Red Hat Linux Reporter: Josiah Royse <jroyse>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: rvokal, shishz
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-10-18 20:06:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 50556    
Bug Blocks:    

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.