LSI RAID Card Stuff


These RAID cards are in the MPC NetFrame 3610 servers. We currently have three of them. The megarc program can be downloaded here:
http://www.lsilogic.com/downloads/downloads.do?product=7690&download_type=all

Here are some useful commands from the word doc that came with the utility:

(I've skipped most of the logical drive config section as we shouldn't have to worry about that once windows is installed.)

Configuration of a logical drive:

Megarc -dispCfg -aN

Objective: Display brief information about existing configuration of adapter N
Parameters: -aN : adapter number [must] 
Description: The utility displays the adapter information.
	     It displays the following information about the adapter.
	#Logical Drives
		Ld#-x1 RaidLevel Span Size Stripes State
		Ld#-x2 RaidLevel Span Size Stripes State
		Ld#-x3 RaidLevel Span Size Stripes State
	#HotSpare Drive
		ch,id

An example of this command on our servers would be:  megarc -dispCfg -a0

File operations:
Load/Save/Display configuration information from/to some file

Megarc -ScfgAndParm -fFileName -aN
Objective: Save configuration and parameters from adapter N onto given FileName. 
	   Apart from configuration, following parameters are saved in the file.

1. Bios Status  
2. Cluster State
3. Initiator ID 
In case of IDE-1000 card, only BIOS status is relevant.[since 10-15-2001]

Parameters: -aN : adapter number [ must]
	    -fFilename : Filename [must]

An example of this command on our servers would be:  megarc -ScfgAndParm -fOutput -a0

Logical drive operations
Megarc -ldInfo -aN -Lx1 { -Lx2 ..{Lxn}....}
Megarc -ldInfo -aN -Lall

Objective: Display logical drive information.
Parameters: -aN : adapter number [ must ]
            -Lx : logical drive number [ must ]
	          Note: The user must specify at least one logical drive.
		  User can specify more than one logical drive.

Description:
	Print logical drive information -
	Ld#-x1 ( Total #logical drives-YXY )
	Capacity - XXXXMB
	virtual size - on/off,
	State - Optimal/Degraded/Failed
	Stripes- X
	RaidLevel - Y(raid 0,1,5)
	SpanDepth- X
	stripe size - YY KB
	Rd policy - Adaptive/Normal/ReadAhead
	Wrpolicy - WriteThru/WriteBack
	Cache policy - CachedIo/DirectIo
	member drives span state

	User must specify at least one logical drive.

An example of this command on our servers would be:  megarc.exe -ldinfo -a0 -Lall

Physical disk related operations:
It performs the physical disk related operations like displaying the physical disk properties, making the physical disk online, offline etc.
Megarc -LogPhysInfo -aN|-alladp

Objective: Display logical & physical drive information on the adapter. Parameters: -aN: adapter number
	    -alladp: all adapters.
	    One of these two is a must.

Description:
	It displays the logical drive and physical drive information on the given adapter. Displayed information
	includes logical drive(s) with Raid Level, its span depth & physical drive(s) size and channel & SCSI id
	information.
	Option also logs the information in log file if the user opts to generate a log file, else
	It only displays the information on the screen.

An example of this command on our servers would be:  megarc.exe -logphysinfo -a0



Megarc -physOn pd[c0:t0,c1:t1....] -aN

Objective: Make the designated drive(s) Online.

Parameters: pd[c0:t0…] : the physical drives [must]
                         user must specify at least one physical drive.
		   -aN : adapter number [must]

Description: If the physical drive does not exist or it is not in failed state, utility will flag error and exit.

An example of this command on our servers would be:  megarc.exe -physOn -a0 pd[0:4]



check on Megarc -setRbldRate Val -aN first!

Megarc -doRbld -RbldArray[c0:t0,c1:t1,…] -aN { -ShowProg }

Objective: Start rebuild process on the given physical drive(s) if they are rebuildable
	   (i.e. if part of Redundant Array(non R0) and in failed state and only one element in the array is in
	   failed state.)

Paramaters: -RbldArray[c0:t0…] : rebuild array [ must] user must specify at least one physical drive.
            -aN : adapter number [must]
	    -ShowProg : displays the rebuild progress to the user [ optional ]

Description: The utility starts rebuild process on designated physical drives if applicable. If ShowProg is
	     specified then it will display rebuild progress of all eligible specified drives. If the drives are
	     not rebuildable, it will flag the message to the user and exit.

An example of this command on our servers would be:  megarc.exe -dorbld -a0 -showprog -rbldarray[0:4]



Megarc -showRbld -aN

Objective: Display rebuild progress of all drives under rebuild state.
Parameters: -aN : adapter number [must]
Description: Displays rebuild progress of all drives under rebuild process. It will display the message if no 
	     drives were found in rebuild state.

An example of this command on our servers would be:  megarc.exe -showRbld -a0



Megarc -pdFailInfo -chX|-chAll -idY|-idAll -aN

Objective: Display physical drive error history if applicable. Parameters: -aN : adapter number [must]
	    -chX|-chAll: Channel number[must]
	    -idY|-idAll: Target number[must]

Description: This cmd displays the physical drive error history if applicable in a formatted form to the user.
	     Displayed information includes timeout, throttle, parity, SCSI information along with other reasons
	     if available for the specified drive(s).

An example of this command on our servers would be:  megarc.exe -pdfailinfo -a0 -chall -idall



Megarc -phys -chX|-chAll -idY|-idAll -aN

Objective: Display physical drive information.
Parameters: -aN : adapter number [must]
            -chX|-chAll: Channel number[must]
	    -idY|-idAll: Target number[must]

Description: This cmd displays the physical drive information applicable in a formatted form to the user. 
	     Displayed information includes product name, revision, SCSI Tag# along with other info if available 
	     for the specified drive(s).

An example of this command on our servers would be:  megarc.exe -phys -chAll -idAll -a0



Megarc -physdrvSerialInfo -chX|-chAll -idY|-idAll -aN

Objective: Display physical drive serial number information.
Parameters: -aN : adapter number [must]
            -chX|-chAll: Channel number[must]
	    -idY|-idAll: Target number[must]

Description: This cmd displays the physical drive serial number information in a formatted form to the user. 

An example of this command on our servers would be:  megarc.exe -physdrvSerialInfo -chAll -idAll -a0

Simple adapter related operation type functionalities
Megarc -getRbldRate -aN

Objective: Display current rebuild rate of adapter N
Parameters: -aN : adapter number [must]

An example of this command on our servers would be:  megarc.exe getRbldRate -a0



Megarc -setRbldRate Val -aN

Objective: Set the rebuild rate on the adpater to the given value.

Parameters: -aN : adapter number [must]
	    Val : value of the rebuild rate [must] Value should be in the range of 0 to 100

Description: Sets rebuild rate to Val( 0..100 ). It also gives the previous rebuild rate of the adapter.
		e.g.  Megarc -setrbldrate 50 -a5
		Sets rebuild rate to 50 on adapter 5.

An example of this command on our servers would be:  megarc.exe -setrbldrate 100 -a0



Megarc -ctlrInfo -aN

Objective: Display information of the given adapter. It displays the information such as bios version, f/w version
	   channel number and Serial number of the controller etc. Displays BIOS NAS related features also 
Parameters: -aN : adapter number [ must ]

An example of this command on our servers would be:  megarc.exe -ctlrInfo -a0

BIOS related options:
Megarc -AllAdpInfo

Objective: Displays information about all cards present on the system.
	   Displayed information includes bus no, device no, firmware type and card type along with the card numbers.

Parameters: None.




2/24/05 jeb / 3/2/05 spp / 3/22/05 spp