cannot boot with lvm-on-dmcrypt

Bug #333073 reported by Martin Pool
2
Affects Status Importance Assigned to Milestone
cryptsetup (Ubuntu)
New
Undecided
Unassigned
linux (Ubuntu)
New
Undecided
Unassigned

Bug Description

I have an X61s thinkpad running jaunty. It's just experienced the following regression today; it was working ok until last night's updates.

I have it configured with the whole drive aside from /boot in an encrypted partition, and then lvm on top of that.

Booting proceeds normally until the point where I'm asked for my disk passphrase. I enter that I'm told "key slot 0 unlocked" and then the disk light comes on but nothing seems to happen for about a minute.

At intervals of several minutes I do get screenfuls of output like this:

  /sys/devices/virtual/blrock/dm-0 (5209)

repeated many times with decreasing numbers. Then a little bit of normal output:

Command successful.
File descriptor 3 left open
  2 logical volumes in volume group "lithe" now active
cryptsetup: sdb1_crypt setup successfully.
Done.
CE: hpet increasing min_delta_ns to 15000 nsec
Begin: waiting for root filesystem... ...

This is on a text mode console, in recovery mode.

20 minutes later there's still disk io and no progress.

Unfortunately the latest update uninstalled my older kernel versions so I can't try one of them.

Revision history for this message
Martin Pool (mbp) wrote :

I ran the bios disk diagnostics and they passed, so I don't think this is caused by a hardware problem.

Revision history for this message
Martin Pool (mbp) wrote :

About three hours later it's still stuck. It does occasionally print out more block numbers but nothing else...

Revision history for this message
Martin Pool (mbp) wrote :

Using an Intrepid USB boot device, I can bring the machine up, and it can see the disk. I need to manually install cryptsetup and lvm2 into that environment and modprobe dm_crypt. I can then run "cryptsetup luksOpen /dev/sda1", then I can see the pv, vg, and lv. I can fsck and mount the filesystem ok.

I tried installing http://packages.ubuntu.com/jaunty/linux-image-2.6.28-1-386, the only alternative kernel apparently available in jaunty at the moment. If I boot that, I get a timeout trying to mount the root and then dropped into an initramfs shell. I can from there manually run cryptsetup again, and it does print many of the /sys/devices/ messages, but it eventually terminates and says it succeeded in mounting the device. I can see it in lvm, but I can't seem to mount it and I don't get any message beyond "invalid argument" when trying to mount the lv.

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

this may be a dupe of #332270...

Revision history for this message
Michael Evans (mjevans1983) wrote :

Confirmed as being duplicate. Only one line and a description of how to make more were posted, but that's most definitely the signature of this bug.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.