Add HPE storage systems (3PAR, Primera, Alletra), manage storage pools and volumes, use volume templates, and attach volumes to server profiles.
HPE OneView integrates with HPE block storage arrays to provide centralized storage lifecycle management. The workflow is: add the array, then add storage pools, then provision volumes from those pools.
Build the parameter hashtable with port-to-fabric mappings
The -Ports hashtable maps physical host ports on the array to the FC networks in OneView. The -PortGroups hashtable groups ports together for load balancing.
$params = @{ Hostname = "HPEStoreServ_1-array.contoso.com" Credential = $StorageCreds Domain = "NODOMAIN" Ports = @{ "0:1:1" = "3PAR SAN DA A" "0:1:2" = "3PAR SAN Fabric A" "1:1:1" = "3PAR SAN Fabric B" "1:1:2" = "3PAR SAN DA B" } PortGroups = @{ "0:1:1" = "PG_1" "0:1:2" = "PG_2" "1:1:1" = "PG_1" "1:1:2" = "PG_2" }}
3
Add the storage system and wait for the task to complete
Volume templates define a standard configuration that enforces consistent provisioning across your environment. Administrators create templates; end users provision volumes from them.
# All registered storage systemsGet-OVStorageSystem# Storage pools on a specific systemGet-OVStoragePool -StorageSystem "HP3Par_1"# All poolsGet-OVStoragePool# All volumesGet-OVStorageVolume# A specific volumeGet-OVStorageVolume -Name "Vol1"