Re: smartd and smartctl - SMART status command failure

Christian Franke <[email protected]> Sat, 4 Jun 2016 17:44:29 +0200
Newsgroups gmane.linux.utilities.smartmontools
Message-ID <[email protected]>
Naveen wrote:
> When I run smartctl it reported below error and same with smartd.
>
>   START OF READ SMART DATA SECTION ===
> SMART Status command failed Please
> get assistance from http://smartmontools.sourceforge.net/
> Register values returned from SMART Status command are:
>   ERR=0x00, SC=0x00, LL=0x00, LM=0x00, LH=0x00, DEV=0x00, STS=0x00 SMART
> Status not supported: Invalid ATA output register values SMART
> overall-health self-assessment test result: PASSED
> Warning: This result is based on an Attribute check.
>
> Similarly smartd reported:
> Device: /dev/sdc, type changed from 'scsi' to 'sat'
> Device: /dev/sdc [SAT], opened
> Device: /dev/sdc [SAT], HGST HUS726060ALN610, S/N:NAHYUEUX,
> WWN:5-000cca-242dba5c9, FW:APGNT7J0, 6.00 TB
> Device: /dev/sdc [SAT], not found in smartd database.
> SMART Status command failed
> Please get assistance from http://smartmontools.sourceforge.net/
> Register values returned from SMART Status command are:
>   ERR=0x00, SC=0x00, LL=0x00, LM=0x00, LH=0x00, DEV=0x00, STS=0x00
> Device: /dev/sdc [SAT], not capable of SMART Health Status check Unable to
> register ATA device /dev/sdc [SAT] at line 23 of file /etc/smartmontools
> /smartd.conf
>
> It appears "smartctl" though failed the SMART status command, it checked the
> attribute threshold values and indicated "Disk is OK" but smartd doesn't do
> the latter and bails out as soon as SMART status command failed? Is that
> understanding correct?
>
> My questions are:
> 1) What causes the above error and any solutions to overcome this and
> monitor the drive?

Debug output for SMART STATUS CHECK from your 2nd mail suggests that the 
SAT layer of this (which?) controller's driver or firmware does not 
properly return ATA output registers in the SCSI sense data. See this 
ticket for details:
https://www.smartmontools.org/ticket/612#comment:1

Smartmontools 6.5 should detect this problem and print  "Incomplete 
response, ATA output registers missing" instead of the above message.


> 2) Given the above error looks like "smartd" doesn't do any monitoring on
> the device in this case, hence if we still want to monitor the device can we
> modify it to check the attribute values similar to how smartctl does? Just
> as an experiment?

Checking for failure of individual pre-fail attributes is not 
implemented in smartd. Try to enable tracking of attribute values 
instead. See smartd.conf directives -a -f -p -u -t -R on smartd.conf man 
page.


> 3)How to update the drives in the database since smartctl complains the
> drives are missing in its database.

https://www.smartmontools.org/wiki/Download#Updatethedrivedatabase


> 4)How to inject SMART errors to simulate and test SMART errors are being
> monitored and reported

This is not possible.

Thanks,
Christian


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e