HP Smart Storage Administrator Scripting Cookbook

Advanced commands 15
RAID=5
In this example, three or more physical drives must be available to support the RAID level.
OnlineSpare=N
You can use OnlineSpare=N instead of specifying the actual paths (OnlineSpare=1E:1:1, 1E:1:2).
Advantage
You can specify the number of spares needed for the configuration, and the scripting software selects the first
available drives based on increasing path. This command is most useful when all drives in the configuration
are the same size.
Example
Add a logical drive to the configuration using two spare drives:
Controller=Slot1
Array=A
Drive=1E:1:1, 1E:1:2
OnlineSpare=2
LogicalDrive=1
RAID=1
OnlineSpare=*
You can use OnlineSpare=* instead of specifying the actual paths (OnlineSpare=1E:1:1, 1E:1:2).
Advantage
You can use all available, unassigned drives as spares for the configuration without knowing the number of
drives available or their actual paths.
Observe the following guidelines:
You cannot exceed the controller settings for maximum number of spares allowed in an array, typically
eight spares.
You cannot combine this command with Drive=* (on page 14), because the script processes the
Drive specification first and uses all available drives for that action, leaving no unassigned drives for
the OnlineSpare request.
Example
Add a logical drive to the configuration using all unassigned drives as spares:
Controller=Slot1
Array=A
Drive=1E:1:1, 1E:1:2
OnlineSpare=*
LogicalDrive=1
RAID=1
DriveType=SCSI | SAS | SATA | SATASSD |
SASSSD
You can specify what type of drive to use in a configuration.