How to mount LVM partitions from rescue mode
This is a short post about mounting LVM partitions when you are using a rescue CDROM or a desktop install CDROM. The whole process is only four easy steps.
- Boot your rescue media. This can be a CentOS, Ubuntu, Red Hat or other CDROM that gives you a console access to the server. Most newer linux distributions have LVM support available.Scan for volume groups
# lvm vgscan -v - Activate all Volume Groups
# vgchange -a y “volume group name” - List Logical Volumes
# lvm lvs –all - You have now activated the volumes and have all the information you need to mount them
# mkdir /media/your-mount-point
# mount /dev/volumegroup/logical-volume /media/your-mount-point
You can now look into /media/your-mount-point and see the content of your mounted LVM volume.