Mount LVM Partition in Rescue Mode

To mount LVM  partitions in rescue mode follow the below simple steps ::

Boot the machine with Centos installation  CD and then type linux rescue at the prompt to boot into  the rescue mode and once done that you will be asked to  configure/enable network interfaces and then to mount the filesystem,  you can skip both and after skipping you will get a shell prompt. 

 

Scan the physical volumes using pvscan 

sh-3.2# pvscan
sh:  pvscan : command not found

You will get the above errors because the direct lvm commands like pvscan,lvscan are not available in rescue mode instead you can use lvm pvscan and this will  work fine  for you. 

 

 sh-3.2# lvm  pvscan

this will  scan the physical volumes 

then use

 

sh-3.2#  lvm vgscan

to  scan volume groups

 

sh-3.2# lvm lvscan

to scan logical volumes 

 

sh-3.2  # lvm lvs --all

to  list  logical volumes

 

sh-3.2# vgchange -a y [volgroup00]

This will  activate the volgroup00

or use

 

 sh-3.2# vgchange -a y

to activate  all  volume groups

Once all Volume groups activated then  you can mount them as 

 

 sh-3.2# mount /dev/volumegroup/logicalvolume /mountpoint

That’s all you are done.