ILWC Privacy Statement About ILWC
Registreer
130
Which devices in which Volume Group
martijn
linux lvm shell
2019-01-21 16:08:58
2019-01-21 17:30:00
2019-02-21 17:30:00
Somehow I keep forgetting.
To easily see which devices form volumegroups:
(A1) root@hhs-ema3001:~ # pvdisplay -C 
  PV         VG       Fmt  Attr PSize    PFree   
  /dev/sda2  vg       lvm2 a--    24.50g   <7.72g
  /dev/sdb   oradata1 lvm2 a--  <160.00g       0 
  /dev/sdc   oradata2 lvm2 a--   <50.00g   <5.00g
  /dev/sdd   oradata1 lvm2 a--   <20.00g       0 
  /dev/sde   oradata1 lvm2 a--  <100.00g       0 
  /dev/sdf   oradata1 lvm2 a--  <250.00g       0 
  /dev/sdg   oradata1 lvm2 a--  <200.00g       0 
  /dev/sdh   oradata1 lvm2 a--  <200.00g 1000.00m
And...if you are more interested in a specific volumegroup:
(A1) root@hhs-ema3001:~ # pvdisplay -C  | grep -i oradata1
  /dev/sdb   oradata1 lvm2 a--  <160.00g       0 
  /dev/sdd   oradata1 lvm2 a--   <20.00g       0 
  /dev/sde   oradata1 lvm2 a--  <100.00g       0 
  /dev/sdf   oradata1 lvm2 a--  <250.00g       0 
  /dev/sdg   oradata1 lvm2 a--  <200.00g       0 
  /dev/sdh   oradata1 lvm2 a--  <200.00g 1000.00m
(A1) root@hhs-ema3001:~ #


In short...use the -C option