New HPOVStorageVolumeTemplate - HewlettPackard/POSH-HPEOneView GitHub Wiki

HPE OneView 4.10 Library

New-HPOVStorageVolumeTemplate

Create storage volume template.

SYNTAX

New-HPOVStorageVolumeTemplate [-Name] <String>[ [-StoragePool] <Object>] [-Capacity] <Int64>[ [-Description] <String>][ [-LockStoragePool] <SwitchParameter>][ [-SnapshotStoragePool] <Object>][ [-LockSnapShotStoragePool] <SwitchParameter>][ [-StorageSystem] <Object>][ [-LockCapacity] <SwitchParameter>][ [-Full] <SwitchParameter>][ [-ProvisioningType] <String>][ [-LockProvisionType] <SwitchParameter>][ [-EnableDeduplication] <Boolean>][ [-LockEnableDeduplication] <SwitchParameter>][ [-EnableCompression] <Boolean>][ [-LockEnableCompression] <SwitchParameter>][ [-Shared] <SwitchParameter>][ [-LockProvisionMode] <SwitchParameter>][ [-Scope] <HPOneView.Appliance.ScopeCollection>][ [-ApplianceConnection] <Object>] [<CommonParameters>]
New-HPOVStorageVolumeTemplate [-Name] <String>[ [-StoragePool] <Object>] [-Capacity] <Int64>[ [-Description] <String>][ [-LockStoragePool] <SwitchParameter>][ [-StorageSystem] <Object>][ [-LockCapacity] <SwitchParameter>][ [-Full] <SwitchParameter>][ [-ProvisioningType] <String>][ [-LockProvisionType] <SwitchParameter>][ [-Shared] <SwitchParameter>][ [-LockProvisionMode] <SwitchParameter>][ [-DataProtectionLevel] <String>][ [-LockProtectionLevel] <SwitchParameter>][ [-EnableAdaptiveOptimization] <SwitchParameter>][ [-LockAdaptiveOptimization] <SwitchParameter>][ [-Scope] <HPOneView.Appliance.ScopeCollection>][ [-ApplianceConnection] <Object>] [<CommonParameters>]

Detailed Description

This cmdlet supports creating Storage Volume Templates, which are then used to provision Storage Volumes.

Parameters

-ApplianceConnection <Object>

Aliases [-Appliance]

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

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

-Capacity <Int64>

Aliases [-size] Max volume capacity in GB. e.g. 20 to specify 20GB.

Aliases size
Required? true
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters?    False

-DataProtectionLevel <String>

Specify the StoreVirtual protection level (aka Network RAID) for the volume. Allowed values are:

* NetworkRaid0None
* NetworkRaid5SingleParity
* NetworkRaid10Mirror2Way
* NetworkRaid10Mirror3Way
* NetworkRaid10Mirror4Way
* NetworkRaid6DualParity
Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Description <String>

Provide the description for the Storage Volume Template

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-EnableAdaptiveOptimization <SwitchParameter>

Whether or not Adaptive Optimization is enabled on the storage volume. Only supported with StoreVirtual.

Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-EnableCompression <Boolean>

Enable compression for StoreServe (3PAR) supported resources. Please verify the InformOS version installed supports Compression.

Aliases None
Required? False
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-EnableDeduplication <Boolean>

Enable deduplication for SSD-based Storage Pools (CPG).

Aliases None
Required? False
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-Full <SwitchParameter>

NOTE: This parameter is being deprecated for the -ProvisionType parameter. Please update your scripts.

Include this switch to enable Thick volume provisioning. Omit to specify Thin storage provisioning. Default: Thin

Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-LockAdaptiveOptimization <SwitchParameter>

Specify to lock the EnableAdaptiveOptimization value in the template.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-LockCapacity <SwitchParameter>

Specify to lock the Capacity value in the template.

Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-LockEnableCompression <SwitchParameter>

Lock the EnableCompression value.

Aliases None
Required? False
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-LockEnableDeduplication <SwitchParameter>

Lock the EnableDeduplication value.

Aliases None
Required? False
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-LockProtectionLevel <SwitchParameter>

Specify to lock the DataProtectionLevel value in the template.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-LockProvisionMode <SwitchParameter>

Specify to lock the Provision Mode (Shared or Private) value in the template.

Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-LockProvisionType <SwitchParameter>

Specify to lock the ProvisionType value in the template.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-LockSnapShotStoragePool <SwitchParameter>

Specify to lock the SnapshotStoragePool value in the template.

Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-LockStoragePool <SwitchParameter>

Specify to lock the StoragePool value in the template.

Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-Name <String>

Aliases [-TemplateName]

Storage Volume Template name

Aliases TemplateName
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-ProvisioningType <String>

Specify the type of volume to provision. Allowed values are:

