beautypg.com

1 ab – Hitachi TAGMASTORE MK-90RD011-25 User Manual

Page 359

background image

Hitachi Command Control Interface (CCI) User and Reference Guide

341

5.1.1 About Linux Kernel 2.6.9.XX supported ioctl(SG_IO)

The 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 messages are output to syslog file (/var/log/messages) with every ioctl().

program horcmgr is using a deprecated SCSI ioctl, please convert it to SG_IO

This seems to 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 handle rightly an error of the
HBA driver.

-------------------------------------------------------------------------------------------

/* Check for deprecated ioctls ... all the ioctls which don't 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, in the
customer site, RAID Manager may encounter to Lilux kernel which does not support the
ioctl(SG_IO) fully. After this consideration, 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