/dev/mapper/vg00-root does not exist - Advanced

Follow

In some cases, during a failed upgrade for Ubuntu's Kernel, there is a bug if the machine is running on mdraid.

This is documented on the Ubuntu Launchpad since 2007 - https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/147216

As a way around this, if you're seeing that your OS is failing to boot with the error stating the /dev/mapper/xx-root does not exist, you are able to use the following examples to manually scan for the VolGroup, and then mount the root, and boot into it.

From Within BusyBox on a failed Boot, run

/sbin/lvm vgscan
/sbin/lvm vgchange -a y
mount /dev/mapper/vg00-root /root
exit
 

Then, once you are back within the Operating System, you will then be able to resolve the issue with the /lib/udev/rules.d/85-lvm2.rules file.

By Changing

SUBSYSTEM=="block", ACTION=="add|change", ENV{ID_FS_TYPE}=="lvm*|LVM*", \
RUN+="watershed sh -c '/sbin/lvm vgscan; /sbin/lvm vgchange -a y'"

To

SUBSYSTEM=="block", ACTION=="add|change", \
RUN+="watershed sh -c '/sbin/lvm vgscan; /sbin/lvm vgchange -a y'"

Then issuing an update to the initramfs by running

update-initramfs -u

On next boot, all should be working as normal once-again!

Have more questions? Submit a request

Comments

Powered by Zendesk