Set HPOVStoragePool - HewlettPackard/POSH-HPEOneView GitHub Wiki

HPE OneView 4.10 Library

Set-HPOVStoragePool

Modify storage pool managed state.

SYNTAX

Set-HPOVStoragePool [-InputObject] <HPOneView.Storage.StoragePool[]> [-Managed] <bool>[ [-ApplianceConnection] <Array>] [<CommonParameters>]

Detailed Description

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 cannot create or delete storage pools from the appliance, you can only add or remove them from management. Using this Cmdlet will change the managed state of a storage pool. Its management state cannot be changed when volumes are currently provisioned from it and managed by HPE OneView, or a storage volume template specify the storage pool. If you remove a storage system from the appliance, all storage pools in it are removed automatically. Minimum required privileges: Infrastructure administrator or Storage administrator.

Parameters

-ApplianceConnection <Array>

Aliases [-Appliance]

Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s).

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

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

-InputObject <HPOneView.Storage.StoragePool[]>

One or more HPOneView.Storage.StoragePool resources from Get-HPOVStoragePool.

Aliases Pool
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

-Managed <bool>

Specify a boolean value to modify the storage pools managed state.

Aliases None
Required? true
Position? named
Default value
Accept pipeline input? false
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.StoragePool

Storage pool resource(s) from Get-HPOVStoragePool.

Return Values

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

Asyncronous task resource to monitor.

Examples

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

$StoragePool = Get-HPOVStoragePool -Name "r5_cpg1" -ErrorAction Stop Set-HPOVStoragePool -InputObject $StoragePool -Managed $true

Manage the specified storage pool to provision volumes.

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

Get-HPOVStoragePool -Name r5_* -ErrorAction Stop | Set-HPOVStoragePool -Managed $false

Change the managed state to "unmanaged" of the specified storage pools.

Related Links


Top
⚠️ **GitHub.com Fallback** ⚠️