Centos - mounting LVM partitions on another system

One thing that we have to do from time to time is to mount LVM volumes from a rescued hard drive on another machine.

To do so yourself, follow these steps.

Once hardware is attached to another linux machine enter the command-line as follows:

lvm lvs - This will show you the avaialbe LVM volumes that you can work with

lvm vgchange --ignorelockingfailure -P -a y - this will allow you to mount volumes after disabling locking issues

lvdisplay - this will show you avaiable volumes

lvmdiskscan - this will scan the LVM disk information

lvdisplay

vgscan

pvscan

vgchange SubstituteYourLVMVolumeNameYouWantToMountHere -a y

Next you will want to make and mount that vokume as a directory so that you can read from it

mkdir /mnt/data

mount /dev/SubstituteYourLVMVolumeNameYouWantToMountHere/MainLV00 /mnt/data

You will now be able to read off recovered data from your new mount point!

 

Your Shopping Cart

VirtueMart
Your Cart is currently empty.

Featured Article

Network Protection Audits are a new service offering by Inlet Technologies for Corporate Networks numbering over ten devices...

More...
100nz_125x125
Copyright © 2012 www.inlet.co.nz. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.

About Us Site Map Careers   Privacy Policy Terms & Conditions Contact Us

Prices are inclusive of GST unless stated otherwise. Images and textual content © Copyright 1995-2009 Inlet Technologies and those of their suppliers. Products are advertised subject to availability. New Zealand delivery only. See Delivery Rates. Using this site means you accept it's terms