First, install StorCLI. Dell also provides , a rebranded version for their controllers. You can use the alien tool to convert .rpm packages for Debian/Ubuntu systems.
: Run sudo smartctl --scan to see a list of detected physical drives and their specific megaraid identifiers. First, install StorCLI
smartctl -d megaraid,0 -H /dev/sda
Host: scsi0 Channel: 02 Id: 00 Lun: 00 Vendor: LSI Model: MR9271-4i Rev: 3.27 Type: Direct-Access Host: scsi2 Channel: 00 Id: 00 Lun: 00 Vendor: ATA Model: WDC WD5003ABYX-0 Rev: 01.0 Type: Direct-Access Host: scsi3 Channel: 00 Id: 00 Lun: 00 Vendor: ATA Model: WDC WD5003ABYX-0 Rev: 01.0 Type: Direct-Access : Run sudo smartctl --scan to see a
If your drives are SATA (rather than SAS) behind a MegaRAID controller, you may need a combined device type: sudo smartctl -a -d sat+megaraid,N /dev/sda Use code with caution. Copied to clipboard Troubleshooting Tips Permissions : Always run these commands with or as root. Outdated Software megaraid,N still fails, ensure you are using a recent version of smartmontools Drive Handle Outdated Software megaraid,N still fails, ensure you are
cannot "see through" the controller by default, it fails to open The Fix: Using the -d megaraid,N To access a specific physical drive, you must tell which "slot" or it occupies on the controller. Identify the Device ID ( Use a RAID management tool like