CreateReplica()
You can use the CreateReplica()
method to create a replica of the source volume for a copy relationship. The
CreateReplica() method belongs to the IBMTS2145_StorageConfigurationService
class.
Parameters
Table 237 shows the parameters you can specify for
the CreateReplica() method:
Table 237. CreateReplica() parameters
|
Parameter |
Type |
Description |
| Job |
String |
Defines the object used to monitor and terminate the
copy process |
| SourceElement |
String |
Specifies the source volume for the replica |
| TargetElement |
String |
Specifies the target volume for the replica |
| TargetSettingGoal |
String |
Specifies the StorageSetting object to be matched by
the replica |
| TargetPool |
String |
Specify the IBMTS2145_StoragePool instance into which
the replica will be allocated |
| CopyType |
Uint16 |
Defines the type of the copy relationship. Possible
values are 3 (synchronous copy) or 4 (FlashCopy). |
Return values
The CreateReplica() method returns one of the following error codes:
- 0: The cluster partnership was successfully established.
- 4: An unexpected error occurred.
- 5: The number or type of parameters that have been passed is incorrect.
- 6: A copy type other than 3 or 4 was passed in.
- 0x8100: One of the parameters was out of the cluster scope.
- 0x9000 to 0x9FFF: This range represents various SAN Volume Controller return
codes and messages.