Creating a FlashCopy relationship for a synchronized set

The IBMTSSVC_StorageConfigurationService class provides the methods for establishing a FlashCopy relationship between two IBMTSSVC_StorageVolume instances and then adding it to an IBMTSSVC_FlashCopyStorageSynchronizedSet instance.

  1. Select an IBMTSSVC_StorageVolume instance as the source volume for the preferred FlashCopy relationship.
  2. Select a valid IBMTSSVC_StorageVolume as a target. Valid volumes can be determined by using IBMTSSVC_CandidateVolume.

    Make sure that the source IBMTSSVC_StorageVolume and target IBMTSSVC_StorageVolume instances belong to the same IBMTSSVC_Cluster instance.

  3. Retrieve the IBMTSSVC_StorageConfigurationService instance that is associated with the IBMTSSVC_Cluster instance to which the selected IBMTSSVC_StorageVolume instances belong.
  4. Invoke the IBMTSSVC_StorageConfigurationService.AttachReplica() method with the following parameter specifications:
    1. Set SourceElement to the reference (CIMObjectPath) of the source IBMTSSVC_StorageVolume.
    2. Set TargetElement to the reference (CIMObjectPath) of the target IBMTSSVC_StorageVolume.
    3. Optionally set ElementName to the name of the synchronization.
    4. Optionally set BackgroundCopyRate to the preferred priority of the background copy rate in percent (0 - 100%).
    5. Optionally specify Set to add the newly created FlashCopySynchronization to the set. If you specify a null value, the newly created FlashCopySynchronization is not a member of a synchronized set.
    6. Optionally set CopyType to 5. This sets AutoDelete to true, which automatically deletes the FlashCopy mapping after the background copy is complete.
    7. If you do not want to automatically delete FlashCopy mappings, set CopyType to 4.
  5. Create an IBMTSSVC_FlashCopyStorageSynchronizedSet instance by invoking the IBMTSSVC_StorageConfigurationService.CreateSynchronizedSet() method with the following parameter specifications:
    1. Set CopyType to 4 (flash).
    2. Optionally set ElementName to the name of the newly created IBMTSSVC_FlashCopyStorageSynchronizedSet instance.
  6. Add the IBMTSSVC_StorageSynchronized instance to the IBMTSSVC_FlashCopySynchronizedSet instance by invoking the IBMTSSVC_StorageConfigurationService.ModifySynchronizedSet() method with the Operation parameter set to 0 (add). If the FlashCopy added to the set is CopyType 5, the set becomes CopyType 5, and any other FlashCopy mappings that are added to the set must have CopyType 5, or the add operation fails. Similarly, if a set contains a FlashCopy of CopyType 4, all other FlashCopy mappings in the set must be of CopyType 4 or the modification operation fails.
    Remember: The synchronization must belong to the same clustered system as the hosting service.