Home Linux (Level: Beginner) - Showing Physical /Logical Volumes
(Level: Beginner) - Showing Physical /Logical Volumes PDF Print E-mail
Written by Siva   
Thursday, 06 December 2012 20:01

PVS - VGS - LVS - After creating logical volumes, commands and sample output to see the logical volumes.

 

Showing pvs, vgs, lvs output.

 

Note: some of the output I have trimmed.

 

[root@lnx-db-001 ~]#

[root@lnx-db-001 ~]# pvs

PV         VG          Fmt  Attr PSize   PFree

/dev/sdc   vgDEV01 lvm2 a-   150.00G 50.00G

/dev/sdd   vgDt    lvm2 a-   100.00G     0

[root@lnx-db-001 ~]#

[root@lnx-db-001 ~]#

[root@lnx-db-001 ~]# vgs

VG          #PV #LV #SN Attr   VSize   VFree

vgDEV01   1   1   0 wz--n- 150.00G 50.00G

vgDt      1   7   0 wz--n- 100.00G     0

[root@lnx-db-001 ~]#

[root@lnx-db-001 ~]#

[root@lnx-db-001 ~]# lvs

LV        VG          Attr   LSize   Origin Snap%  Move Log Copy%  Convert

vdatafs01 vgDEV01 -wi-ao 100.00G

vadmin    vgDt    -wi-ao  20.00G

vagent    vgDt    -wi-ao  10.00G

vcsv_home vgDt    -wi-ao  10.00G

vdump     vgDt    -wi-ao  20.00G                                     

[root@lnx-db-001 ~]#

[root@lnx-db-001 ~]#

[root@lnx-db-001 ~]# df -kh

Filesystem            Size  Used Avail Use% Mounted on

/dev/sda1             6.3G  2.0G  4.0G  33% /

/dev/sda6             1.1G   46M  962M   5% /tmp

/dev/sda3             2.1G  139M  1.9G   7% /var

/dev/sda5             1.1G   36M  973M   4% /var/tmp

tmpfs                 7.8G  712K  7.8G   1% /dev/shm

/dev/sdb1             3.9G   86M  3.6G   3% /users

/dev/mapper/vgDt-voracle

9.9G  151M  9.2G   2% /oracle

/dev/mapper/vgDt-vexport

20G  173M   19G   1% /oracle/export

/dev/mapper/vgDt-vadmin

20G  293M   19G   2% /oracle/admin

..

..

[root@lnx-db-001 ~]#

[root@lnx-db-001 ~]#

 
 

Advertisement

Featured Links:
HREmail.com
Looking for job? Try HREmail.com
Want to have CMS based Websites?
Try siliconwebcreators.com to CMS based websites.
VM Solutions Inc
For best VM solutions..
Digital Procedure Inc.
Looking for Oracle /SAP /Weblogic Consulting services? visit digitalprocedure.com