HP Smart Storage Administrator Scripting Cookbook

Basic scripting scenarios 10
Scenario 4: Configure by disk type and count
Task
Create an array by specifying the type and count of disks for HP SSA to use. This example use two SAS
drives. This method does not require you to specify physical disks by location.
Hardware configuration
Storage system
An HP Smart Array controller in slot 1
Two available SAS physical disks
This script fails if two unused SAS drives are not available on the controller.
Script
Action=Configure
Method=Custom
Controller=Slot1
Array=A
Drive=2
DriveType=SAS
LogicalDrive=1
RAID=0
Summary
This script does not specify a size, but uses the MAX default value to consume the fully available capacity of
the physical drives.
HP SSA does not support arrays with mixed drive types. An array must comprise drives of the same type, for
example all SAS or all SATA drives. Different arrays can have different drive types.
Scenario 5: Configure two arrays, one with a spare
Task
Create two arrays with one online spare on a controller. One array uses two physical drives in a RAID 1
logical volume. The second array uses the remaining physical disks to create 20 identically sized RAID 5
logical volumes.
Hardware configuration
Storage system
An unconfigured HP Smart Array controller in slot 1
If the controller contains an existing configuration, the script fails unless you add the -reset parameter to
the command line to clear the existing configuration.
Numerous available physical drives at unspecified locations
Script
Action=Configure