Tuesday, October 18, 2011

Configuring & Managing DELL PERC array controller from Linux Operating System

MegaRAID Cli
-----------------
http://www.thegeekstuff.com/2009/05/dell-tutorial-create-raid-using-perc-6i-integrated-bios-configuration-utility/
http://tools.rapidsoft.de/perc/perc-cheat-sheet.html

Download
http://www.lsi.com/downloads/Public/Obsolete/Obsolete%20Common%20Files/dr_linux_2.20.4.6_as40.zip

HP Array Controller card configuration from Linux
---------------------------------------------------
http://www.datadisk.co.uk/html_docs/redhat/hpacucli.htm

---------------------------
View Enclosure Details
MegaCli -EncInfo -aALL

View Array Controller on Server
MegaCli -AdpAllInfo -aAll

View Physical disk attached to the Array Controller
MegaCli -PDList -aAll
---------------------------

View Types of RAID Supported by Array Controller Card.
MegaCli -AdpAllInfo -aAll|grep RAID

Create RAID 1 / 5 from MegaRAID Cli
MegaCli -CfgLdAdd -r1 [8:2, 8:3] -a0
8 = Enclosure Device ID Number - Can find it out from PDList information
2 & 3 = Disk Slot Number - Can find it out from PDList information
a0 - Adapter Number

MegaCli -CfgLdAdd -r5 [8:2, 8:3, 8:4] -a0
Raid 5 Creation
--------------------------------
View Virtual Device Information.
MegaCli -LDInfo -Lall -aALL
---------------------------------

Set disk state to offline
MegaCli -PDOffline -PhysDrv [8:3] -a0

MegaCli -PDList -aAll |egrep 'Enclosure|Slot|Firmware'
Enclosure Device ID: 8
Slot Number: 3
Firmware state: Offline
---------------------------------

Set disk state to online
MegaCli -PDonline -PhysDrv [8:3] -a0

MegaCli -PDList -aAll |egrep 'Enclosure|Slot|Firmware'
Enclosure Device ID: 8
Slot Number: 3
Firmware state: Offlin
-------------------------------

Mark Disk as missing
MegaCli -PDMarkMissing -PhysDrv [8:3] -a0

Prepare disk for removal
MegaCli -PdPrpRmv -PhysDrv [8:3] -a0

Replace Missing physical disk
MegaCli -PdReplaceMissing -PhysDrv [8:3] -ArrayN -rowN -aN

Rebuild the newly added disk
MegaCli -PDRbld -Start -PhysDrv [8:3] -aN

Check rebuild /start/stop/status rebuild on the server.
MegaCli -PDRbld -Start -PhysDrv [E:S] -aN
MegaCli -PDRbld -Stop -PhysDrv [E:S] -aN
MegaCli -PDRbld -ShowProg -PhysDrv [E:S] -aN