Unconfigured(good), Spun Up
megacli -AdpAllInfo -aAll :
Device Present ================ Virtual Drives : 1 Degraded : 1 Offline : 0 Physical Devices : 9 Disks : 8 Critical Disks : 0 Failed Disks : 0
Voir le disque en défaut : megacli -PDList -aALL |egrep "Enclosure|Slot|state" :
Enclosure Device ID: 32 Slot Number: 0 Firmware state: Online, Spun Up Enclosure Device ID: 32 Slot Number: 1 Firmware state: Online, Spun Up Enclosure Device ID: 32 Slot Number: 2 Firmware state: Online, Spun Up Enclosure Device ID: 32 Slot Number: 3 Firmware state: Online, Spun Up Enclosure Device ID: 32 Slot Number: 4 Firmware state: Online, Spun Up Enclosure Device ID: 32 Slot Number: 5 Firmware state: Unconfigured(good), Spun Up Enclosure Device ID: 32 Slot Number: 6 Firmware state: Online, Spun Up Enclosure Device ID: 32 Slot Number: 7 Firmware state: Online, Spun UpLe disque 5 a donc un problème : il n'est pas configuré !
La commande megacli -CfgDsply -a0 le confirme (aucune configuration) :
Physical Disk: 5
Récupérer les paramètres nécessaires à la réintégration : megacli -PDGetMissing -aAll :
Adapter 0 - Missing Physical drives No. Array Row Size Expected 0 0 5 3814912 MB
Ajouter le disque dans le pool (Enclosure:Slot deux commandes au dessus, array, row et adapter dans la commande au dessus) : megacli -PdReplaceMissing -PhysDrv[32:5] -array0 -row5 -a0 :
Adapter: 0: Missing PD at Array 0, Row 5 is replaced.
Reconstruire le RAID : megacli -PDRbld -Start -PhysDrv[32:5] -a0 :
Started rebuild progress on device(Encl-32 Slot-5)
Vérifier que le RAID est bien en cours de reconstruction : megacli -PDList -aALL |egrep "Enclosure|Slot|state" :
Slot Number: 0 Firmware state: Online, Spun Up Slot Number: 1 Firmware state: Online, Spun Up Slot Number: 2 Firmware state: Online, Spun Up Slot Number: 3 Firmware state: Online, Spun Up Slot Number: 4 Firmware state: Online, Spun Up Slot Number: 5 Firmware state: Rebuild Slot Number: 6 Firmware state: Online, Spun Up Slot Number: 7 Firmware state: Online, Spun Up
Pour voir le pourcentage de reconstruction : megacli -PDRbld -ShowProg -PhysDrv[32:5] -a0 :
Rebuild Progress on Device at Enclosure 32, Slot 5 Completed 1% in 7 Minutes.
Si tout va bien, la commande megaraidsas-status est aussi disponible :
-- Arrays informations -- -- ID | Type | Size | Status a0d0 | RAID 5 | 25TiB | DEGRADED -- Disks informations -- ID | Model | Status | Warnings a0e32s0 | TOSHIBA MG04SCA40EN 3726GiB | online | errs: media:18 other:0 a0e32s1 | SEAGATE ST4000NM0295 3726GiB | online | errs: media:2 other:0 a0e32s2 | WD WD4001FYYG 3726GiB | online | errs: media:3 other:0 a0e32s3 | SEAGATE ST4000NM0295 3726GiB | online | errs: media:2 other:0 a0e32s4 | SEAGATE ST4000NM0295 3726GiB | online | errs: media:2 other:0 a0e32s5 | WD WD4001FYYG 3726GiB | rebuild | errs: media:0 other:4 a0e32s6 | TOSHIBA MG04SCA40EN 3726GiB | online a0e32s7 | WD WD4001FYYG 3726GiB | online | errs: media:1 other:0 There is at least one disk/array in a NOT OPTIMAL state.
Basé sur https://mnt-tech.fr/blog/firmware-state-unconfiguredgood-spun-up/