List all physical volumes associated to a volume group

pvdisplay shows the VG each PV belongs to.


You can try this format:

# pvdisplay -C --separator '  |  ' -o pv_name,vg_name

You get something like what I think you're looking for:

  PV  |  VG
  /dev/sda2  |  vg_c6srv3
  /dev/sdb2  |  vg_c6srv3
  /dev/sdc2  |  vg_c6srv3
  /dev/sdd1  |  vg_ora112
  /dev/sdd2  |  
  /dev/sdd3  |  vg_ora112
  /dev/sdd5  |  vg_ora101
  /dev/sde1  |  vg_ora112
  /dev/sde2  |  vg_ora112
  /dev/sde3  |  
  /dev/sde4  |  vg_ora101
  /dev/sdf1  |  vg_ora112
  /dev/sdf2  |  
  /dev/sdf3  |  vg_ora112
  /dev/sdf5  |  vg_ora101

Hope that helps.

Tags:

Linux

Lvm