[CentOS] smartd and 3ware on centos5

Fri Oct 10 05:41:20 UTC 2008
Aleksandar Milivojevic <alex at milivojevic.org>

Hi,

I've CentOS5 box with 3ware RAID controller in it.  I can't get the
tw_cli command line tool to work, and smartd also barks on me.  The
tw_cli simply doesn't see the controller, no errors logged anywhere.

When starting smartd, it is much more verbose.  I'm getting a bunch of
messages like this:

Oct  9 22:15:15 toporko kernel: program smartd is using a deprecated
SCSI ioctl, please convert it to SG_IO
Oct  9 22:15:15 toporko kernel: 3w-xxxx: SCSI_IOCTL_SEND_COMMAND
deprecated, please update your 3ware tools.
Oct  9 22:15:15 toporko last message repeated 5 times
Oct  9 22:15:15 toporko smartd[29238]: Device: /dev/sda
[3ware_disk_00], not found in smartd database.
Oct  9 22:15:15 toporko smartd[29238]: Device: /dev/sda
[3ware_disk_00], ATA IDENTIFY DEVICE words 82-83 don't specify if
SMART capable.
Oct  9 22:15:15 toporko smartd[29238]: Device: /dev/sda
[3ware_disk_00], proceeding since '-T permissive' Directive given.
Oct  9 22:15:15 toporko kernel: program smartd is using a deprecated
SCSI ioctl, please convert it to SG_IO
Oct  9 22:15:15 toporko kernel: 3w-xxxx: SCSI_IOCTL_SEND_COMMAND
deprecated, please update your 3ware tools.
Oct  9 22:15:15 toporko last message repeated 5 times
Oct  9 22:15:15 toporko kernel: program smartd is using a deprecated
SCSI ioctl, please convert it to SG_IO
Oct  9 22:15:15 toporko kernel: 3w-xxxx: SCSI_IOCTL_SEND_COMMAND
deprecated, please update your 3ware tools.
Oct  9 22:15:15 toporko kernel: 3w-xxxx: SCSI_IOCTL_SEND_COMMAND
deprecated, please update your 3ware tools.
Oct  9 22:15:15 toporko smartd[29238]: The SMART RETURN STATUS return
value (smartmontools -H option/Directive) can not be passed through
the 3ware 3w-xxxx driv
er.  This can be fixed by applying a simple 3w-xxxx driver patch that
can be found here: http://smartmontools.sourceforge.net/
Alternatively, upgrade your 3w-xx
xx driver to version 1.02.00.037 or greater.

The configuration file for smartd looks like this:

/dev/sda -d 3ware,0 -a -m root -T permissive
/dev/sda -d 3ware,1 -a -m root -T permissive

I do remember smartd and tw_cli working in the past.  However, last
time I used them was so long ago that I don't remember if it was
before or after upgrade from CentOS4 to CentOS5.

Is it possible to get tw_cli and smartd into working condition on CentOS5 box?

Thanks,
Alex