Skip to content

Add HPOVStoragePool

Chris Lynch edited this page Mar 31, 2020 · 44 revisions

ℹ️ Note: This Wiki is no longer the source for HPE OneView PowerShell Library documentation. The new location is here.

Please update your local offline help system using Get-Help <ModuleName> to dwonload the latest offline help contents.

HPE OneView

Library

5.00

Add-HPOVStoragePool

Syntax

Add-HPOVStoragePool [-StorageSystem] <Object> [-Pool] <String[]> [[-ApplianceConnection] <Object>] [<CommonParameters>]

Description

NOTE: This Cmdlet has been replaced by Set-HPOVStoragePool. This Cmdlet only exists for backwards compatibility.

A storage pool is an aggregation of physical storage resources (disks) in a storage system. Storage systems contain information about the storage ports through which they can be accessed. You can provision logical storage spaces, known as volumes, from storage pools.

You can select one or more storage pools for management when adding a storage system to the appliance. Storage pools are created on a storage system using the management software for that system.

NOTE: For HPE Nimble storage, you can define folders within pools in the Nimble administrative user interface. You cannot create or delete storage pools from the appliance. Storage pools are automatically discovered during the storage system add or refresh. After you elect to manage storage pools, you can provision volumes on them.

All storage pools that are usable in HPE OneView are visible on the Storage Pools screen. Pools refreshed into HPE OneView are initially designated as discovered, and must be explicitly set to managed by editing the pool in HPE OneView using the Edit action on the storage pool screen.

A storage system must first be added to the appliance before a storage pool can be managed.

Storage pools are scoped resources. You can associate a scope to a pool to restrict who can use the pool.

Minimum required privileges: Infrastructure administrator or Storage administrator.

Parameters

-ApplianceConnection <Object>

Specify one or more [HPOneView.Appliance.Connection] object(s) or Name property value(s). If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.

Aliases Appliance
Required? False
Position? 2
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?    False

-Pool <String[]>

One or more storage pool name resource(s) to be added during storage system import.

Example: $pools = "cpg1","cpg2"

Aliases PoolName, spName, cpg
Required? True
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-StorageSystem <Object>

The Storage System object from Get-HPOVStorageSystem

Aliases Hostname, name
Required? True
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

HPOneView.Storage.System [System.Management.Automation.PSCustomObject]

Storage System resource object from Get-HPOVStorageSystem.

Return Values

HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject]

Async task resource.

Examples

 -------------------------- EXAMPLE 1 --------------------------

Add-HPOVStoragePool -StorageSystem HP3PAR_1 -Pool HP_CPG1

Add the "HP_CPG1" Storage Pool that is managed in the HP3PAR_1 Storage System. PoolName parameter data type will be converted from System.String to System.Collections.ArrayList .

 -------------------------- EXAMPLE 2 --------------------------

$myPools = "cpg1","cpg2" Add-HPOVStoragePool -StorageSystem (Get-HPOVStorageSystem -Name HP3PAR_1) -Pool $myPools

Add the "HP_CPG1" Storage Pool that is managed in the HP3PAR_1 Storage System.

Related Links


HPE OneView

Library

4.20

Add-HPOVStoragePool

Syntax

Add-HPOVStoragePool [-StorageSystem] <Object> [-Pool] <Array> [-ApplianceConnection] <Object> [<CommonParameters>]

Description

Add new Storage Pools (i.e. HP 3PAR Common Provisioning Group [CPG]) for volumes to be provisioned from. The Storage System must be imported prior to adding Storage Pools.

Parameters

-ApplianceConnection <Object>

Aliases [-Appliance]

Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s). If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.

Default Value: ${Global:ConnectedSessions} | ? Default

Aliases Appliance
Required? true
Position? 2
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?    False

-Pool <Array>

Aliases: [PoolName, spName, CPG] An array containing the name(s) of the specific storage pool resource(s) to be added during storage system import.

Example: $pools = "cpg1","cpg2"

Aliases PoolName, spName, cpg
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-StorageSystem <Object>

Aliases: [Hostname, Name] The Storage System object, or Name.

Aliases Hostname, name
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

HPOneView.Storage.System [System.Management.Automation.PSCustomObject]

Storage System resource object from Get-HPOVStorageSystem.

Return Values

HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject]

Async task resource.

System.Collections.ArrayList <HPOneView.Appliance.TaskResource>

Multiple async task resources.

Async Task(s) to monitor storage pool import.

Examples

 -------------------------- EXAMPLE 1 --------------------------

Add-HPOVStoragePool -StorageSystem "HP3PAR_1" -PoolName "HP_CPG1"

Add the "HP_CPG1" Stroage Pool that is mananaged in the HP3PAR_1 Storage System. PoolName parameter data type will be converted from System.String to System.Collections.ArrayList .

 -------------------------- EXAMPLE 2 --------------------------

$myPools = "cpg1","cpg2" Add-HPOVStoragePool "HP3PAR_1" $myPools

Add the "HP_CPG1" Stroage Pool that is mananaged in the HP3PAR_1 Storage System.

Related Links


HPE OneView

Library

4.10

Add-HPOVStoragePool

Syntax

Add-HPOVStoragePool [-StorageSystem] <Object> [-Pool] <Array> [-ApplianceConnection] <Object> [<CommonParameters>]

Description

Add new Storage Pools (i.e. HP 3PAR Common Provisioning Group [CPG]) for volumes to be provisioned from. The Storage System must be imported prior to adding Storage Pools.

Parameters

-ApplianceConnection <Object>

Aliases [-Appliance]

Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s). If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.

Default Value: ${Global:ConnectedSessions} | ? Default

Aliases Appliance
Required? true
Position? 2
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?    False

-Pool <Array>

Aliases: [PoolName, spName, CPG] An array containing the name(s) of the specific storage pool resource(s) to be added during storage system import.

Example: $pools = "cpg1","cpg2"

Aliases PoolName, spName, cpg
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-StorageSystem <Object>

Aliases: [Hostname, Name] The Storage System object, or Name.

Aliases Hostname, name
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

HPOneView.Storage.System [System.Management.Automation.PSCustomObject]

Storage System resource object from Get-HPOVStorageSystem.

Return Values

HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject]

Async task resource.

System.Collections.ArrayList <HPOneView.Appliance.TaskResource>

Multiple async task resources.

Async Task(s) to monitor storage pool import.

Examples

 -------------------------- EXAMPLE 1 --------------------------

Add-HPOVStoragePool -StorageSystem "HP3PAR_1" -PoolName "HP_CPG1"

Add the "HP_CPG1" Stroage Pool that is mananaged in the HP3PAR_1 Storage System. PoolName parameter data type will be converted from System.String to System.Collections.ArrayList .

 -------------------------- EXAMPLE 2 --------------------------

$myPools = "cpg1","cpg2" Add-HPOVStoragePool "HP3PAR_1" $myPools

Add the "HP_CPG1" Stroage Pool that is mananaged in the HP3PAR_1 Storage System.

Related Links


Wiki Table of Contents

Clone this wiki locally