Some version of Synology DSM would get wrong SMART info while using HBA card, and this script can fix it. (Not for showing the SMART info on DSM7.2.1 or later)
Useage:
-
Replace the black list in this smartctl for the disks not on your HBA card.
-
Rename the smartctl in
/bin
to smartctl-binary.mv /bin/smartctl /bin/smartctl-binary
-
Copy this smartctl to
/bin
-
chmod +x /bin/smartctl
Principle: RedPill-TTG/redpill-lkm#14 (comment)