Global Mirror with Practice commands

Use this information to learn about commands available for Global Mirror with Practice sessions. To issue a command, go to Session Actions > Commands and click the command.

Table 1. Global Mirror with Practice commands
Command Action
Enable Copy to Site 1 Run this command and confirm that you want to reverse the direction of replication before you reverse the direction of copying in a failover and failback session. After you issue this command, the Start H2->H1 command becomes available.
Enable Copy to Site 2 Run this command and confirm that you want to reverse the direction of replication before you reverse the direction of copying in a failover and failback session. After you issue this command, the Start H1->H2 command becomes available.
Flash

The Flash command ensures that all I2s are consistent, and then flashes the data from I2 to the H2 volumes. After the flash is complete, the Global Mirror session is automatically restarted, and the session begins forming consistency groups on I2. You can then use the H2 volumes to practice your disaster recovery procedures.

For Global Mirror with Practice sessions for DS8000®, the Flash command temporarily pauses the formation of consistency groups.

Allow Practice Flash Issued to allow a Flash operation again on a Practice session after it has been suspended with the Prevent Reflash of Practice volume after Flash or Recover option.

The Allow Practice Flash command appears in the Preparing or Prepared states only if it is currently preventing the reflash. If the session is Preparing, the Flash command does not display until the session gets to the Prepared state.

See Prevent a reflash when practicing disaster recovery for more information on using this command.

Recover Restores consistent data on I2 volumes and takes a point-in-time copy of the data on I2 to the H2 volumes, enabling the application to be attached and run from the H2 volumes on site 2. The I2 volumes continue to hold the consistent data and can be flashed again to H2 by using the Flash command.
Refresh States

Refreshes the states of the role pairs that are in the session (if applicable for the session type) and refreshes the state of the session if it is incorrect. This command queries the states of the copy sets on the hardware. You are not required to run this command under typical circumstances; Copy Services Manager refreshes the states of its sessions through multiple means. However, if you discover an inconsistency between Copy Services Manager and the hardware, you can use this command to enable Copy Services Manager to update itself.

This command triggers multiple queries on the hardware, which can impact hardware performance. Do not run this command more frequently than every few minutes in each session.

This command is not available if the session is in the Defined state.

ResumeGM Resumes the Global Mirror master session on the hardware allowing the hardware to restart all relationships and consistency group formation. The command does not do any of the additional checks such as establishing for logical paths, etc. that are run by issuing the Start command. This command is only recommended to be used when the session is suspended for a short amount of time, such as when creating a FlashCopy® or Safeguarded Copy backup at the remote site.
Note: The command does not work for sessions that are suspended and share the same consistency group on the hardware. When sessions share a consistency group, the Suspend command removes the volumes of the suspended session out of the hardware session in order to allow other sessions to continue to form consistency groups. So the ResumeGM command will not cause the pairs in the suspended session to be restarted, you must run the Start command for the same.
Start H1->H2 Starts copying data from H1 to H2. After the first pass of the copy is complete for all pairs, the session establishes the I2->J2 FlashCopy pairs. The session starts the Global Mirror master so that the hardware begins to form consistency groups, to ensure that consistent data is at site 2.
Start H2->H1 Starts copying data from H2 to H1 in a failover and failback session. If a recover was performed on a session such that the production site is now H2, you can issue a Start H2->H1 command to start moving data back to Site 1. However, this start does not provide consistent protection as it copies only asynchronously back because of the long distance.
Note: DS8000 volumes are not consistent for the Start H2->H1 command.
A Global Copy relationship is used. When you are ready to move production back to Site 1, issue a suspend command to the session. The relationships are put into a synchronized state and are suspended consistently.
StartGC H1->H2

This command is available only for Global Mirror Failover/Failback and Global Mirror Failover/Failback with Practice sessions.

Establishes Global Copy relationships between site 1 and site 2 and begins asynchronous data replication from H1 to I2. To change the session state from Preparing to Prepared, you must issue the Start H1->H2 command and the session must begin to form consistency groups.

There is no disaster recovery protection for Global Copy relationships. If a disaster such as the loss of the primary Copy Services Manager server occurs, the session might be inconsistent when you issue the Recover command.

This command is available for the DS8000 storage system.

Suspend
Pauses the Global Mirror master session, which causes the session to stop forming consistency groups, and suspends the H1 to H2 Global Copy pairs.
Note: This action occurs only if the session is in Global Mirror mode. If the session is in Global Copy mode, the Suspend command attempts to consistently suspend the pairs by establishing the Global Copy pairs as Metro Mirror pairs. When these pairs all reach a Prepared state, a Freeze is then issued to have consistency at the remote site.
If you are using a System Storage DS8000: The Suspend command invokes a pause command for IBM® DS8000. The pause command that is invoked depends on the IBM DS8000 microcode level.
If the following conditions are true, the Suspend command invokes a command that is equivalent to the IBM DS8000 command pausegmir -withsecondary:
  • All primary volumes that are in the session are on a IBM DS8000 storage system with a microcode level that includes the pause with secondary consistency option. To determine whether this option is available for your storage system, see the IBM DS8000 documentation for the microcode level that you are using.
  • The pause with secondary consistency option is enabled on the storage system.

If these conditions are not true, the Suspend command invokes a command that is equivalent to the IBM DS8000 command pausegmir.

Both commands temporarily pause the formation of consistency groups after the current consistency group is formed. However, the command for a pause with secondary consistency creates a consistent data set on the secondary volumes.

If you do not want to suspend the Global Copy pairs when a Global Mirror session is suspended, open the rmserver.properties file in the install dir\liberty\wlp\usr\servers\csmServer\properties directory on distributed systems, or the path_prefix/opt/IBM/CSM/wlp/usr/servers/csmServer/properties directory on z/OS®, and add the following property:
csm.server.sus_gc_pairs_on_gm_pause = false
Tip: The pause with secondary consistency option requires that the Global Copy pairs are suspended. If you do not want to use the pause with secondary consistency option for storage systems on which the option is enabled, set the csm.server.sus_gc_pairs_on_gm_pause property to false.
Terminate Removes all physical copies and relationships that are on the hardware.
TerminateH2I2 Removes the FlashCopy relationships after a Flash command is issued. When you use Extent Space Efficient (ESE) volumes for your practice volumes (H2), it is recommended to set the No Copy option on the H2I2 role pair. When No Copy is set, data will only be physically written to H2 when a track is updated on I2. If the practice copy of the data is no longer needed, this command can be run to remove the FlashCopy relationship from I2 to H2, to prevent the relationship from consuming backend space.
Notes:
  • If the command is issued, H2 will no longer hold a consistent logical copy of the data until the next Flash or Recover is issued.
  • This command is only available for DS8000 practice sessions while in the Preparing, Prepared, or Suspended states. This command is not available while in the Defined or Target Available states.