Creating a new target StorageVolume for a FlashCopy relationship

The IBMTSSVC_StorageConfigurationService class provides the methods for creating a new FlashCopy relationship between IBMTSSVC_StorageVolume and target IBMTSSVC_StorageVolume instances, connected through an IBMTSSVC_FlashCopyStorageSynchronized association.

A new target StorageVolume is a replica of the source StorageVolume.

  1. Select an IBMTSSVC_StorageVolume instance as the source volume for the preferredFlashCopy relationship.
  2. Retrieve the IBMTSSVC_StorageConfigurationService instance that is associated with the IBMTSSVC_Cluster instance to which the selected IBMTSSVC_StorageVolume instances belong.
  3. Invoke the IBMTSSVC_StorageConfigurationService.CreateReplica() method with the following parameter specifications:
    1. Set SourceElement to the reference (CIMObjectPath) of the source IBMTSSVC_StorageVolume.
    2. Optionally set TargetSettingGoal to the reference (CIMObjectPath) of the target setting goal IBMTSSVC_StorageVolumeSetting. CIM client can create a thinly provisioned target volume replica or thinly 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 source storage volume is created.
    3. Optionally set ElementName to the name of the synchronization.
    4. Optionally set TargetPool to the reference (CIMObjectPath) of the target storage pool IBMTSSVC_ConcreteStoragePool from which the target storage volume is created.
    5. Optionally set CopyType to 5. This sets AutoDelete to true, which automatically deletes the FlashCopy mapping after the background copy is complete.
      Tip: If you do not want to automatically delete FlashCopy mappings, Set CopyType to 4. The target storage volume will be returned to CIM client by TargetElement.

The source IBMTSSVC_LocalStorageSynchronized association now connects the IBMTSSVC_StorageVolume and target IBMTSSVC_StorageVolume instances.