Mailinglist Archive: opensuse-bugs (4067 mails)

< Previous Next >
[Bug 712537] New: Calling mkinitrd when LVM snapshots exist gives error message about missing dm-snapshot-origin module
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Tue, 16 Aug 2011 22:23:24 +0000
  • Message-id: <bug-712537-21960@http.bugzilla.novell.com/>

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@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: pieter@xxxxxxxxxxxx
QAContact: qa@xxxxxxx
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.

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
Follow Ups