Mounting LVM logical volumes

From Notes_Wiki
Revision as of 14:56, 28 May 2013 by Saurabh (talk | contribs)

<yambe:breadcrumb>Lvm</yambe:breadcrumb>

Mounting logical volumes

To mount logical volumes when booting from live CD or if not mounted in rescue mode use:

  1. Find out logical volumes available using
    lvm vgscan or
    lvm vgdisplay or
    lvm vgs
  2. Activate the Logical volumes inside Volumegroups using
    lvm vgchange -a y <VolGroupname>
    This creates devices in '/dev/<VolGroupname>/' using which we can mount the logical volumes.

After work is over, umount the logical volumes and use 'lvm vgchange -a n <VolGroupname> to deactivate the volume group.


Note: This can also be done using direct commands 'vgscan' and 'vgchange', without using 'lvm' prefix.