HP-UX System Administrator's Guide: Logical Volume Management HP-UX 11i v3 (B3921-90053 September 2011) Transform used: ESS version 2.2
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 107)
• “I/O Errors” (page 109)
• “Volume Group Activation Failures” (page 111)
• “Root Volume Group Scanning” (page 114)
• “LVM Boot Failures” (page 115)
• “Problems After Reducing the Size of a Logical Volume” (page 115)
• “Disk Troubleshooting and Recovery Procedures” (page 116)
• “Reporting Problems” (page 139)
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 9.
Table 9 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
Troubleshooting Overview 107