Opened 14 years ago

Closed 13 years ago

#92 closed defect (wontfix)

smartd does not support SATA disk under cciss

Reported by: gabrielev Owned by: somebody
Priority: major Milestone:
Component: all Version: 5.38
Keywords: cciss Cc:

Description

Running

smartd version 5.38

under

Debian Lenny 5.0.5 amd64

using a

HP SmartArray P212/256

smartctl works correctly:

sudo smartctl -d cciss,0 -a /dev/cciss/c0d0
smartctl version 5.38 [x86_64-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Serial number: 9RXKJ6P9            
Device type: disk
Local Time is: Mon Aug 30 17:57:02 2010 CEST
Device supports SMART and is Enabled
Temperature Warning Disabled or Not Supported
SMART Health Status: OK

Current Drive Temperature:     <not available>
Read defect list: asked for grown list but didn't get it

Error Counter logging not supported
Device does not support Self Test logging

But smartd not.

In

/etc/smartd.conf:
/dev/cciss/c0d0 -d cciss,0 -H -m root@localhost

Running:

sudo invoke-rc.d smartmontools start

gives the following errors in syslog:
A

ug 30 17:58:12 crosrv07 smartd[6798]: smartd version 5.38 [x86_64-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Aug 30 17:58:12 crosrv07 smartd[6798]: Home page is http://smartmontools.sourceforge.net/#012
Aug 30 17:58:12 crosrv07 smartd[6798]: Opened configuration file /etc/smartd.conf
Aug 30 17:58:12 crosrv07 smartd[6798]: Configuration file /etc/smartd.conf parsed.
Aug 30 17:58:12 crosrv07 smartd[6798]: Device: /dev/cciss/c0d0 [cciss_disk_00], opened
Aug 30 17:58:12 crosrv07 smartd[6798]: Device /dev/cciss/c0d0 [cciss_disk_00]: using '-d sat' for ATA disk behind SAT layer.
Aug 30 17:58:12 crosrv07 smartd[6798]: Device: /dev/cciss/c0d0 [cciss_disk_00], opened
Aug 30 17:58:12 crosrv07 kernel: [17501.663995] program smartd is using a deprecated SCSI ioctl, please convert it to SG_IO
Aug 30 17:58:12 crosrv07 smartd[6798]: Device: /dev/cciss/c0d0 [cciss_disk_00], not found in smartd database.
Aug 30 17:58:12 crosrv07 smartd[6798]: Device: /dev/cciss/c0d0 [cciss_disk_00], ATA IDENTIFY DEVICE words 82-83 don't specify if SMART capable.
Aug 30 17:58:12 crosrv07 smartd[6798]: Device: /dev/cciss/c0d0 [cciss_disk_00], to proceed anyway, use '-T permissive' Directive.
Aug 30 17:58:12 crosrv07 smartd[6798]: Unable to register SCSI device /dev/cciss/c0d0 [cciss_disk_00] at line 144 of file /etc/smartd.conf
Aug 30 17:58:12 crosrv07 smartd[6798]: Unable to register device /dev/cciss/c0d0 [cciss_disk_00] (no Directive -d removable). Exiting.

If you need further info, asl without problems.

Change History (7)

in reply to:  description comment:1 by Christian Franke, 14 years ago

Component: smartdall
Keywords: linux added

smartctl works correctly:
[...]

It doesn't. It prints the SCSI/SAS inquiry instead of the ATA identify information. In release 5.38 auto-detection of SAT was only present in smartd but not in smartctl.

These messages suggest that smartd detects a SAT layer but the ATA IDENTIFY via the SAT pass-through command does not work properly:

Aug 30 17:58:12 crosrv07 smartd[6798]: Device /dev/cciss/c0d0 [cciss_disk_00]: using '-d sat' for ATA disk behind SAT layer.
[...]
Aug 30 17:58:12 crosrv07 smartd[6798]: Device: /dev/cciss/c0d0 [cciss_disk_00], ATA IDENTIFY DEVICE words 82-83 don't specify if SMART capable.

Meantime handling of controllers and auto-detection has considerably changed. Please try smartmontools 5.39.1 or even better current version from SVN.

If SAT auto-detection does not work with current version the following may help:

smartctl -d sat+cciss,0 -a /dev/cciss/c0d0

I don't know whether CCISS driver/firmware really provides the SAT pass-through support required to monitor SATA disks. If not, only SAS disks can be monitored.

comment:2 by gabrielev, 14 years ago

Tried with the current version in debian, but smartd complains about knowing anything about the format "sat+cciss".
Can't install other version than this, because the machine is in a CSV environment.

Thank you very much for your help !

comment:3 by Gabriele Pohl, 14 years ago

Keywords: linux sata removed

in reply to:  2 ; comment:4 by dariusski, 14 years ago

smartctl -d sat+cciss,0 -a /dev/cciss/c0d0

Worked for me on Linux x64 + cciss + X25-M G2 SSD.

smartctl 5.40 2010-10-03 r3176 [x86_64-unknown-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net

START OF INFORMATION SECTION

Model Family: Intel X18-M/X25-M/X25-V G2 SSDs
Device Model: INTEL SSDSA2M080G2GC
Serial Number: CVPO016603CY080JGN
Firmware Version: 2CV102HD
User Capacity: 80,026,361,856 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 7
ATA Standard is: ATA/ATAPI-7 T13 1532D revision 1
Local Time is: Thu Oct 7 15:01:10 2010 EEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

START OF READ SMART DATA SECTION

Error SMART Status command failed
Please get assistance from http://smartmontools.sourceforge.net/
Register values returned from SMART Status command are:

ERR=...., SC=...., LL=...., LM=...., LH=...., DEV=...., STS=....

SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.

General SMART Values:
Offline data collection status: (0x00) Offline data collection activity

was never started.
Auto Offline Data Collection: Disabled.

Self-test execution status: ( 0) The previous self-test routine completed

without error or no self-test has ever
been run.

Total time to complete Offline
data collection: ( 1) seconds.
Offline data collection
capabilities: (0x75) SMART execute Offline immediate.

No Auto Offline data collection support.
Abort Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.

SMART capabilities: (0x0003) Saves SMART data before entering

power-saving mode.
Supports SMART auto save timer.

Error logging capability: (0x01) Error logging supported.

General Purpose Logging supported.

Short self-test routine
recommended polling time: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 1) minutes.
Conveyance self-test routine
recommended polling time: ( 1) minutes.

SMART Attributes Data Structure revision number: 5
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE

3 Spin_Up_Time 0x0020 100 100 000 Old_age Offline - 0
4 Start_Stop_Count 0x0030 100 100 000 Old_age Offline - 0
5 Reallocated_Sector_Ct 0x0032 100 100 000 Old_age Always - 1
9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 922

12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 31

192 Unsafe_Shutdown_Count 0x0032 100 100 000 Old_age Always - 22
225 Host_Writes_32MiB 0x0030 200 200 000 Old_age Offline - 20278
226 Workld_Media_Wear_Indic 0x0032 100 100 000 Old_age Always - 2390
227 Workld_Host_Reads_Perc 0x0032 100 100 000 Old_age Always - 0
228 Workload_Minutes 0x0032 100 100 000 Old_age Always - 3584251726
232 Available_Reservd_Space 0x0033 099 099 010 Pre-fail Always - 0
233 Media_Wearout_Indicator 0x0032 099 099 000 Old_age Always - 0
184 End-to-End_Error 0x0033 100 100 099 Pre-fail Always - 0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]

Note: selective self-test log revision number (0) not 1 implies that no selective self-test has ever been run
SMART Selective self-test log data structure revision number 0
Note: revision number not 1 implies that no selective self-test has ever been run

SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS

1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing

Selective self-test flags (0x0):

After scanning selected spans, do NOT read-scan remainder of disk.

If Selective self-test is pending on power-up, resume after 0 minute delay.

comment:5 by guidog, 13 years ago

That's what somebody at HP told me in May 2007:

| SATA drive support behind a smart array controller can only be done on
| an MSA20 enclosure. It appears you can't get detailed SATA disk
| information from other smart array devices since the firmware support
| for the passthroughs isn't there yet.

This might have changed in newer drive firmware.

in reply to:  4 comment:6 by Christian Franke, 13 years ago

Replying to dariusski:

smartctl -d sat+cciss,0 -a /dev/cciss/c0d0

Worked for me on Linux x64 + cciss + X25-M G2 SSD.

Which controller model and firmware revision was used?

comment:7 by Alex Samorukov, 13 years ago

Resolution: wontfix
Status: newclosed

No reply for 11 months

Note: See TracTickets for help on using tickets.