HP Smart Storage Administrator Scripting Cookbook

Advanced commands 14
Repeat=N | MAX
You can use this command as part of the logical drive specification.
Advantage
You can quickly divide the available space on an array into multiple volumes without specifying each volume
individually.
Example
Create the maximum number of logical volumes the controller supports (each volume is the same size, and the
volumes, in total, use all available free space):
Controller=Slot1
Array=A
Drive=*
LogicalDrive=Next
Repeat=Max
RAID=1
Drive=N
You can use Drive=N instead of specifying the actual paths (Drive=1E:1:1, 1E:1:2).
Advantage
You can specify the number of drives 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 four physical drives:
Controller=Slot1
Array=A
Drive=4
LogicalDrive=1
RAID=5
Drive=*
You can use Drive=* instead of specifying the actual paths (Drive=1E:1:1, 1E:1:2).
Advantage
You can use all available drives for the configuration without knowing their number or actual path.
For this command to execute, all configuration rules must be met. For example, if only two physical drives
exist, the scripting software uses both drives, but does not create volumes that require more than two drives,
such as a RAID 5 volume.
Example
Add a logical drive to the configuration using all unassigned drives:
Controller=Slot1
Array=A
Drive=*
LogicalDrive=1