Example: migrating data

The following scenario uses XRC commands to support migration mode. The scenario objective is to migrate a set of volumes from one site to another site, and ensure data consistency to a known point in time after the migration. The migration mode cannot be used for coupled sessions.

  1. Start a session named TUCSON for data migration with the state data set under a high-level qualifier of NEW. Use the command:
    XSTART TUCSON SESSIONTYPE(MIGRATE) ERRORLEVEL(VOLUME) HLQ(NEW)
    Note: An error on any volume suspends the volume; other volumes continue to be copied.
  2. Add volume pairs to the session for migration.
    XADDPAIR TUCSON VOLUME(PRIM01,SECO01 PRIM02,SECO02)

    The error response level defaults to what is specified on the XSTART command, which is VOLUME. (Normal data processing continues.)

  3. Quiesce the prior to issuing the following command. After the application programs have been quiesced, issue the following command to ensure that all updates in the storage controls have been applied to the secondary volumes.
    XSUSPEND TUCSON DRAIN TIMEOUT(03.30.00)

    The timeout duration of three hours and 30 minutes means that you plan to restart this session by an XSTART command before this timeout duration has passed.

  4. Issue the RECOVER command to clip the secondary volumes.
    XRECOVER TUCSON HLQ(NEW)

    The migration is now complete with the secondary volumes consistent up to the time reported by the XRECOVER command.