Introduction
If you ever run in to a scenario where you have a VM which won't boot. You will need to use an install disc to get into rescue mode.Solution
Boot your rescue media. Scan for volume groups:# lvm vgscan -vActivate all volume groups:
# lvm vgchange -a yList logical volumes:
# lvm lvs –allWith this information, and the volumes activated, you may be able to mount using:
# mount /dev/volumegroup/logicalvolume /mountpointIf you get an error along the lines of: you must specify filesystem type You will need to run a file system check on the logical volume first.
# fsck -f -y /dev/VolGroup00/LogVol00Then try mounting again. Good luck. http://jim-zimmerman.com/?p=587 http://www.itzgeek.com/how-tos/linux/centos-how-tos/rescue-your-system-with-single-user-mode-in-centos-6-rhel-6.html http://www.upstream.be/en/2013/01/what-to-do-with-a-corrupted-lvm-filesystem-centos/
Leave a comment
Your email address will not be published. Comments are moderated before appearing.