LVM: Difference between revisions
From Leo's Notes
This page was last edited on 29 March 2015, at 06:33.
mNo edit summary |
|||
| Line 17: | Line 17: | ||
[[Category:Linux]] | [[Category:Linux]] | ||
{{Navbox Linux}} | |||
Revision as of 06:33, 29 March 2015
Linux
If you have a LVM partition, you can see what physical volumes there are under the LVM by running:
# pvs PV VG Fmt Attr PSize PFree /dev/hda2 VolGroup01 lvm2 a- 148.94G 32.00M
The volume group (VG) is 'VolumeGroup01'. To view the logical volumes under this volume group, run:
# lvdisplay /dev/VolumeGroup01
Once you have located the logical volume you want to mount, say LogVol00, run:
# mount /dev/VolumeGroup01/LogVol00 /mnt/disk