You can create a target storage volume that is a replica
of an existing storage volume.
A new target storage volume is a replica of the source
storage volume.
- Select an IBMTSSVC_StorageVolume instance as the source
volume for the preferred FlashCopy relationship.
- Retrieve the IBMTSSVC_StorageConfigurationService instance
that is associated with the IBMTSSVC_Cluster instance to which the
selected IBMTSSVC_StorageVolume instances belong.
- Invoke the IBMTSSVC_StorageConfigurationService.CreateReplica()
method with the following parameter specifications:
- Set SourceElement to the reference (CIMObjectPath) of
the source IBMTSSVC_StorageVolume.
- Optionally, set TargetSettingGoal to the reference (CIMObjectPath)
of the target storage volume setting IBMTSSVC_StorageVolumeSetting.
The CIM client can create a thinly-provisioned target volume replica or a thin-provisioned
compressed target volume replica by setting the relevant reference of IBMTSSVC_StorageVolumeSetting.
If TargetSettingGoal is null, a target storage volume with the same properties as the source
storage volume is created.
- Optionally, set ElementName to the name of the synchronization.
- Optionally, set TargetPool to the reference (CIMObjectPath)
of the target storage pool IBMTSSVC_ConcreteStoragePool from which
the target storage volume is created.
- Optionally, set CopyType to control whether FlashCopy
mappings are automatically deleted:
- Set CopyType to 5 to automatically delete
the FlashCopy mapping after the background copy is complete. This
setting sets AutoDelete to true.
- Set CopyType to 4 if you do not want to
automatically delete FlashCopy mappings.
The target storage volume is returned to the CIM client
by TargetElement, which is now connected to the
source IBMTSSVC_StorageVolume through the IBMTSSVC_LocalStorageSynchronized
association.