Methods, Createreplica, Method overview – HP SAN Virtualization Services Platform User Manual

Page 226: Method parameters

Advertising
background image

Property

To

Association Name

ManagedElement

HPSVSP_MirroringReplicationCapabilities:
CIM_StorageReplicationCapabilities

HPSVSP_MirroringElementCapabilities :
CIM_ElementCapabilities

ManagedElement

HPSVSP_SnapcloneReplicationCapabilities
: CIM_StorageReplicationCapabilities

HPSVSP_SnapcloneElementCapabilities :
CIM_ElementCapabilities

Methods

CreateReplica

Method overview

The CreateReplica method starts a task to create a new storage object that is a replica of the specified
source storage object (SourceElement). Note that using the input parameter, CopyType, this function
can be used to instantiate the replica, and to create an ongoing association between the source and
replica. If 0 is returned, the function completed successfully and no ConcreteJob instance is created.
If 4096/0x1000 is returned, a ConcreteJob is started, a reference to which is returned in the Job
output parameter.

The values that may be returned from an invocation of this method are:

0 ("Job Completed with No Error")

1 ("Not Supported")

2 ("Unknown")

3 ("Time-out")

4 ("Failed")

5 ("Invalid Parameter")

6 ("In Use")

5 ("Invalid Parameter") is returned if any of the following are true:

The SourceElement argument is not specified or does not identify an existing StorageVirtualDisk .

The TargetSettingGoal argument is specified but does not identify an existing StorageSetting.

The TargetPool argument is specified but does not identify an existing StoragePool.

The CopyType argument is not specified or does not specify a supported value.

The TargetPool and/or the ElementName properties are not specified (for example, are null).

Method parameters

IN/OUT

Comments

Type

Parameter
Name

IN - Required

A user-defined name for the element being created. The
value will be stored in the ElementName property for the
created element. The name supplied here will also be
used in the name of the target element.

string

ElementName

IN - Required

The source StorageVirtualDisk or snapshot.
Primary Key is DeviceID; value is
VirtualDiskDetails.BaseObject.OjbName

CIM_LogicalEle-
ment REF

SourceElement

Copy Services Profile

226

Advertising