Dell/PERC RAID Manage in Debian
Иногда перед счасливыми обладателями серверов DELL стоит необходимость администрирования/мониторинга RAID контроллера без использования всякого рода GUI.
Для PERC 5 и PERC 6 котроллеров под управлением драйвера megaraid_sas используется утилита MegaCli
- Emergency Cheat Sheet
- Managing PERC 6 with MegaCli under Solaris 10
- check_megaraid_sas Nagios plugi
- Nagios checks for LSI RAID with MegaCli
- mr_sas_sw_up
- http://timelordz.com/wiki/MegaRAID_CLI
Для контроллеров SAS 5 и SAS 6 под управлением драйвера mptsas:
- Monitoring LSI Logic RAID controllers
- http://pocitace.tomasek.cz/SAS5iRperf/index.html
- mpt-status utility
MegaCli and smartctl
To get the device ID within the array, say if you know per Dell OpenMange that the drive is in slot 3, query with:
[root@host]# MegaCli -PDInfo -PhysDrv[32:3] -aAll Enclosure Device ID: 32 Slot Number: 3 Device Id: 3 Sequence Number: 13 Media Error Count: 182 Other Error Count: 23 Predictive Failure Count: 0 Last Predictive Failure Event Seq Number: 0 Raw Size: 476940MB [0x3a386030 Sectors] Non Coerced Size: 476428MB [0x3a286030 Sectors] Coerced Size: 476416MB [0x3a280000 Sectors] Firmware state: Online SAS Address(0): 0x1221000003000000 Connected Port Number: 3(path0) Inquiry Data: ATA ST3500320AS SD15 9QM76H5M
From the above, we learn this failed drive is “Device Id”=3, so we can now query it using smartctl to see the full smart info:
[root@host]# smartctl -a -d megaraid,3 /dev/sdb