Dell PERC 6/i and RAID monitoring

Aus xinux.net
Zur Navigation springen Zur Suche springen

A few pointers for people trying to get Dell's PERC 6/i RAID monitoring working under Ubuntu, and any other linux for that matter. It also applies to PERC 5/i too, and... other stuff :-)

First, visit Dells Linux site. Have a poke about, see what's there.

Next, we need to download a tool to get information from your array. Download LSI's MegaRAID CLI tool for linux. It comes as a .RPM, so if you're an ubuntu user, you can convert it to a .deb using alien, or convert it to a .tar.gz.

alien --to-tgz MegaCli-1.01.39-0.i386.rpm

You then have a CLI tool you can use to get all your data now! For example:

/opt/MegaRAID/MegaCli/MegaCli -LDInfo -Lall -aALL | grep State State: Optimal

One thing I spent a while figuring out was how to get the rebuild progress, so here's how:

/opt/MegaRAID/MegaCli/MegaCli -PDRbld -ShowProg -PhysDrv \[32:1\] -aALL

There's also a really useful cheat sheet for common tasks


So sieht ein lspci auf einem Dell 2950 mit SAS-Controller aus:

lspci | grep -i raid
02:08.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1068 PCI-X Fusion-MPT SAS (rev01)

Bedienung mpt-status:

mpt-status auf der Kommandozeile ausführen. Bedienung MegaCli:

/opt/MegaRAID/MegaCli/MegaCli -AdpAllInfo -a0 

Weitere nützliche Kommandos für MegaCli:

alle Events in Log schreiben

/opt/MegaRAID/MegaCli/MegaCli -AdpEventLog -GetEvents -f /tmp/megacli-eventlog.txt -a0

BootDrive rausfinden

/opt/MegaRAID/MegaCli/MegaCli -AdpBootDrive -Get -a0

RebuildRate rausfinden (default 30%)

/opt/MegaRAID/MegaCli/MegaCli -AdpGetProp RebuildRate -a0

Ist AutoRebuild aktiviert?

/opt/MegaRAID/MegaCli/MegaCli -AdpAutoRbld -Dsply -aALL

Consistency Check laufend?

/opt/MegaRAID/MegaCli/MegaCli -LDCC -ShowProg -LALL -aALL

Consistency Check starten

/opt/MegaRAID/MegaCli/MegaCli -LDCC -Start -LALL -aAL

Dokumentation: http://www.lsi.com/files/docs/techdocs/storage_stand_prod/sas/mr_sas_sw_ug.pdf

MegaCLI: http://www.lsi.com/support/downloads/megaraid/miscellaneous/linux/1.01.40_Linux_Cli.zip

Vorlage:HOWTO

https://www.thomas-krenn.com/de/wiki/MegaRAID_Controller_mit_MegaCLI_verwalten#Linux