[feisty] mounting LVM root broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lvm2 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: lvm2
running an up to date feisty, I can not boot on my RAID/LVM root partition. I previously had bug #75681 which seems fixed now (/dev/md0 is created automatically again) but the LVM volumes are not activated by the initramfs anymore.
In the initramfs shell I can not find "/scripts/
adding "break=mount" to the kernel options to get a shell, then running:
/scripts/
lvm vgscan
lvm vgchange -a y
does activate the RAID and the LVM volumes, I get the right files in /dev/mapper but I can not boot further. When leaving the busybox shell I get some messages including:
"/init:1:cannot open /dev/mapper/vg_... : No such device or address"
and I then get back to a busybox shell.
mounting my the volume by hand fails with the same message.
On another install (also feisty but a bit less up to date), I can mount the same volume without a problem. As many updates came today for LVM/usev/initramfs, I ran an update via chroot, but the problem is still there.
Any hint to boot it by hand in the meantime ?
Aurelien Naldi writes ("[Bug 83832] [feisty] mounting LVM root broken"): local-top/ lvm" anymore.
> running an up to date feisty, I can not boot on my RAID/LVM root
> partition. I previously had bug #75681 which seems fixed now
> (/dev/md0 is created automatically again) but the LVM volumes are
> not activated by the initramfs anymore. In the initramfs shell I
> can not find "/scripts/
We have indeed changed this but it is supposed to work better now and
not break :-).
I have some questions:
* Which versions of er1.02
lvm2
lvm-common
udev
libdevmapp
devmapper
do you have installed ?
* While it's broken, boot with break=premount, and do this: volume- group/my- volume- name /root
udevd --verbose >/tmp/udev-output 2>&1 &
udevtrigger
At this point I think you will find that your mds and lvms
are not activated; check with
cat /proc/partitions
If as I assume they aren't:
pkill udevd
lvm vgscan
lvm vgchange -a y
mount /dev/my-
If as you say this doesn't work, check the major and minor numbers dev/mapper volume- group dev/my- volume- group dev/mapper/ vg-lv /root
and symlinks shown by
ls -al /dev/mapper
ls -al /dev/.static/
ls -al /dev/my-
ls -al /dev/.static/
dmsetup ls
and the output from
dmsetup table
and perhaps
mount /dev/.static/
When you've got it mounted
cp /tmp/udev-output* /root/root/.
exit
And then when the system boots attach /root/udev-output* and your
initramfs to this bug report.
* Does running
sudo update-initramfs
fix it ? (If you didn't attach it to this bug report as I ask
above please keep a copy of the old initramfs so we can peer
at its entrails.)
Thanks,
Ian.