-
Committer:
MAAS Lander
-
Author(s):
Lee Trager
-
Date:
2017-02-17 23:11:12 UTC
-
mfrom:
(5744.3.1 fix_smartctl)
-
Revision ID:
maas_lander-20170217231112-d5w3x2ymn81miqlh
[r=brendan-donegan,mpontillo][bug=][author=ltrager] Fix smartctl test when running on hardware RAID and unsupported hardware.
The smartctl --scan command lists all drives on the system along with the
device type and any options needed to run smartctl against the drive. While the extra options aren't needed for a typical SCSI drive, they are needed when running smartctl on certain hardware RAID systems to indicate which drive is to be tested.
smartctl --scan also lists all drives it can find, it does not filter out
drives which do not support SMART. The script now verifies all drives support SMART before scanning.