HP-UX System Administrator's Guide: Logical Volume Management (5900-3028, March 2013)
4 Troubleshooting LVM
This chapter provides conceptual troubleshooting information as well as detailed procedures to
help you plan for LVM problems, troubleshoot LVM, and recover from LVM failures. It contains the
following information:
• “Troubleshooting Overview” (page 110)
• “I/O Errors” (page 112)
• “Volume Group Activation Failures” (page 114)
• “Root Volume Group Scanning” (page 117)
• “LVM Boot Failures” (page 118)
• “Problems After Reducing the Size of a Logical Volume” (page 118)
• “Disk Troubleshooting and Recovery Procedures” (page 119)
• “Reporting Problems” (page 141)
Troubleshooting Overview
This section describes LVM troubleshooting areas and tools available for troubleshooting LVM
problems.
Information Collection
You can collect information about your LVM configuration using the vgdisplay, lvdisplay,
pvdisplay, and lvlnboot commands. As noted in “Planning for Recovery” (page 34),
periodically collect the outputs from the commands listed in Table 10.
Table 10 LVM Information to Collect and Maintain
PurposeScopeCommand
Prints I/O configurationioscan -f
Prints information on root, boot, swap, and dump logical
volumes.
lvlnboot -v
Prints volume group configuration from the backup file.All volume groupsvgcfgrestore -l
Prints volume group information, including status of
logical volumes and physical volumes.
All volume groupsvgdisplay -v
Prints logical volume information, including mapping
and status of logical extents.
All logical volumeslvdisplay -v
Prints physical volume information, including status of
physical extents.
All physical volumespvdisplay -v
Print I/O configuration listing the hardware path to the
disk, LUN instance, LUN hardware path and lunpath
hardware path to the disk.
ioscan -m lun
In addition, use the lvmadm command for two purposes:
• To determine which volume group versions are supported by your release of HP-UX 11i Version
3. For example, if your release supports Version 2.1 volume groups, lvmadm displays the
following:
# lvmadm -t -V 2.1
--- LVM Limits ---
VG Version 2.1
Max VG Size (Tbytes) 2048
Max LV Size (Tbytes) 256
110 Troubleshooting LVM