https://bugzilla.novell.com/show_bug.cgi?id=712537
https://bugzilla.novell.com/show_bug.cgi?id=712537#c0
Summary: Calling mkinitrd when LVM snapshots exist gives error message about missing dm-snapshot-origin module Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: All OS/Version: openSUSE 11.4 Status: NEW Severity: Minor Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: pieter@hollants.com QAContact: qa@suse.de Found By: --- Blocker: ---
Created an attachment (id=446063) --> (http://bugzilla.novell.com/attachment.cgi?id=446063) Patch to make mkinitrd not try to load dm-snapshot-origin
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0
If a LVM snapshot volume has been created for some LV, calling mkinitrd yields error messages that dependencies for "dm-snapshot-origin" can't be found.
This stems from setup-dm.sh examining "dmsetup table" output to figure out which dm modules need to be included into the initrd. Example output:
sysvg-rootlv-real: 0 4194304 linear 9:1 419430784 sysvg-rootlv_postinstall-cow: 0 2097152 linear 9:1 423625088 sysvg-rootlv_postinstall: 0 4194304 snapshot 253:5 253:7 P 8 sysvg-rootlv: 0 4194304 snapshot-origin 253:5
Here it is correct to assume "snapshot" is a dm target, however "snapshot-origin" is not (belongs to "snapshot" as well) and thus a special exception to avoid the error message.
Attached trivial patch fixes this. Please apply.
Reproducible: Always
Steps to Reproduce: 1. Make sure /root is on LVM or otherwise make sure mkinitrd takes care of including LVM 2. lvcreate a snapshot volume of an arbitrary LV 3. Call mkinitrd
Actual Results: Error messages about "dm-snapshot-origin" module that could not be found.
Expected Results: No error message.
https://bugzilla.novell.com/show_bug.cgi?id=712537
https://bugzilla.novell.com/show_bug.cgi?id=712537#c
zj jia zjjia@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@suse.com AssignedTo|bnc-team-screening@forge.pr |mmarek@suse.com |ovo.novell.com |
https://bugzilla.novell.com/show_bug.cgi?id=712537
https://bugzilla.novell.com/show_bug.cgi?id=712537#c1
Olaf Hering ohering@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nfbrown@suse.com AssignedTo|mmarek@suse.com |dmzhang@suse.com
--- Comment #1 from Olaf Hering ohering@suse.com 2013-09-02 20:19:47 CEST --- LVM2.2.02.98/libdm/libdm-deptree.c:dm_segtypes lists more possible values to ignore. Dont know much about this. Patch needs to go into device-mapper.rpm.
Reassigning to package maintainer.
https://bugzilla.novell.com/show_bug.cgi?id=712537
https://bugzilla.novell.com/show_bug.cgi?id=712537#c2
Neil Brown nfbrown@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX
--- Comment #2 from Neil Brown nfbrown@suse.com 2013-09-02 21:55:42 UTC --- This is the same as bug#779965. It is fixed for openSUSE 12.2 and later. SUSE maintenance for 11.4 has ended so if you want a fix for 11.4 you probably need to look to the Everygreen project, which I know very little about.
http://en.opensuse.org/openSUSE:Evergreen