After commenting that out, I get the following – does

that still point to LSI firmware?

 

thanks.

chanda

 

===== [SMART READ ATTRIBUTE VALUES] DATA END (512 Bytes) =====

 

 

REPORT-IOCTL: Device=/dev/sda Command=SMART READ ATTRIBUTE THRESHOLDS

Input:   FR=0xd1, SC=0x01, LL=0x01, LM=0x4f, LH=0xc2, DEV=...., CMD=0xb0 IN

[ata pass-through(16): 85 08 0e 00 d1 00 01 00 01 00 4f 00 c2 00 b0 00 ]

[Duration: 0.111s]

REPORT-IOCTL: Device=/dev/sda Command=SMART READ ATTRIBUTE THRESHOLDS returned 0

 

===== [SMART READ ATTRIBUTE THRESHOLDS] DATA START (BASE-16) =====

000-015: 01 00 01 2c 00 00 00 00 00 00 00 00 00 00 03 00 |...,............|

016-031: 00 00 00 00 00 00 00 00 00 00 04 14 00 00 00 00 |................|

032-047: 00 00 00 00 00 00 05 24 00 00 00 00 00 00 00 00 |.......$........|

048-063: 00 00 07 1e 00 00 00 00 00 00 00 00 00 00 09 00 |................|

064-079: 00 00 00 00 00 00 00 00 00 00 0a 61 00 00 00 00 |...........a....|

080-095: 00 00 00 00 00 00 0c 14 00 00 00 00 00 00 00 00 |................|

096-111: 00 00 b8 63 00 00 00 00 00 00 00 00 00 00 bb 00 |...c............|

112-127: 00 00 00 00 00 00 00 00 00 00 bc 00 00 00 00 00 |................|

128-143: 00 00 00 00 00 00 bd 00 00 00 00 00 00 00 00 00 |................|

144-159: 00 00 be 2d 00 00 00 00 00 00 00 00 00 00 bf 00 |...-............|

160-175: 00 00 00 00 00 00 00 00 00 00 c0 00 00 00 00 00 |................|

176-191: 00 00 00 00 00 00 c1 00 00 00 00 00 00 00 00 00 |................|

192-207: 00 00 c2 00 00 00 00 00 00 00 00 00 00 00 c3 00 |................|

208-223: 00 00 00 00 00 00 00 00 00 00 c5 00 00 00 00 00 |................|

224-239: 00 00 00 00 00 00 c6 00 00 00 00 00 00 00 00 00 |................|

240-255: 00 00 c7 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

256-271: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

272-287: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

288-303: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

304-319: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

320-335: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

336-351: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

352-367: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

368-383: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

384-399: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

400-415: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

416-431: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

432-447: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

448-463: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

464-479: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

480-495: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

496-511: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 84 |................|

===== [SMART READ ATTRIBUTE THRESHOLDS] DATA END (512 Bytes) =====

 

=== START OF READ SMART DATA SECTION ===

 

REPORT-IOCTL: Device=/dev/sda Command=SMART STATUS CHECK

Input:   FR=0xda, SC=...., LL=...., LM=0x4f, LH=0xc2, DEV=...., CMD=0xb0

[ata pass-through(16): 85 06 2c 00 da 00 00 00 00 00 4f 00 c2 00 b0 00 ]

sat_device::ata_pass_through: scsi_pass_through() failed, errno=5 [megasas_cmd result: 1.4 = 0/45]

[Duration: 0.107s]

REPORT-IOCTL: Device=/dev/sda Command=SMART STATUS CHECK returned -1 errno=5 [megasas_cmd result: 1.4 = 0/45]

SMART overall-health self-assessment test result: PASSED

Warning: This result is based on an Attribute check.

 

[root@iod ~]# echo $?

4 <- still error returned

 

 

From: Christian Franke [mailto:Christian.Franke@t-online.de]
Sent: Tuesday, October 08, 2013 2:57 PM
To: Chanda Yadavalli (cyadaval)
Cc: smartmontools-support@lists.sourceforge.net
Subject: Re: [smartmontools-support] smartctl health check fails

 

Chanda Yadavalli (cyadaval) wrote:

LSI says they are not getting the "ATA SMART" command.  Can you please confirm we are
even sending it down?  If I look in the code, here's what I see:
 
I see the error message in os_linux.cpp, in linux_megaraid_device::scsi_pass_through():
 
  if (iop->cmnd[0] == SAT_ATA_PASSTHROUGH_12 || iop->cmnd[0] == SAT_ATA_PASSTHROUGH_16) {
    // Controller does not return ATA output registers in SAT sense data
    if (iop->cmnd[2] & (1 << 5)) // chk_cond
      return set_err(ENOSYS, "ATA return descriptor not supported by controller firmware");
  }
 
 


This was added intentionally because issuing the SMART STATUS command via this controller's SAT layer produced bogus results.

Please remove these lines to check whether is works with recent firmware.

Thanks,
Christian