Skip to content

Add HPOVStorageVolume

Chris Lynch edited this page Jul 25, 2016 · 41 revisions

HPE OneView 2.00 Library

Add-HPOVStorageVolume

Import an existing Storage Volume resource.

SYNTAX

Add-HPOVStorageVolume [-StorageSystem] <Object> [-VolumeID] <String> [-VolumeName] <String> [-Description] <String>[ [-Shared] <SwitchParameter>] [-ApplianceConnection] <Object> [<CommonParameters>]
Add-HPOVStorageVolume [-StorageSystem] <Object> [-VolumeName] <String> [-Description] <String> [-StorageDeviceName] <String>[ [-Shared] <SwitchParameter>] [-ApplianceConnection] <Object> [<CommonParameters>]

Detailed Description

This Cmdlet will help add an existing storage volume that was provisioned on the Storage System. The volume should not be exported or assigned to a server or groups of servers. The Storage Volume also must reside in the Managed Domain of the Stroage System that the appliance managed. The Storage Volume's WWN will be needed.

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:ConnectSessions} | ? Default

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

-Description <String>

Provide a description for the volume.

Aliases Appliance
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Shared <SwitchParameter>

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

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

-StorageDeviceName <String>

The Storage Systems' Device Name of the volume. This can be found in either the 3PAR IMC, CLI or HPE SSMC by looking at the provisionined volume and copying the 'Name' property.

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

-StorageSystem <Object>

The Storage System where the volume will be imported from. Volume to be imported must be provisioned to the same Managed Domain as the Storage System.

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

-VolumeID <String>

Aliases [-volid, -id, -wwn] The 128bit WWN FC address of the volume to be imported. Address must be in the following format: AA:BB:CC:DD:EE:AA:BB:CC:DD:EE:AA:BB:CC:DD:EE:AA

Aliases Appliance
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-VolumeName <String>

Aliases [-name] Specify the Storage Volume Name.

Aliases Appliance
Required? true
Position? 2
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

System.String Storage Pool Name or URI

System.Management.Automation.PSCustomObject Storage Pool resource object

Return Values

HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject] Async create task

Examples

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

PS C:\> Add-HPOVStorageVolume -StorageSystem 3ParSys1 -VolumeID 50:00:2A:C0:03:1E:15:2C -VolumeName 'MyStorageVol1'

Import the volume '50:00:2A:C0:03:1E:15:2C' from the '3ParSys1' Storage System.

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

PS C:\> Get-HPOVStorageSystem 3ParSys1 | Add-HPOVStorageVolume -VolumeID 50:00:2A:C0:03:1E:15:2C -VolumeName 'MyStorageVol1'

Import the volume '50:00:2A:C0:03:1E:15:2C' from the '3ParSys1' Storage System.

Related Links

HPE OneView 1.20 Library

Add-HPOVStorageVolume

Import an existing Storage Volume resource.

SYNTAX

Add-HPOVStorageVolume [-StorageSystem] <StorageSystem> [-VolumeID] <VolumeID> [-volumeName] <volumeName>[ [-description] <description>][ [-shared] <shared>] [<CommonParameters>]

Detailed Description

This cmdlet will help add an existing storage volume that was provisioned on the Storage System. The volume should not be exported or assigned to a server or groups of servers. The Storage Volume also must reside in the Managed Domain of the Stroage System that the appliance managed. The Storage Volume's WWN will be needed.

Parameters

-StorageSystem <StorageSystem>

Required. The Storage System where the volume will be imported from. Volume to be imported must be provisioned to the same Managed Domain as the Storage System.

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

-VolumeID <VolumeID>

Aliases [-volid, -id, -wwn] Required. The FC address of the volume to be imported. Address must be in the following format: AA:BB:CC:DD:EE:AA:BB:CC

Aliases
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters?    false

-volumeName <volumeName>

Aliases [-name] Required. Specify the Storage Volume Name.

Aliases
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters?    false

-description <description>

Optional. Provide a description for the volume.

Aliases
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters?    false

-shared <shared>

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

Aliases
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)

Input Types

System.String Storage Pool Name or URI System.Management.Automation.PSCustomObject Storage Pool resource object

Return Values

HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject] Async create task

Examples

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

PS C:\> Add-HPOVStorageVolume -StorageSystem 3ParSys1 -VolumeID 50:00:2A:C0:03:1E:15:2C -VolumeName 'MyStorageVol1'

Import the volume '50:00:2A:C0:03:1E:15:2C' from the '3ParSys1' Storage System.

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

PS C:\> Get-HPOVStorageSystem 3ParSys1 | Add-HPOVStorageVolume -VolumeID 50:00:2A:C0:03:1E:15:2C -VolumeName 'MyStorageVol1'

Import the volume '50:00:2A:C0:03:1E:15:2C' from the '3ParSys1' Storage System.

Related Links

Wiki Table of Contents

Clone this wiki locally