[Bug 608653] New: device mapper devices replaced with symlink, breaks boot.crypto
http://bugzilla.novell.com/show_bug.cgi?id=608653 http://bugzilla.novell.com/show_bug.cgi?id=608653#c0 Summary: device mapper devices replaced with symlink, breaks boot.crypto Classification: openSUSE Product: openSUSE 11.3 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: lnussel@novell.com QAContact: qa@suse.de CC: kasievers@novell.com Found By: --- Blocker: --- Weird effect that breaks boot.crypto. Factory, kernel-desktop-2.6.34-8.2.i586, udev-154-1.1 # cryptsetup luksOpen /dev/sdb1 cr_sdb1; ls -l /dev/mapper/cr_sdb1 Enter passphrase for /dev/sdb1: Key slot 0 unlocked. brw-r----- 1 root disk 253, 4 May 25 14:53 /dev/mapper/cr_sdb1 # ls -l /dev/mapper/cr_sdb1 lrwxrwxrwx 1 root root 7 May 25 14:53 /dev/mapper/cr_sdb1 -> ../dm-4 Ie /dev/mapper/cr_sdb1 gets created as device and shortly afterwards turns into a symlink. The problem is that the operation is not atomic. boot.crypto wants to run fsck shortly after unlocking the device and sometimes exactly hits a point where the device is gone. output of udevadm monitor: KERNEL[1274791715.127143] add /devices/virtual/block/dm-4 (block) UDEV [1274791715.129464] add /devices/virtual/block/dm-4 (block) KERNEL[1274791715.136469] add /devices/virtual/bdi/253:4 (bdi) UDEV [1274791715.137020] add /devices/virtual/bdi/253:4 (bdi) KERNEL[1274791715.137679] change /devices/virtual/block/dm-4 (block) UDEV [1274791715.138427] change /devices/virtual/block/dm-4 (block) KERNEL[1274791715.140250] change /devices/virtual/block/dm-4 (block) KERNEL[1274791715.147291] remove /devices/virtual/block/dm-4 (block) KERNEL[1274791715.152999] remove /devices/virtual/bdi/253:4 (bdi) UDEV [1274791715.153534] remove /devices/virtual/bdi/253:4 (bdi) KERNEL[1274791715.153686] remove /devices/virtual/block/dm-4 (block) KERNEL[1274791715.165941] change /devices/pci0000:00/0000:00:01.1/host0/target0:0:1/0:0:1:0/block/sdb/sdb1 (block) KERNEL[1274791715.168439] add /devices/virtual/block/dm-4 (block) KERNEL[1274791715.168828] add /devices/virtual/bdi/253:4 (bdi) KERNEL[1274791715.180660] change /devices/virtual/block/dm-4 (block) UDEV [1274791715.303699] add /devices/virtual/bdi/253:4 (bdi) UDEV [1274791715.469626] change /devices/pci0000:00/0000:00:01.1/host0/target0:0:1/0:0:1:0/block/sdb/sdb1 (block) UDEV [1274791715.562604] change /devices/virtual/block/dm-4 (block) UDEV [1274791715.581646] remove /devices/virtual/block/dm-4 (block) UDEV [1274791715.584566] remove /devices/virtual/block/dm-4 (block) UDEV [1274791715.586253] add /devices/virtual/block/dm-4 (block) UDEV [1274791715.763043] change /devices/virtual/block/dm-4 (block) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=608653 http://bugzilla.novell.com/show_bug.cgi?id=608653#c Jeff Mahoney <jeffm@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High CC| |jeffm@novell.com AssignedTo|kernel-maintainers@forge.pr |kasievers@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=608653 http://bugzilla.novell.com/show_bug.cgi?id=608653#c1 Kay Sievers <kasievers@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|kasievers@novell.com |xwhu@novell.com --- Comment #1 from Kay Sievers <kasievers@novell.com> 2010-05-28 16:18:27 UTC --- The device-mapper udev stuff is broken! -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=608653 http://bugzilla.novell.com/show_bug.cgi?id=608653#c2 --- Comment #2 from Kay Sievers <kasievers@novell.com> 2010-05-28 16:29:44 UTC --- Wait, any idea what is causing the "remove" event to happen in the same second? That's probably why the device isn't there for some time. The current "udev integration" of device-mapper seems very fragile. We see these failures and reports everywhere. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=608653 http://bugzilla.novell.com/show_bug.cgi?id=608653#c Xinwei Hu <xwhu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=608653 http://bugzilla.novell.com/show_bug.cgi?id=608653#c3 Xinwei Hu <xwhu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |e-info@luhrmann.nl --- Comment #3 from Xinwei Hu <xwhu@novell.com> 2010-06-01 06:01:36 UTC --- *** Bug 610141 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=610141 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=608653 http://bugzilla.novell.com/show_bug.cgi?id=608653#c4 Xinwei Hu <xwhu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |lnussel@novell.com --- Comment #4 from Xinwei Hu <xwhu@novell.com> 2010-06-02 05:42:37 UTC --- (In reply to comment #0)
Weird effect that breaks boot.crypto. Factory, kernel-desktop-2.6.34-8.2.i586, udev-154-1.1
Would you test my package (device-mapper and lvm2) in Base:System/openSUSE_Factory ? I've verified it with openSUSE 11.3 M7 myself. Thanks. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=608653 http://bugzilla.novell.com/show_bug.cgi?id=608653#c5 Ludwig Nussel <lnussel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|lnussel@novell.com | --- Comment #5 from Ludwig Nussel <lnussel@novell.com> 2010-06-02 14:49:08 CEST --- I can't trigger the error anymore with the device-mapper packages from Base:System -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=608653 http://bugzilla.novell.com/show_bug.cgi?id=608653#c6 Xinwei Hu <xwhu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|--- |RC 1 --- Comment #6 from Xinwei Hu <xwhu@novell.com> 2010-06-03 08:41:08 UTC --- (In reply to comment #5)
I can't trigger the error anymore with the device-mapper packages from Base:System
Thanks. Just submitted into Factory, and close this as fixed. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com