I don't know if this is the right place to file this or not. I'm using a 2.6.9-r?? kernel. I emerged the latest stable version of smartmontools. It's running fine, except that I'm getting the following error message every time it checks the health of my SCSI drives: Dec 23 11:13:15 [kernel] program smartd is using a deprecated SCSI ioctl, please convert it to SG_IO Dec 23 11:43:15 [kernel] program smartd is using a deprecated SCSI ioctl, please convert it to SG_IO Reproducible: Always Steps to Reproduce: 1. emerge smartmontools with defaults 2. define a SCSI drive or two in /etc/smartd.conf 3. run '/etc/init.d/smartd start' 4. tail -f /var/log/everything/current or, 1. Same as above 2. smartctl -a /dev/some-scsi-hard-drive Actual Results: Dec 23 11:13:15 [kernel] program smartd is using a deprecated SCSI ioctl, please convert it to SG_IO Dec 23 11:43:15 [kernel] program smartd is using a deprecated SCSI ioctl, please convert it to SG_IO Expected Results: No error message. I've got an Adaptec AIC7902 controller and a couple of Seagate ST336607LC drives. Here is the output from smartctl for one of the drives: smartctl version 5.30 Copyright (C) 2002-4 Bruce Allen Home page is http://smartmontools.sourceforge.net/ Device: SEAGATE ST336607LC Version: 0006 Serial number: 3JA2CF6Y000074039LMM Device type: disk Transport protocol: Parallel SCSI (SPI-4) Local Time is: Thu Dec 23 12:05:29 2004 CST Device supports SMART and is Enabled Temperature Warning Enabled SMART Health Status: OK Current Drive Temperature: 23 C Drive Trip Temperature: 68 C Vendor (Seagate) cache information Blocks sent to initiator = 2253100423 Blocks received from initiator = 2210095914 Blocks read from cache and sent to initiator = 31846464 Number of read and write commands whose size <= segment size = 1641191758 Number of read and write commands whose size > segment size = 622104 Vendor (Seagate) factory information number of hours powered up = 10368.57 number of minutes until next internal SMART test = 104 Error counter log: Errors Corrected Total Total Correction Gigabytes Total delay: [rereads/ errors algorithm processed uncorrected minor | major rewrites] corrected invocations [10^9 bytes] errors read: 92184 0 0 92184 92184 1336.723 0 write: 0 0 0 0 0 347.315 0 verify: 4740 0 0 4740 4740 36.753 0 Non-medium error count: 519 [GLTSD (Global Logging Target Save Disable) set. Enable Save with '-S on'] SMART Self-test log Num Test Status segment LifeTime LBA_first_err [SK ASC ASQ] Description number (hours) # 1 Background short Completed - 1 - [- - -] # 2 Background short Completed - 1 - [- - -]
does it still happen with 5.33 ?
yes, it does still happen with smartmontools 5.33 (sys-apps/smartmontools-5.33) on my AMD64 box. eb 10 20:33:39 mail program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO Feb 10 20:33:39 mail program smartctl is using a deprecated SCSI ioctl, please convert it to SG_I
known issue upstream ... glancing through cvs it doesnt look like it's been fixed yet
seems fixed in 5.36.