9 troubleshooting, General troubleshooting – HP XP RAID Manager Software User Manual
Page 190
9 Troubleshooting
Troubleshooting information is provided to assist if you have trouble using RAID Manager.
General troubleshooting
If you have a problem with the RAID Manager software, first make sure that the problem is not
being caused by the UNIX/PC server hardware or software, and try restarting the server.
Recommended action
Problem
RAID Manager currently uses the ioctl(SCSI_IOCTL_SEND_COMMAND) for sending the
control command to the command device. However, in RHEL 4.0 using kernel 2.6.9.XX, the
following message is output to syslog file(/var/log/messages) with every ioctl():
Deprecated SCSI ioctl
The following message
is output to syslog
program horcmgr is using a deprecated SCSI ioctl,
please convert it to SG_IO
file(/var/log/messages)
with every ioctl():
This may originate from the following kernel code in drivers/scsi/scsi_ioctl.c as way of warning
that ioctl(SCSI_IOCTL_…) of kernel 2.6.9.XX does not properly handle an error of the HBA
driver.
program horcmgr
is using a
deprecated SCSI
ioctl, please
----------------------------------------------------------------------
convert it to
SG_IO
/* Check for deprecated ioctls ... all the ioctls that do not follow the
new unique numbering scheme are deprecated */
switch (cmd) {
case SCSI_IOCTL_SEND_COMMAND:
case SCSI_IOCTL_TEST_UNIT_READY:
case SCSI_IOCTL_BENCHMARK_COMMAND:
case SCSI_IOCTL_SYNC:
case SCSI_IOCTL_START_UNIT:
case SCSI_IOCTL_STOP_UNIT:
printk(KERN_WARNING "program %s is
using a deprecated SCSI "
"ioctl, please convert it to
SG_IO\n", current->comm);
-------------------------------------------
--------------------------
Thus, RAID Manager supports a way to change to the ioctl(SG_IO) automatically, if Linux
kernel supports the ioctl(SG_IO) for horcmgr and inqraid command. However, RAID
Manager may encounter Linux kernel that does not support the ioctl(SG_IO) fully, so RAID
Manager also supports by defining either following environment variable or
“/HORCM/etc/USE_OLD_IOCTL” file(size=0) that uses the
ioctl(SCSI_IOCTL_SEND_COMMAND) forcibly. For example:
export USE_OLD_IOCTL=1
horcmstart.sh 10
HORCM/etc:
-rw-r--r-- 1 root root 0 Nov 11 11:12 USE_OLD_IOCTL
-r--r--r-- 1 root sys 32651 Nov 10 20:02 horcm.conf
-r-xr--r-- 1 root sys 282713 Nov 10 20:02 horcmgr
Operational notes and restrictions for RAID Manager operations
For maintenance of volumes used by RAID Manager and the HP features it supports, if a volume
failure occurs, it is important to find the failure in the paired volumes, recover the volumes, and
continue operation on the original system. When a RAID Manager (HORCM) or HP feature failure
190 Troubleshooting