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 -v

Activate all volume groups:

# lvm vgchange -a y

List logical volumes:

# lvm lvs –all

With this information, and the volumes activated, you may be able to mount using:

# mount /dev/volumegroup/logicalvolume /mountpoint

If 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/LogVol00

Then 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/

How to mount LVM partitions from rescue mode (Fedora/CentOS/RedHat)
Tagged on:     

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.

Optimization WordPress Plugins & Solutions by W3 EDGE