HP Smart Storage Administrator Scripting Cookbook

Advanced scripting scenarios 19
LogicalDrive=Next
RAID=0
Summary
By combining the advanced commands to specify -internal controllers only, and then First controllers,
the user does not add volumes to external controllers or to additional internal controllers on the same system.
The Next command eliminates the need to identify specific arrays and volumes.
Scenario 8: Create multiple arrays on unconfigured
systems with mixed physical disk configurations
Task
Add two arrays, each with one volume, to each system. Configure the first array as an OS volume with RAID
1 and a single spare. Configure the second array to use all remaining disks in a RAID 5 volume with no
spares.
Hardware configuration
The administrator has 500 unconfigured systems with embedded controllers. Each system has a different
physical disk configuration, some disks in an internal drive cage and some in an external storage box.
Script
Controller=Slot0
Array=A
Drive=2
OnlineSpare=1
LogicalDrive=1
RAID=1
Array=B
Drive=*
LogicalDrive=2
RAID=5
Summary
The Slot0 specification targets embedded controllers only. Each array is configured using available drives.
Array A uses two available drives, and the script eliminates the need to specify the drives by address. Array
B uses all remaining available drives, again without specific drive addresses, but also without the
administrator having to specify the number of drives, which can vary for each system.
Scenario 9: Create the maximum size bootable
volume
Task
When more than 2TiB of disk space is available, use all possible physical disks to create an array, create the
maximum sized boot volume, and then consume the remaining space in another volume.