NAME

New-HPOVStorageVolume

SYNOPSIS

Create a Storage Volume

SYNTAX

New-HPOVStorageVolume [-volumeName] <String> [[-description] <String>] [-poolName] <String> [-capacity] <Int64> [-full] [-shared] [<CommonParameters>]

New-HPOVStorageVolume [-volumeName] <String> -VolumeTemplate <Object> [[-capacity] <Int64>] [-shared] [<CommonParameters>]

DESCRIPTION

This cmdlet will display all or a specific storage volumes created on the HP OneView appliance. A specific storage volume can be searched for by using the Name. Use the List switch to display a report of the requested volume(s).

If the Storage Volume Template Global Policy is enabled, a valid Storage Volume Template must be provided.

PARAMETERS

-volumeName <String>

Aliases [-Name]

Storage Volume Name. Device Volume created on the storage system will be this name without spaces.

Aliases -Name
Required? true
Position? 1
Default value <none>
Accept pipeline input? false
Accept wildcard characters?    false
-description [<String>]
Optional. Provide a description for the volume.
Aliases None
Required? false
Position? 2
Default value <none>
Accept pipeline input? false
Accept wildcard characters?    false
-VolumeTemplate <Object>

Aliases [-template, -svt]

Optional. Specify the Storage Volume Template Name, URI or Resource.

Aliases -template, -svt
Required? true
Position? named
Default value <none>
Accept pipeline input? true (ByValue)
Accept wildcard characters?    false
-poolName <String>

Alias [-pool]

Required. Storage Pool name.

Aliases -pool
Required? true
Position? 3
Default value <none>
Accept pipeline input? false
Accept wildcard characters?    false
-capacity <Int64>

Alias [-size]

Max volume capacity in GB. e.g. 20 to specify 20GB.

Aliases -size
Required? true
Position? 4
Default value 0
Accept pipeline input? false
Accept wildcard characters?    false
-full [<SwitchParameter>]
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
-shared [<SwitchParameter>]
Include this switch to mark the Storage Volume Template as a Shareable resource for shared volume access. Default: Private
Aliases None
Required? false
Position? named
Default value False
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).

INPUTS

System.String

Storage Volume Template Name or URI

System.Management.Automation.PSCustomObject

Storage Volume Template resource object

OUTPUTS

System.Management.Automation.PSCustomObject

Async create task

RELATED LINKS

EXAMPLES

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

PS C:\> New-HPOVStorageVolume -name TestVol1 -PoolName PoolR1 -Size 60

Create a 60GB private, thin provisioned volume named 'TestVol1' from the 'PoolR1' Storage Pool.
-------------------------- EXAMPLE 2 -------------------------- 

PS C:\> $svt = Get-HPOVStorageVolumeTemplate SVT_120GB_R5
PS C:\> $svt | New-HPOVStorageVolume testvol3 -capacity 90 | Wait-HPOVTaskComplete

Create a 90GB volume named 'TestVol1', using the 'SVT_120GB_R5' Storage Volume Template, then wait for volume to be provisioned.

Last edited Aug 19, 2014 at 10:29 PM by chrislynchhp, version 3