
22 Chapter 3 Command Reference
Megaraid Commands Functions
megaraid -alarm -on | -off | -silence
Turns the alarm on, off, or to silence. When the alarm is set to silence, it turns off for current failure,
but will turn on again for next failure.
megaraid -changepolicy ld [-writecache enable | disable] [-readahead
on | off | adaptive] [-iopolicy direct | cached] [-log file]
Changes the policy of an existing logical drive. The parameter ld must be the logical drive ID. This
option applies to all RAID levels; however, the policies apply only to individual logical drives.
megaraid -changestate pd -online | -fail
Changes the state of an existing physical drive to online or fail.
megaraid -chkcon ld -start | -stop | -status [-log file]
Starts, stops, or checks the status (percentage of progress) of a consistency check for a particular
logical drive. The parameter ld is the logical drive ID.
megaraid -create auto [-numld n] [-log file]
Automatically destroys all current configured logical drives and creates a RAID level based on the
physical drive or drives present. It can create from 1 to 40 logical drives depending on the number of
logical drives (numld n) parameter. By default numld is 1.
Default values are as follows:
• stripe size 64K
• writecache disabled
• readcache off
• iopolicy direct
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,
then the remaining size of the array will automatically be used. If stripe size and cache
policy parameters are not specified then the default values are used. The stripe size
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.
megaraid -destroyconfig [-yes] [-log file]
Clears the configuration. If you don’t specify the yes parameter, the system 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 system 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.
Comentários a estes Manuais