2. Recognizing a Failing Disk
The guidelines in the previous section will not prevent disk failures on your system. Assuming you
follow all the recommendations, how can you tell when a disk has failed? This section explains how to
look for signs that one of your disks is having problems, and how to determine which disk it is.
I/O Errors in the System Log
Often an error message in the system log file is your first indication of a disk problem. In
/var/adm/syslog/syslog.log, you might see the following error:
HP-UX versions prior to 11.31:
SCSI: Request Timeout -- lbolt: 329741615, dev: 1f022000
To map this error message to a specific disk, look under the /dev directory for a device file with a
device number that matches the printed value. More specifically, search for a file whose minor
number matches the lower six digits of the number following dev:. The device number in this
example is 1f022000; its lower six digits are 022000, so search for that value using the following
command:
# ll /dev/*dsk | grep 022000
brw-r----- 1 bin sys 31 0x022000 Sep 22 2002 c2t2d0
crw-r----- 1 bin sys 188 0x022000 Sep 25 2002 c2t2d0
HP-UX 11.31 and later:
Asynchronous write failed on LUN (dev=0x3000015)
IO details : blkno : 2345, sector no : 23
To map this error message to a specific disk, look under the /dev directory for a device file with a
device number that matches the printed value. More specifically, search for a file whose minor
number matches the lower six digits of the number following dev:. The device number in this
example is 3000015; its lower six digits are 000015, so search for that value using the following
command:
# ll /dev/*disk | grep 000015
brw-r----- 1 bin sys 3 0x000015 May 26 20:01 disk43
crw-r----- 1 bin sys 23 0x000015 May 26 20:01 disk43
To confirm if the specific disk is under the LVM control, use the pvdisplay –l command. Even if the
disk is not accessible but has an entry in the LVM configuration file (/etc/lvmtab), the pvdisplay
–l command output is LVM_Disk=yes or LVM_Disk=no based on whether disk belongs to LVM or
not, respectively.
# pvdisplay -l /dev/dsk/c2t2d0
/dev/dsk/c11t1d7:LVM_Disk=yes
This gives you a device file to use for further investigation. If it is found that the disk does not belong
to LVM, see the appropriate manual pages or documentation for information on how to proceed.
The pvdisplay command supporting the new –l option, which detects whether the disk is under the
LVM control or not, is delivered as part of the LVM command component in these releases:
For HP-UX 11i v1, install patch PHCO_35313 or their superseding patches.
For HP-UX 11i v2, install patch PHCO_34421 or their superseding patches.
Note: Starting with HP-UX 11i v3, the –l option to the pvdisplay command is available as part of
the base operating system.
Comentarios a estos manuales