Difference between revisions of "MegaCli64"
Jump to navigation
Jump to search
(→Repair) |
|||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[File:Megacli.pdf|right|400px|Documentation]] | |||
; Display Info about the adapter | ; Display Info about the adapter | ||
: ./MegaCli64 -AdpAllInfo -aALL | : ./MegaCli64 -AdpAllInfo -aALL | ||
Line 12: | Line 13: | ||
; Make state "Unconfigured Good" | ; Make state "Unconfigured Good" | ||
: ./MegaCli64 -PDMakeGood -PhysDrv[8:3,8:4,8:5] -a0 | : ./MegaCli64 -PDMakeGood -PhysDrv[8:3,8:4,8:5] -a0 /* 8:3 = enclosureid:slotid */ | ||
; Add disk to the array | ; Add disk to the array | ||
Line 19: | Line 20: | ||
; Check RAID reconstruction status | ; Check RAID reconstruction status | ||
:./MegaCli64 -ldrecon showprog -L0 -a0 | :./MegaCli64 -ldrecon showprog -L0 -a0 | ||
; Check RAID reconstruction status | |||
./MegaCli64 -PDRbld -ShowProg -PhysDrv [252:4] -aALL | |||
; Refresh the kernel infos about the RAID | ; Refresh the kernel infos about the RAID | ||
Line 24: | Line 28: | ||
; Extend the partition | ; Extend the partition | ||
:remove the partion and create it new | :remove the partion and create it new with gdisk (start sector 63) | ||
; resize the filesystem (you have maybe to run e2fsck before) | ; resize the filesystem (you have maybe to run e2fsck before) | ||
:resize2fs /dev/xxxx | :resize2fs /dev/xxxx | ||
== Diagnostic == | |||
; See critical event | |||
MegaCli64 -AdpEventLog -GetEvents -critical -fatal -f events.log -aALL | |||
== Repair == | |||
; Repair a HD | |||
./MegaCli64 -PDMakeGood -PhysDrv[252:4] -a0 | |||
; Make a Hotspare | |||
./MegaCli64 -PDHSP -set -PhysDrv[A:B] -a0 | |||
; Make silence | |||
./MegaCli64 -AdpSetProp AlarmSilence -a0 | |||
; Make alarm disable | |||
./MegaCli64 -AdpSetProp AlarmDsbl -aALL | |||
; Make alarm enable | |||
./MegaCli64 -AdpSetProp AlarmEnbl -aALL | |||
== Locate hard disk == | |||
; Set blinker | |||
./MegaCli64 -AdpSetProp UseDiskActivityforLocate 1 -aALL ; | |||
; Blink for specic disk | |||
./MegaCli64 -PdLocate -start -PhysDrv[252:4] -aALL | |||
== Server RAID configuration == | == Server RAID configuration == | ||
Line 37: | Line 70: | ||
2 2 9 online | 2 2 9 online | ||
3 0 10 hotspare | 3 0 10 hotspare | ||
4 | 4 4 12 online | ||
5 7 14 | 5 7 14 online | ||
6 | 6 5 15 online | ||
7 0000000000000000 | 7 0000000000000000 | ||
</pre> | </pre> | ||
== Other == | |||
* [https://supportforums.cisco.com/docs/DOC-16309] |
Latest revision as of 12:23, 21 February 2015
- Display Info about the adapter
- ./MegaCli64 -AdpAllInfo -aALL
- Display Physical devices
- ./MegaCli64 -PDList -aALL
- Display Logical devices
- ./MegaCli64 -LDInfo -LALL -aALL
- Display detailed Adapter and Device information
- ./MegaCli64 -AdpAlILog -aALL
- Make state "Unconfigured Good"
- ./MegaCli64 -PDMakeGood -PhysDrv[8:3,8:4,8:5] -a0 /* 8:3 = enclosureid:slotid */
- Add disk to the array
./MegaCli64 -LDRecon -Start -R5 -Add -PhysDrv[252:7] -L0 -a0
- Check RAID reconstruction status
- ./MegaCli64 -ldrecon showprog -L0 -a0
- Check RAID reconstruction status
./MegaCli64 -PDRbld -ShowProg -PhysDrv [252:4] -aALL
- Refresh the kernel infos about the RAID
- rmmod megaraid_sas ; modprobe megaraid_sas
- Extend the partition
- remove the partion and create it new with gdisk (start sector 63)
- resize the filesystem (you have maybe to run e2fsck before)
- resize2fs /dev/xxxx
Diagnostic
- See critical event
MegaCli64 -AdpEventLog -GetEvents -critical -fatal -f events.log -aALL
Repair
- Repair a HD
./MegaCli64 -PDMakeGood -PhysDrv[252:4] -a0
- Make a Hotspare
./MegaCli64 -PDHSP -set -PhysDrv[A:B] -a0
- Make silence
./MegaCli64 -AdpSetProp AlarmSilence -a0
- Make alarm disable
./MegaCli64 -AdpSetProp AlarmDsbl -aALL
- Make alarm enable
./MegaCli64 -AdpSetProp AlarmEnbl -aALL
Locate hard disk
- Set blinker
./MegaCli64 -AdpSetProp UseDiskActivityforLocate 1 -aALL ;
- Blink for specic disk
./MegaCli64 -PdLocate -start -PhysDrv[252:4] -aALL
Server RAID configuration
Port Slot Id Address 0 3 8 online 1 1 11 online 2 2 9 online 3 0 10 hotspare 4 4 12 online 5 7 14 online 6 5 15 online 7 0000000000000000