Megacli replace predictive failed drive

By steve, 23 July, 2019

In order to replace a predicitve failed drive without triggering a rebuild onto the hot spare and then a copy back, use the following procedure:
(this example is replacing the drive in slot 84:4 on adapter 0)

  • MegaCli64 -AdpAutoRbld -Dsbl -a0
  • MegaCli64 -PDOffline -PhysDrv '[84:4]' -a0
  • MegaCli64 -PDMarkMissing -PhysDrv '[84:4]' -a0
  • MegaCli64 -PDPrpRmv -PhysDrv '[84:4]' -a0
  • MegaCli64 -PDLocate -PhysDrv '[84:4]' -a0
  • Locate and replace the failed drive
  • MegaCli64 -Pdgetmissing -a0
  • Get the array number and row number of the missing drive from the command output
  • MegaCli64 -PdReplaceMissing -PhysDrv '[84:4]' -Array 6 -row 3 -a0
  • MegaCli64 -PDRbld -Start -PhysDrv '[84:4]' -a0
  • MegaCli64 -AdpAutoRbld -Enbl -a0
  • If yoo want to watch the rebuild progress
  • MegaCli64 -PDRbld -ProgDsply -PhysDrv '[84:4]' -a0

Comments