If you encounter the error Smartctl open device: /dev/sda failed: DELL or MegaRaid controller, please try adding '-d megaraid,N' , it means smartctl cannot directly talk to your hard drives because they are hidden behind a (like a Dell PERC). To fix this, you must tell smartctl exactly which physical drive to look at using the -d megaraid,N flag. Why This Error Occurs
doesn't work, use one of these methods to find the actual physical drive IDs: sudo smartctl --scan
Assuming you want to monitor a disk with a PD number of 2, the smartctl command would be:
One will fail (non-existent drive) or return info for the correct disk.
: Run sudo megacli -PDList -aALL | grep "Device Id" . Step 2: Run the Correct Command
Alternatively, use the Dell/LSI tool with the command sudo storcli /c0 /eall /sall show and look for the DID (Device ID) column. Execute the Correct Command :