Dans l'esprit de LVM, la commande 'vgdisplay' permet d'afficher les informations concernant les VG sous HP-UX.
SAns argument, la commande affiche les informations générales pour tous les VG.
# vgdisplay
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 22
Open LV 22
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4350
VGDA 4
PE Size (Mbytes) 8
Total PE 8680
Alloc PE 8680
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Name /dev/vgpat
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 17
Open LV 17
Max PV 16
Cur PV 6
Act PV 6
Max PE per PV 30000
VGDA 12
PE Size (Mbytes) 8
Total PE 52494
Alloc PE 29952
Free PE 22542
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
En donnant un nom de VG , on affiche que les informations de celui-ci.
En utilisant l'option '-v', on affiche les informations sur les disques physiques associés:
# vgdisplay -v /dev/vgpatsave
--- Volume groups ---
VG Name /dev/vgpatsave
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 8750
VGDA 4
PE Size (Mbytes) 16
Total PE 17498
Alloc PE 17498
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vgpatsave/lvpatsave
LV Status available/syncd
LV Size (Mbytes) 279968
Current LE 17498
Allocated PE 17498
Used PV 2
--- Physical volumes ---
PV Name /dev/dsk/c25t0d0
PV Status available
Total PE 8749
Free PE 0
Autoswitch On
PV Name /dev/dsk/c25t2d0
PV Status available
Total PE 8749
Free PE 0
Autoswitch On