User Tools

Site Tools


megaraid

Čia yra sena dokumento versija!


Controller information

MegaCli -AdpAllInfo -aALL MegaCli -CfgDsply -aALL MegaCli -AdpEventLog -GetEvents -f events.log -aALL && cat events.log

Enclosure information

MegaCli -EncInfo -aALL

Virtual drive information

MegaCli -LDInfo -Lall -aALL

Physical drive information

MegaCli -PDList -aALL MegaCli -PDInfo -PhysDrv [E:S] -aALL

Battery backup information

MegaCli -AdpBbuCmd -aALL

Controller management

Silence active alarm

MegaCli -AdpSetProp AlarmSilence -aALL

Disable alarm

MegaCli -AdpSetProp AlarmDsbl -aALL

Enable alarm

MegaCli -AdpSetProp AlarmEnbl -aALL

Physical drive management

Set state to offline

MegaCli -PDOffline -PhysDrv [E:S] -aN

Set state to online

MegaCli -PDOnline -PhysDrv [E:S] -aN

Mark as missing

MegaCli -PDMarkMissing -PhysDrv [E:S] -aN

Prepare for removal

MegaCli -PdPrpRmv -PhysDrv [E:S] -aN

Replace missing drive

MegaCli -PdReplaceMissing -PhysDrv [E:S] -ArrayN -rowN -aN

The number N of the array parameter is the Span Reference you get using „MegaCli -CfgDsply -aALL“ and the number N of the row parameter is the Physical Disk in that span or array starting with zero (it’s not the physical disk’s slot!).

Rebuild drive

MegaCli -PDRbld -Start -PhysDrv [E:S] -aN MegaCli -PDRbld -Stop -PhysDrv [E:S] -aN MegaCli -PDRbld -ShowProg -PhysDrv [E:S] -aN

Clear drive

MegaCli -PDClear -Start -PhysDrv [E:S] -aN MegaCli -PDClear -Stop -PhysDrv [E:S] -aN MegaCli -PDClear -ShowProg -PhysDrv [E:S] -aN

Bad to good (or back to good as I like to call it)

MegaCli -PDMakeGood -PhysDrv[E:S] -aN

This changes drive in state Unconfigured-Bad to Unconfigured-Good.

Walkthrough: Change/replace a drive

Set the drive offline, if it is not already offline due to an error

MegaCli -PDOffline -PhysDrv [E:S] -aN

Mark the drive as missing

MegaCli -PDMarkMissing -PhysDrv [E:S] -aN

Prepare drive for removal

MegaCli -PDPrpRmv -PhysDrv [E:S] -aN

Change/replace the drive

If you’re using hot spares then the replaced drive should become your new hot spare drive:

MegaCli -PDHSP -Set -PhysDrv [E:S] -aN

In case you’re not working with hot spares, you must re-add the new drive to your RAID virtual drive and start the rebuilding

MegaCli -PdReplaceMissing -PhysDrv [E:S] -ArrayN -rowN -aN MegaCli -PDRbld -Start -PhysDrv [E:S] -aN

Geras: megacli -pdgetmissing -a0

  Explanation of Raid Levels: 
* ['Primary-0, Secondary-0, RAID Level Qualifier-0'] = RAID-0
* ['Primary-1, Secondary-0, RAID Level Qualifier-0'] = RAID-1
* ['Primary-5, Secondary-0, RAID Level Qualifier-3'] = RAID-5
* ['Primary-6, Secondary-0, RAID Level Qualifier-3'] = RAID-6
* ['Primary-1, Secondary-3, RAID Level Qualifier-0'] = RAID-10
  1. 663 megacli -PDList -a0
  2. 665 megacli -CfgDsply -a0
  3. 666 megacli -PdReplaceMissing -PhysDrv[32:1] -array1 -row1 -a0
  4. 667 megacli -PdReplaceMissing -PhysDrv[32:1] -array1 -row2 -a0
  5. 668 megacli -PdReplaceMissing -PhysDrv[32:1] -array1 -a0
  6. 669 megacli -PdReplaceMissing -PhysDrv[32:1] -array1 -row0 -a0
  7. 670 megacli -CfgDsply -a0
  8. 671 megacli -CfgDsply -a0 | grep -i row
  9. 672 megacli -pdgetmissing -a0
  10. 673 megacli -PdReplaceMissing -PhysDrv[32:1] -array1 -row1 -a0
  11. 674 megacli -PdReplaceMissing -PhysDrv[32:1] -array1 -row 1 -a0
  12. 675 megacli -PdReplaceMissing -PhysDrv[32:1] -array 1 -row 1 -a0
  13. 676 megacli -PdReplaceMissing -PhysDrv[32:1] -array0 -row1 -a0
  14. 677 megacli -pdgetmissing -a0
  15. 678 megacli -CfgDsply -a0
  16. 679 megacli -pdrbld -start -physdrv [32:1] -a0
  17. 680 megacli -pdrbld -showprog -physdrv [:0] -a0
  18. 681 megacli -pdrbld -showprog -physdrv [:1] -a0
megaraid.1416395991.txt.gz · Keista: 2014/11/19 13:19 vartotojo dalius