[smartmontools-support] Smartctl Exit 4 on Megaraid

Erhan Senlik esenlik at live.com
Tue Jul 5 16:44:16 CEST 2022


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


full output:

https://pastebin.com/nyrK1wJ8


$  sudo smartctl --scan ;  echo "exit code: $(echo $?)"

/dev/sda -d scsi # /dev/sda, SCSI device

/dev/bus/1 -d megaraid,0 # /dev/bus/1 [megaraid_disk_00], SCSI device

/dev/bus/1 -d megaraid,1 # /dev/bus/1 [megaraid_disk_01], SCSI device

/dev/nvme0 -d nvme # /dev/nvme0, NVMe device

/dev/nvme1 -d nvme # /dev/nvme1, NVMe device

exit code: 0



$ 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)

Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org



=== START OF INFORMATION SECTION ===

Device Model:     MTFDDAK480TDS

Serial Number:    <SN>

LU WWN Device Id: 5 00a075 12f771dee

Add. Product Id:  DELL(tm)

Firmware Version: D3DJ004

User Capacity:    480,103,981,056 bytes [480 GB]

Sector Sizes:     512 bytes logical, 4096 bytes physical

Rotation Rate:    Solid State Device

Form Factor:      2.5 inches

TRIM Command:     Available, deterministic, zeroed

Device is:        Not in smartctl database 7.3/5319

ATA Version is:   ACS-4 (minor revision not indicated)

SATA Version is:  SATA 3.3, 6.0 Gb/s (current: 6.0 Gb/s)

Local Time is:    Tue Jul  5 07:23:12 2022 PDT

SMART support is: Available - device has SMART capability.

SMART support is: Enabled

AAM feature is:   Unavailable

APM level is:     254 (maximum performance)

Rd look-ahead is: Enabled

Write cache is:   Enabled

DSN feature is:   Unavailable

ATA Security is:  Unavailable

Write SCT (Get) Feature Control Command failed: ATA return descriptor not supported by controller firmware

Wt Cache Reorder: Unknown (SCT Feature Control command failed)



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

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.

Sent from my mobile

On Jul 1, 2022, at 3:55 PM, Christian Franke <Christian.Franke at t-online.de> wrote:

Haci Monk wrote:
**
I am in the process of building healthcheck for our various linux machines (DELL, HP etc) and trying to utilize some of the standard tools to expose physical disk health state. I am a noob on smartctl and trying to understand how it can help here.
I am encountering exit 4 running smartctl against my DELL machines on megaraid devices. Checking the man page for this return code, it states: “Bit 2: Some SMART or other ATA command to the disk failed, or there was a checksum error in a SMART data structure (see '-b' option above)”
I am assuming the failure here is because of the “ATA return descriptor not supported by controller firmware”?
Has anyone experienced this and how to overcome it?
Platform: Dell PowerEdge R740/R740XD

 * PERC H730P RAID Controller, 2GB NV Cache, Adapter, Full Height
 * 480GB SSD SATA Read Intensive 6Gbps 512 2.5in Hot-plug AG Drive, 1
   DWPD
 * 1.6TB Enterprise NVMe Mixed Use AG Drive U.2 Gen4 with carrier

The full output from scan and query against each device is uploaded to:
https://pastebin.com/5tcCvyCp
*$ sudo smartctl --scan*
/dev/sda -d scsi # /dev/sda, SCSI device
/dev/bus/0 -d megaraid,0 # /dev/bus/0 [megaraid_disk_00], SCSI device
/dev/bus/0 -d megaraid,1 # /dev/bus/0 [megaraid_disk_01], SCSI device
/dev/nvme0 -d nvme # /dev/nvme0, NVMe device
/dev/nvme1 -d nvme # /dev/nvme1, NVMe device
*$ sudo smartctl --xall -d megaraid,1 /dev/bus/0; echo "exit code: $(echo $?)"*
smartctl 7.1 2020-04-05 r5049 [x86_64-linux-4.18.0-394.el8.x86_64] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org <http://www.smartmontools.org>
=== START OF INFORMATION SECTION ===
Device Model: MTFDDAK480TDS
,,,
=== START OF READ SMART DATA SECTION ===
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: 4

Should no longer occur in smartctl 7.3, see
https://www.smartmontools.org/ticket/1441

_______________________________________________
Smartmontools-support mailing list
Smartmontools-support at listi.jpberlin.de
https://listi.jpberlin.de/mailman/listinfo/smartmontools-support
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://listi.jpberlin.de/pipermail/smartmontools-support/attachments/20220705/5123b5b9/attachment-0001.htm>


More information about the Smartmontools-support mailing list