regression: /home on dm-crypt+LVM fails to mount during boot (due to failed fsck)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cryptsetup (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
lvm2 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: cryptsetup
SW: Kubuntu Karmic up-to-date
HW: ThinkPad X200s
I am opening new bug report as my old bug 418901 was marked as duplicate.
I have done a fresh install of Kubuntu Karmic on my laptop. I have used same/similar disk layout as I use on Jaunty:
- /boot on regular partition (/dev/sda1)
- / on LVM volume on regular physical partition (/dev/sda3)
- /home on LVM volume on top of dm-crypt physical volume (/dev/sda2)
Karmic boot fails almost in 100% (I think boot succeeded once or twice), because fsck fails finding UUID of my /home partition (see attached /var/log/
I have attached "fdisk -l /dev/sda" and "vgdisplay -v" output. If anything more is needed, please let me know.
ProblemType: Bug
Architecture: amd64
Date: Mon Aug 31 12:55:54 2009
DistroRelease: Ubuntu 9.10
Package: cryptsetup 2:1.0.6+
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: cryptsetup
Uname: Linux 2.6.31-8-generic x86_64
Content of /var/log/ fsck/checkfs file indicating root cause of the problem:
Log of fsck -C3 -R -A -a
Mon Aug 31 12:32:12 2009
fsck from util-linux-ng 2.16 5ae6-47c5- 88b9-463e577f7a de' plain-misc: recovering journal plain-misc: clean, 5658/2621440 files, 9378933/10485760 blocks
boot: recovering journal
boot: clean, 188/62248 files, 89730/248976 blocks (check in 2 mounts)
fsck.ext4: Unable to resolve 'UUID=47bcbd50-
/dev/mapper/
/dev/mapper/
fsck died with exit status 8
Mon Aug 31 12:32:13 2009
----------------
Note: I suspect this is some timing issue in the boot sequence (udev or upstart related), as the fsck seems to be run before LVM is properly set-up on top of dm-crypt device.