* Thin
* Full
* TPDD (Thin Provision Dedup) - Only available for HPE StoreServ storage systems with SSD storage pools (aka CPG"s).
Aliases ProvisionType
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Scope <HPOneView.Appliance.ScopeCollection>

Provide an HPOneView.Appliance.ScopeCollection resource object to initially associate with. Resource can also be added to scope using the Add-HPOVResourceToScope Cmdlet.

Aliases None
Required? False
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-Shared <SwitchParameter>

Include this switch to mark the Storage Volume Template as a Shareable resource for shared volume access.

Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-SnapshotStoragePool <Object>

Specify the Storage Pool (aka CPG) the Storage Volume Template will use for volume snapshot use. The provided Storage Pool must already be managed by OneView. If you omit this value, then the StoragePool parameter value will be used. Only supported with HPE StoreServe platforms.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-StoragePool <Object>

Specify the Storage Pool (aka CPG) the Storage Volume Template will be associated with. Storage Pool must already be managed by OneView.

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

-StorageSystem <Object>

If there are multiple Storage Pool resources with the same name, use this parameter to filter for the correct pool object.

Aliases None
Required? false
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.System.Pool [System.Management.Automation.PSCustomObject]

Managed Storage Pool resource

Return Values

System.Management.Automation.PSCustomObject

Created Storage Volume Template resource

Examples

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

New-HPOVStorageVolumeTemplate -templateName yellow-svt -storagePool yellow -capacity 40

Create a new Storage Volume Template, setting the max size to 40GB, Thin Provisioning and Private.

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

$storageVolTemplate = New-HPOVStorageVolumeTemplate -templateName vmware-shared-svt -storagePool R5-CPG12 -capacity 250 -shared

Create a new Storage Volume Template, setting the max size to 250GB, Thin Provisioning and Shareable.

 -------------------------- EXAMPLE 3 --------------------------

$storagePool = Get-HPOVStoragePool R5-CPG12 $storageVolTemplate = New-HPOVStorageVolumeTemplate -templateName vmware-shared-svt -storagePool $storagePool -capacity 250 -shared

Use the Get-HPOVStoragePool cmdlet to get the "R5-CPG12" pool, and create a new Storage Volume Template, setting the max size to 250GB, Thin Provisioning and Shareable.

 -------------------------- EXAMPLE 4 --------------------------

$svt = Get-HPOVStoragePool R5-CPG12 | New-HPOVStorageVolumeTemplate -templateName vmware-shared-svt -SnapshotStoragePool "MySnapShotPool" -capacity 250 -shared

Use the Get-HPOVStoragePool cmdlet to get the "R5-CPG12" pool, and create a new Storage Volume Template, setting the max size to 250GB, Thin Provisioning, Shareable, and providing the Snapshot Storage Pool.

Related Links


Top

HPE OneView 4.00 Library

New-HPOVStorageVolumeTemplate

Create storage volume template.

SYNTAX

New-HPOVStorageVolumeTemplate [-Name] <String>[ [-StoragePool] <Object>] [-Capacity] <Int64>[ [-Description] <String>][ [-LockStoragePool] <SwitchParameter>][ [-SnapshotStoragePool] <Object>][ [-LockSnapShotStoragePool] <SwitchParameter>][ [-StorageSystem] <Object>][ [-LockCapacity] <SwitchParameter>][ [-Full] <SwitchParameter>][ [-ProvisioningType] <String>][ [-LockProvisionType] <SwitchParameter>][ [-Shared] <SwitchParameter>][ [-LockProvisionMode] <SwitchParameter>][ [-Scope] <HPOneView.Appliance.ScopeCollection>][ [-ApplianceConnection] <Object>] [<CommonParameters>]
New-HPOVStorageVolumeTemplate [-Name] <String>[ [-StoragePool] <Object>] [-Capacity] <Int64>[ [-Description] <String>][ [-LockStoragePool] <SwitchParameter>][ [-StorageSystem] <Object>][ [-LockCapacity] <SwitchParameter>][ [-Full] <SwitchParameter>][ [-ProvisioningType] <String>][ [-LockProvisionType] <SwitchParameter>][ [-Shared] <SwitchParameter>][ [-LockProvisionMode] <SwitchParameter>][ [-DataProtectionLevel] <String>][ [-LockProtectionLevel] <SwitchParameter>][ [-EnableAdaptiveOptimization] <SwitchParameter>][ [-LockAdaptiveOptimization] <SwitchParameter>][ [-Scope] <HPOneView.Appliance.ScopeCollection>][ [-ApplianceConnection] <Object>] [<CommonParameters>]

Detailed Description

This cmdlet supports creating Storage Volume Templates, which are then used to provision Storage Volumes.

Parameters

-ApplianceConnection <Object>

Aliases [-Appliance]

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

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

-Capacity <Int64>

Aliases [-size] Max volume capacity in GB. e.g. 20 to specify 20GB.

Aliases size
Required? true
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters?    False

-DataProtectionLevel <String>

Specify the StoreVirtual protection level (aka Network RAID) for the volume. Allowed values are:

* NetworkRaid0None
* NetworkRaid5SingleParity
* NetworkRaid10Mirror2Way
* NetworkRaid10Mirror3Way
* NetworkRaid10Mirror4Way
* NetworkRaid6DualParity
Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Description <String>

Provide the description for the Storage Volume Template

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-EnableAdaptiveOptimization <SwitchParameter>

Whether or not Adaptive Optimization is enabled on the storage volume. Only supported with StoreVirtual.

Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-Full <SwitchParameter>

NOTE: This parameter is being deprecated for the -ProvisionType parameter. Please update your scripts.

Include this switch to enable Thick volume provisioning. Omit to specify Thin storage provisioning. Default: Thin

Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-LockAdaptiveOptimization <SwitchParameter>

Specify to lock the EnableAdaptiveOptimization value in the template.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-LockCapacity <SwitchParameter>

Specify to lock the Capacity value in the template.

Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-LockProtectionLevel <SwitchParameter>

Specify to lock the DataProtectionLevel value in the template.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-LockProvisionMode <SwitchParameter>

Specify to lock the Provision Mode (Shared or Private) value in the template.

Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-LockProvisionType <SwitchParameter>

Specify to lock the ProvisionType value in the template.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-LockSnapShotStoragePool <SwitchParameter>

Specify to lock the SnapshotStoragePool value in the template.

Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-LockStoragePool <SwitchParameter>

Specify to lock the StoragePool value in the template.

Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-Name <String>

Aliases [-TemplateName]

Storage Volume Template name

Aliases TemplateName
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-ProvisioningType <String>

Specify the type of volume to provision. Allowed values are:

* Thin
* Full
* TPDD (Thin Provision Dedup) - Only available for HPE StoreServ storage systems with SSD storage pools (aka CPG's).
Aliases ProvisionType
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Scope <HPOneView.Appliance.ScopeCollection>

Provide an HPOneView.Appliance.ScopeCollection resource object to initially associate with. Resource can also be added to scope using the Add-HPOVResourceToScope Cmdlet.

Aliases None
Required? False
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-Shared <SwitchParameter>

Include this switch to mark the Storage Volume Template as a Shareable resource for shared volume access.

Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-SnapshotStoragePool <Object>

Specify the Storage Pool (aka CPG) the Storage Volume Template will use for volume snapshot use. The provided Storage Pool must already be managed by OneView. If you omit this value, then the StoragePool parameter value will be used. Only supported with HPE StoreServe platforms.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-StoragePool <Object>

Specify the Storage Pool (aka CPG) the Storage Volume Template will be associated with. Storage Pool must already be managed by OneView.

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

-StorageSystem <Object>

If there are multiple Storage Pool resources with the same name, use this parameter to filter for the correct pool object.

Aliases None
Required? false
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.System.Pool [System.Management.Automation.PSCustomObject]

Managed Storage Pool resource

Return Values

System.Management.Automation.PSCustomObject

Created Storage Volume Template resource

Examples

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

New-HPOVStorageVolumeTemplate -templateName yellow-svt -storagePool yellow -capacity 40

Create a new Storage Volume Template, setting the max size to 40GB, Thin Provisioning and Private.

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

$storageVolTemplate = New-HPOVStorageVolumeTemplate -templateName vmware-shared-svt -storagePool R5-CPG12 -capacity 250 -shared

Create a new Storage Volume Template, setting the max size to 250GB, Thin Provisioning and Shareable.

 -------------------------- EXAMPLE 3 --------------------------

$storagePool = Get-HPOVStoragePool R5-CPG12 $storageVolTemplate = New-HPOVStorageVolumeTemplate -templateName vmware-shared-svt -storagePool $storagePool -capacity 250 -shared

Use the Get-HPOVStoragePool cmdlet to get the 'R5-CPG12' pool, and create a new Storage Volume Template, setting the max size to 250GB, Thin Provisioning and Shareable.

 -------------------------- EXAMPLE 4 --------------------------

$svt = Get-HPOVStoragePool R5-CPG12 | New-HPOVStorageVolumeTemplate -templateName vmware-shared-svt -SnapshotStoragePool 'MySnapShotPool' -capacity 250 -shared

Use the Get-HPOVStoragePool cmdlet to get the 'R5-CPG12' pool, and create a new Storage Volume Template, setting the max size to 250GB, Thin Provisioning, Shareable, and providing the Snapshot Storage Pool.

Related Links


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