Click or drag to resize

SolidFireElementCopyVolumeAsync Method (CancellationToken, Int64, Int64, NullableInt64)

CopyVolume enables you to overwrite the data contents of an existing volume with the data contents of another volume (or snapshot). Attributes of the destination volume such as IQN, QoS settings, size, account, and volume access group membership are not changed. The destination volume must already exist and must be the same size as the source volume. NetApp strongly recommends that clients unmount the destination volume before the CopyVolume operation begins. If the destination volume is modified during the copy operation, the changes will be lost. This method is asynchronous and may take a variable amount of time to complete. You can use the GetAsyncResult method to determine when the process has finished, and ListSyncJobs to see the progress of the copy.

Namespace:  SolidFire.Element.Api
Assembly:  SolidFire.SDK (in SolidFire.SDK.dll) Version: 12.3.0.0
Syntax
C#
public Task<CopyVolumeResult> CopyVolumeAsync(
	CancellationToken cancellationToken,
	long VolumeID,
	long DstVolumeID,
	Nullable<long> SnapshotID = null
)

Parameters

cancellationToken
Type: System.ThreadingCancellationToken
VolumeID
Type: SystemInt64
DstVolumeID
Type: SystemInt64
SnapshotID (Optional)
Type: SystemNullableInt64

Return Value

Type: TaskCopyVolumeResult

Implements

ISolidFireElementCopyVolumeAsync(CancellationToken, Int64, Int64, NullableInt64)
See Also