To mount LVM partitions in rescue mode follow the below simple steps :- Boot the machine with Centos installation CD and 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
#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.
#lvm pvscan
This will scan the physical volumes. Then use:
#lvm vgscan
#lvm lvscan
- To scan logical volumes :
#lvm lvs --all
#vgchange -a y [volgroup00]
This will activate the volgroup00
or use
#vgchange -a y
to activate all volume groups
- Once all Volume groups activated then you can mount them as :
#mount /dev/volumegroup/logicalvoulme /mountpoint
--
