/opt/MegaRAID/MegaCli/MegaCli64 -pdlist -aALL | grep 'Device Id' to see the IDs for all disks. storcli /c0 /eall /sall show and look for the Smartctl Scan : You can also try smartctl --scan
smartctl -a -d megaraid,E,S /dev/sda # Example: Enclosure 252, Slot 0 smartctl -a -d megaraid,252,0 /dev/sda Use code with caution. How to Find Your Physical Drive Slot IDs (N)
/dev/sda -d scsi # /dev/sda, SCSI device /dev/bus/0 -d megaraid,0 # /dev/bus/0 [megaraid_disk_00], SCSI device /dev/bus/0 -d megaraid,1 # /dev/bus/0 [megaraid_disk_01], SCSI device /dev/bus/0 -d megaraid,2 # /dev/bus/0 [megaraid_disk_02], SCSI device Use code with caution. Note: Replace 0 with the actual Device ID
Note: Replace 0 with the actual Device ID you found in Step 1. In some configurations, the device node may also be /dev/bus/0 instead of /dev/sda . Why standard commands fail : Controllers like the Dell PERC H730 Go to product viewer dialog for this item.
Troubleshooting "smartctl open device dev sda failed" on Dell/MegaRAID Controllers Troubleshooting "smartctl open device dev sda failed" on
Once you have the ID, run the command against the controller's device node (usually /dev/sda or /dev/bus/0 ). Cannot get smartctl working - Unix & Linux Stack Exchange
smartctl -H -d megaraid,2 /dev/sda
This will output the enclosure device ID, which is usually a numerical value.
Fix: smartctl "Open Device /dev/sda Failed" on Dell MegaRAID Controllers S /dev/sda # Example: Enclosure 252