Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX System Administrator's Guide: Logical Volume Management: HP-UX 11i Version 3 > Chapter 3 Administering LVM

Displaying LVM Information

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

To display information about volume groups, logical volumes, or physical volumes, use one of three commands. Each command supports the -v option to display detailed output and the -F option to help with scripting.

Information on Volume Groups

Use the vgdisplay command to show information about volume groups. For example:

# vgdisplay -v vg01 -- Volume groups -- VG Name /dev/vg01 VG Write Access read/write VG Status available Max LV 255 Cur LV 1 Open LV 1 Max PV 16 Cur PV 1 Act PV 1 Max PE per PV 1016 VGDA 2 PE Size (Mbytes) 4 Total PE 508 Alloc PE 508 Free PE 0 Total PVG 0 Total Spare PVs 0 Total Spare PVs in use 0 VG Version 1.0 VG Max Size 1082g VG Max Extents 69248 -- Logical volumes -- LV Name /dev/vg01/lvol1 LV Status available/syncd LV Size (Mbytes) 2032 Current LE 125 Allocated PE 508 Used PV 1 -- Physical volumes -- PV Name /dev/disk/disk42 PV Status available Total PE 508 Free PE 0 Autoswitch On Proactive Polling On

Use the vgdisplay command to verify whether the LVM configuration in memory has problems. If the LVM configuration is working properly, there are no error messages, and the display shows the following:

  • The status is available (or available/exclusive for Serviceguard volume groups).

  • All the physical volumes are active; that is, the current number of physical volumes (Cur PV) is equal to number of active physical volumes (Act PV).

  • All the logical volumes are open; that is, Cur LV is equal to Open LV.

Information on Physical Volumes

Use the pvdisplay command to show information about physical volumes. For example:

# pvdisplay -v /dev/disk/disk47 -- Physical volumes -- PV Name /dev/disk/disk47 VG Name /dev/vg00 PV Status available Allocatable yes VGDA 2 Cur LV 9 PE Size (Mbytes) 4 Total PE 1023 Free PE 494 Allocated PE 529 Stale PE 0 IO Timeout (Seconds) default Autoswitch On Proactive Polling On -- Distribution of physical volume -- LV Name LE of LV PE for LV /dev/vg00/lvol1 25 25 /dev/vg00/lvol2 25 25 /dev/vg00/lvol3 50 50 --- Physical extents --- PE Status LV LE 0000 current /dev/vg00/lvol1 0000 0001 current /dev/vg00/lvol1 0001 0002 current /dev/vg00/lvol1 0002 ... 1021 free 0000 1022 free 0000

If the physical volume is functioning properly, Stale PE is 0.

Information on Logical Volumes

Use the lvdisplay command to show information about logical volumes. For example:

# lvdisplay -v /dev/vg00/lvol1 -- Logical volumes -- LV Name /dev/vg00/lvol1 VG Name /dev/vg00 LV Permission read/write LV Status available/syncd Mirror copies 0 Consistency Recovery MWC Schedule parallel LV Size (Mbytes) 100 Current LE 25 Allocated PE 25 Stripes 0 Stripe Size (Kbytes) 0 Bad block off Allocation strict/contiguous IO Timeout (Seconds) default -- Distribution of logical volume -- PV Name LE on PV PE on PV /dev/disk/disk42 25 25 -- Logical extents -- LE PV1 PE1 Status 1 0000 /dev/disk/disk42 0000 current 0001 /dev/disk/disk42 0001 current 0002 /dev/disk/disk42 0002 current
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.