Oneiric regression: boot from lvm fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lvm2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I don't have a separate boot partition; both / and /boot are on the same Logical Volume.
In Natty, this worked fine. After upgrading to Oneiric, it broke. It hangs for a bit, then kicks me to the initramfs shell. It can't find the root device. /dev/mapper is empty (apart from the "control" device). lvscan manages to find all my logical volumes, but shows them as "inactive".
My old kernels are still able to boot. (If I select them from the GRUB menu). However, if I do update-initramfs -k <old-kernel>, that kernel stops working.
My first suspicion was the the lvm package was failing to copy the necessary information to the initramfs. But having played with the lvm manpages and commands, I can't find what information (i.e. files) would be needed. I suspect I was conflating lvm with something that MD/mdadm needs (I don't use MD*at all*).
So it's probably more that the lvm scripts in the initramfs are missing a command invocation, which is needed to make the volume groups active. Or the udev rules in the initramfs are missing the device & not running the command.... Hmm.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: lvm2 2.02.66-4ubuntu3
ProcVersionSign
Uname: Linux 2.6.38-11-generic x86_64
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
Date: Fri Oct 14 11:19:16 2011
ProcEnviron:
PATH=(custom, no user)
SHELL=/bin/bash
SourcePackage: lvm2
UpgradeStatus: Upgraded to oneiric on 2011-10-14 (0 days ago)
Mount output after successful boot, showing / on LVM and no /boot partition.
$ mount alan--desktop. Linux-karmic on / type ext4 (rw,noatime, errors= remount- ro,commit= 0) nosuid, nodev) nosuid, nodev) fuse/connection s type fusectl (rw) security type securityfs (rw) nosuid, gid=5,mode= 0620) nosuid, size=10% ,mode=0755) nosuid, nodev,size= 5242880) alan--desktop. Linux-Ubuntu. home on /mnt/home type ext4 (rw,nosuid, noatime, errors= remount- ro,commit= 0) alan--desktop. Linux-backup- -ext4 on /mnt/backup type ext4 (rw,nosuid, noatime, errors= remount- ro,commit= 0) fs/binfmt_ misc type binfmt_misc (rw,noexec, nosuid, nodev) fuse-daemon (rw,nosuid, nodev,user= alan)
/dev/mapper/
none on /proc type proc (rw,noexec,
none on /sys type sysfs (rw,noexec,
fusectl on /sys/fs/
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,
none on /run type tmpfs (rw,noexec,
none on /run/lock type tmpfs (rw,noexec,
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/mapper/
/dev/mapper/
binfmt_misc on /proc/sys/
gvfs-fuse-daemon on /home/alan/.gvfs type fuse.gvfs-