Bug 175757

Summary: rc.sysinit doesn't load proper module for lvm snapshots
Product: Red Hat Enterprise Linux 4 Reporter: Scott Zahn <scott>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED DUPLICATE QA Contact: Brock Organ <borgan>
Severity: high Docs Contact:
Priority: medium    
Version: 4.0CC: agk, pjones, rvokal
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: 2005-12-14 17:37: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:
Attachments:
Description Flags
the patch to the problem none

Description Scott Zahn 2005-12-14 17:06:33 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050802 Firefox/1.0.6

Description of problem:
rc.sysinit doesn't load the dm_snapshot module when lvm snapshots are present. The result is that LVM volumes with snapshots fail to init.  Even though the version of rpm I'm reporting is from CentOS, I'm fairly certain given the similarity between the two distros that this bug is present in RHEL 4.2 as well.

Version-Release number of selected component (if applicable):
initscripts-7.93.20.EL-1.centos4

How reproducible:
Always

Steps to Reproduce:
1. make an lvm volume and mount it.  add entry in fstab.
2. make a snapshot for lvm volume.
3. reboot.  the lvm volume won't init.
  

Actual Results:  because the dm_snapshots module isn't loaded, the lvm volume will fail to init.

Expected Results:  the dm_snapshots module should have loaded to facilitate the init of the lvm volume which the snapshots are a part of.

Additional info:

Needless to say, this is a very bad thing to have happen if the lvm volume in question contains important stuff.  Since there's no field in this form to submit unified diffs, here's the url where my fix to this problem can be found:

http://www.zahna.com/files/rc.sysinit.patch

Let me know how well this works for you guys. Thanks.

Comment 1 Bill Nottingham 2005-12-14 17:09:25 UTC
(There is a 'create attachment', btw.)

There really should be some way to automatically load this when needed. Why
shouldn't the lvm/multipath/etc tools do this, if they see a map of the
appropriate type configured?

Comment 2 Scott Zahn 2005-12-14 17:16:42 UTC
Created attachment 122232 [details]
the patch to the problem

Comment 3 Alasdair Kergon 2005-12-14 17:21:00 UTC
As of RHEL4 U3, lvm2 should attempt to load the modules if necessary.  See bug
170339.

Comment 4 Scott Zahn 2005-12-14 17:31:30 UTC
I checked out but 170339, but didn't see much info in there.  It doesn't seem to
have anything to do with supporting snapshots.  Does the fix for that bug also
fix this one?

Comment 5 Alasdair Kergon 2005-12-14 17:36:38 UTC
Yes it should do - all targets use the same function which does the
checking/loading.

Comment 6 Bill Nottingham 2005-12-14 17:37:37 UTC
OK, closing this.

*** This bug has been marked as a duplicate of 170339 ***