Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 80443

Summary: LVM2 not supported in rc.sysinit
Product: [Retired] Red Hat Raw Hide Reporter: Bernie Innocenti <bernie+fedora>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED CURRENTRELEASE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-04-28 19:04:37 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:    
Bug Blocks: 79579, 100644    

Description Bernie Innocenti 2002-12-26 17:30:19 UTC
rc.sysinit contains the following code to initialize LVM volumes: 
 
 # LVM initialization 
 if [ -f /etc/lvmtab -a ! -e /proc/lvm ] ; then 
         modprobe lvm-mod >/dev/null 2>&1 
 fi 
 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 
 fi 
 
This does _NOT_ work with LVM2's dm-mod which is included in latest RH kernels. 
 
I'm using this instead to activate LVM2 partitions: 
 
 modprobe dm-mod 
 if [ -x /sbin/vgchange -a -f /etc/lvmtab ]; then 
         action $"Setting up Logical Volume Management:" /sbin/vgscan && /sbin/vgchange -a y 
 fi 
 
 I don't know how to detect wether the modprobe is really needed on the booting system.

Comment 1 Bill Nottingham 2005-04-28 19:04:37 UTC
This should be fixed as of now....