Difference between revisions of "Mounting LVM logical volumes"
From Notes_Wiki
m |
m |
||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Filesystem or partition tools]] > [[Lvm]] > [[Mounting LVM logical volumes]] | |||
To mount logical volumes when booting from live CD or if not mounted in rescue mode use: | To mount logical volumes when booting from live CD or if not mounted in rescue mode use: | ||
Line 16: | Line 15: | ||
Note: | Note: | ||
This can also be done using direct commands '<tt>vgscan</tt>' and '<tt>vgchange</tt>', without using '<tt>lvm</tt>' prefix. | This can also be done using direct commands '<tt>vgscan</tt>' and '<tt>vgchange</tt>', without using '<tt>lvm</tt>' prefix. | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Filesystem or partition tools]] > [[Lvm]] > [[Mounting LVM logical volumes]] |
Latest revision as of 13:45, 24 August 2022
Home > CentOS > CentOS 6.x > Filesystem or partition tools > Lvm > Mounting LVM logical volumes
To mount logical volumes when booting from live CD or if not mounted in rescue mode use:
- Find out logical volumes available using
- lvm vgscan or
- lvm vgdisplay or
- lvm vgs
- 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.
Home > CentOS > CentOS 6.x > Filesystem or partition tools > Lvm > Mounting LVM logical volumes