Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#17124 - [lvm2] machine does not boot if there is a lvm2 snapshot of root filesystem (dm-snapshot missing)
Attached to Project:
Arch Linux
Opened by Sebastian (sepo) - Friday, 13 November 2009, 16:59 GMT
Last edited by Eric Belanger (Snowman) - Saturday, 06 February 2010, 02:21 GMT
Opened by Sebastian (sepo) - Friday, 13 November 2009, 16:59 GMT
Last edited by Eric Belanger (Snowman) - Saturday, 06 February 2010, 02:21 GMT
|
DetailsDescription:
I recently made a lvm2 snapshot of my root filesystem and forgot to delete the snapshot after i was done with the snapshot. At the next reboot the system fails to boot telling me that the dm-snapshot module couldn't be found. This problem is explained here too: http://sourcefrog.net/weblog/2007/05/index.html Adding the dm-snapshot to the initrd fixes this. And i think the same applies for the dm-mirror module, it should be in initrd too. As far as i can see debian has both in initrd. Take a look at the attached patch. Additional info: * package version: lvm2 2.02.53-1 (the package in testing doesn't fix this either) Steps to reproduce: if /dev/${lvm_volume_group}/${volume_name} is your root filesystem lvcreate -s -L${size} -n${name} /dev/${lvm_volume_group}/${volume_name} reboot |
This task depends upon
lvm2-initcpio.diff
I can confirm that this applies to the dm-mirror module too. I tried to boot a mirrored root volume, it fails in the same way as i explained above. So the dm-mirror module is needed too.
http://repos.archlinux.org/wsvn/packages/?compare[]=%2Flvm2%2Ftrunk%2F%4058761&compare[]=%2Flvm2%2Ftrunk%2F%4058298&comparesubmit=Compare+Revisions&op=comp
<message>
...
FATAL: Module dm_snapshot not found.
/sbin/modprobe failed: 1
...
</message>
To fix this the lvm2 install script should trigger an mkinitcpio -p kernel26 to rebuild the initrd.
After generating a new initrd the system boot up properly, but i get the following message while loading lvm2.
Mounting the snapshot after system boot does work without any problems.
<message>
...
:: Activating LVM2 groups
File-based locking initialisation failed.
File-based locking initialisation failed.
Child exited with code 5
Unable to start dmeventd.
Child exited with code 5
Unable to start dmeventd.
storage-snap: event registration failed: No such process
storage/snapshot0: snapshot segment monitoring function failed.
Child exited with code 5
Unable to start dmeventd
Child exited with code 5
Unable to start dmeventd
storage-snap: event registration failed: No such process
storage/snapshot0: snapshot segment monitoring function failed.
...
</message>
The message "File-based locking initialisation failed." does not seem to be a problem according to http://www.redhat.com/archives/linux-lvm/2009-August/thread.html#00003 , what about the rest?
Thomas: Any input? Or can we just close this bug?