Monday, August 29, 2011

How to mount a Logical Volume on a different Linux Server


I have finally converted to logical volumes which leaves me learning a whole new world. I was moving some data (500GB's) between machines using a USB drive and found that the logical volume on the drive would not quickly mount via traditional mount /dev/sd… command. So here is the process to mount a LVM.
1. Scan for the new volume (Assuming you added it after boot)
vgscan
2. Activate the volume
vgchange -a y VolumeName
3. Display the volume and confirm it's active
lvdisplay
4. Mount the volume via it's volume name
mount /dev/mapper/VolumeName /destination_mount_point