Friday, February 26, 2010

Quick LVM commands

May be you are not aware of these LVM commands..
You must be bore of running these commands:

pvdisplay
vgdisplay
lvdisplay

Lets learn the quick LVM commands:

[root@localhost ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/sda9 VolGroup lvm2 a- 95.97G 0
[root@localhost ~]# vgs
VG #PV #LV #SN Attr VSize VFree
VolGroup 1 2 0 wz--n- 95.97G 0
[root@localhost ~]# lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
lv_root VolGroup -wi-ao 92.05G
lv_swap VolGroup -wi-ao 3.92G

Hope you will definitely like these stuffs.
Happy LVMing !!!

No comments:

Post a Comment