[smartmontools-support] Smartctl Exit 4 on Megaraid

Christian Franke Christian.Franke at t-online.de
Tue Jul 5 17:32:01 CEST 2022


Erhan Senlik wrote:
> Hello Christian, I ran the command with v7.3 and got the same 
> unsupported firmware error. :/

Of course - we cannot fix firmware errors :-)

The change only affects the exit code of `smartctl -H` in case of this bug.


> $ sudo smartctl -r ioctl,2 -H  /dev/bus/1 -d megaraid,0; echo "exit 
> code: $(echo $?)"
> smartctl 7.3 2022-02-28 r5338 [x86_64-linux-4.18.0-394.el8.x86_64] 
> (local build)
> ...
> SMART Status not supported: ATA return descriptor not supported by 
> controller firmware
> SMART overall-health self-assessment test result: PASSED
> Warning: This result is based on an Attribute check.
>
> exit code: 0


If the same error occurs elsewhere, bit 2 of exit status is still set:

> $ sudo smartctl -x /dev/bus/1 -d megaraid,0; echo "exit code: $(echo $?)"
> smartctl 7.3 2022-02-28 r5338 [x86_64-linux-4.18.0-394.el8.x86_64] 
> (local build)
>  ...
> Write SCT Data Table failed: SMART WRITE LOG SECTOR may cause 
> problems, try with -T permissive to force
> Read SCT Temperature History failed
>
> Write SCT (Get) Error Recovery Control Command failed: ATA return 
> descriptor not supported by controller firmware
> SCT (Get) Error Recovery Control command failed
> ...
> exit code: 4




More information about the Smartmontools-support mailing list