Thus, the error message is actually : it tells you exactly what to do—add the -d megaraid,N option.

To fix the error smartctl open device /dev/sda failed , you must specify the RAID controller interface and logical drive number.