286

megaraid -create R0 R1 R5 -drive { 0 1 2 3} [-stripesize n]

[-size x] [-writecache enable disable] [-readahead on off adaptive] [-iopolicy direct cached] [-log file]

Creates a logical drive and adds it to the existing configuration. The RAID level and participating physical drives’ parameters are required. All other parameters are optional. If size is not specified, the remaining size of the array will automatically be used. If the stripesize and iopolicy parameters are not specified, the default values are used. The stripesize parameter is in kilobytes, and valid stripe sizes are 16, 32, 64, and 128 kilobytes. The size parameter is in megabytes.

You cannot create a logical drive smaller than100 MB. After you create a logical drive, you can change the cache policy using the changepolicy command.

Default values are as follows:

Âstripesize: 64K

Âwritecache: disabled

Âreadcache: off

Âiopolicy: direct

megaraid -destroyconfig [-yes] [-log file]

Clears the configuration. If you don’t specify the yes parameter, the computer prompts for confirmation before clearing the configuration.

megaraid -flash flashFileName [-log file]

Flashes new firmware from the flash file to the adapter. The new firmware becomes operational only after the computer is restarted.

megaraid -initialize ld -start -stop -status [-log file]

Initializes, starts, stops, or displays the status (percentage of progress) of a particular logical drive. The parameter ld is the logical drive ID.

megaraid -rebuild pd -start -stop -status [-log file]

Rebuilds, starts, stops, or displays the status of a particular physical drive. The parameter pd is the physical drive ID.

megaraid -showadapter [-log file]

Displays information about the adapter, including product identification, battery status, number of logical drives created, cache size, and more.

megaraid -showconfig [ld] [-log file]

Displays the RAID configuration of the computer, including logical drive ID, RAID level, size, status, and participating physical drives. The logical drive status can be failed, degraded, or optimal. You cannot access a failed logical drive or recover data from it. You can access all data on a degraded logical drive (without a failure) even if all the attached physical drives are not in good condition.

A degraded logical drive state does not apply to RAID 0, because RAID 0 is not a redundant array. A logical drive reported to be in the optimal state is in perfect condition.

megaraid -showdevices [-log file]

Displays all drives connected to the PCI RAID Card. The command displays drive ID, identification, size, status, and any SMART alerts. The status of a drive is reported as online, failed, ready, hotspare, or not responding.

megaraid -spare pd -create -delete [-log file]

Creates or deletes a global hot spare. You can create hot spares from a pool of ready drives. After deletion, a hot spare drive becomes a ready drive. The parameter pd is the physical drive ID.

Appendix PCI RAID Card Command Reference

Page 286
Image 286
Apple Mac OS X Server manual 286