Megacli

Aus Root-Wiki
Wechseln zu: Navigation, Suche

Einige Befehle für megacli.

Infos

Zustand des RAIDs:

megacli -LDInfo -Lall -Aall

Zustand der Festplatte/n:

megacli -PDList -Aall
megacli -PDInfo -PhysDrv [252:0] -aAll

Nützliche Infos der Festplatten im Überblick:

megacli -PDList -aAll | egrep "Enclosure Device ID:|Slot Number:|Inquiry Data:|Error Count:|state"


Status ändern

Set state to offline

megacli -PDOffline -PhysDrv [252:0] -a0

Set state to online

megacli -PDOnline -PhysDrv [252:0] -a0

Mark as missing

megacli -PDMarkMissing -PhysDrv [252:0] -a0

Prepare for removal

megacli -PdPrpRmv -PhysDrv [252:0] -a0 


Festplatte im RAID einbinden

Zustand der Festplatte von Unconfigured(bad) auf Unconfigured(good) ändern:

megacli -PDMakeGood -PhysDrv [252:0] -a0

row herausfinden:

megacli -pdgetmissing -a0

Festplatte hinzufügen:

megacli -PdReplaceMissing -PhysDrv[252:0] -array0 -row0 -a0

Rebuild starten

megacli -PDRbld -Start -PhysDrv[252:0] -a0


Rebuild

Rebuild Status abfragen:

megacli -PDRbld -ShowProg -PhysDrv [252:0] -aAll

Rebuild Geschwindigkeit auslesen:

megacli -AdpGetProp RebuildRate -a0

Rebuild Geschwindigkeit ändern (in dem Fall auf 50%):

megacli -AdpSetProp RebuildRate "50" -a0


SMART Werte

megacli -pdlist -a0| grep 'Device Id'
smartctl -d sat+megaraid,1 -a /dev/sda