Wednesday, November 15, 2017

How to check physical and logical volume on your disk?

How to check you physical volume
$PVS
  PV         VG          Fmt  Attr PSize PFree
  /dev/sda2  vg_suthakar lvm2 a--u 1.82t    0

How to check your logical volume

$lvs
  LV         VG          Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  LogVol12   vg_suthakar -wi-ao----  58.59g
  lv_apps    vg_suthakar -wi-ao---- 195.31g
  lv_apps2   vg_suthakar -wi-ao---- 390.62g
  lv_home    vg_suthakar -wi-ao----  19.53g
  lv_local   vg_suthakar -wi-ao----  19.53g
  lv_opt     vg_suthakar -wi-ao----  19.53g
  lv_orafra  vg_suthakar -wi-ao---- 341.80g
  lv_ordata  vg_suthakar -wi-ao---- 341.80g
  lv_scratch vg_suthakar -wi-ao---- 427.80g
  lv_swap    vg_suthakar -wi-ao----  15.74g
  lv_swap1   vg_suthakar -wi-ao----   9.77g
  lv_tmp     vg_suthakar -wi-ao----   1.95g
  lv_var     vg_suthakar -wi-ao----  19.53g
[root@suthakar asmdsk]#

No comments: