I'm confused about this smartctl output. It says SMART status is not supported, but then it says it PASSED.
# sudo smartctl -H -d megaraid,24 /dev/sdb
smartctl 7.0 2018-12-30 r4883 [x86_64-linux-3.10.0-1160.59.1.el7.x86_64] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org
=== 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.
# echo $?
4
According to the man page, status code 4 means prefail Attribute is less than the danger threshold.
EXIT STATUS
...
...
Bit 4: We found prefail Attributes <= threshold.
So I'm confused, is SMART data available on this disk or not?
sudo smartctl --info /dev/sdb
will give you a little more information about support and weather it is enabled or not./deb/sdb
is a virtual disk