Example: preparing for disaster

The following scenario uses XRC commands to support a disaster recovery. The scenario objective is to initialize a set of volumes, copy changes on a continuous basis, and recover to a known point in time after the disaster.

  1. Start a session named TUCSON for disaster recovery with the state, control, and journal data sets under a high-level qualifier of NEW. Use the command:
    XSTART TUCSON SESSIONTYPE(XRC) ERRORLEVEL(VOLUME) HLQ(NEW)
    Note: An error on any volume suspends the volume; other volumes continue to be copied.
  2. Add a volume pair to the XRC session.
    XADDPAIR TUCSON VOLUME(PRIM01,SECO01)

    The error response level defaults to what is specified on the XSTART command. XRC assigns the volume pair to the default storage control session "--".

  3. Add another volume pair to the XRC session, specifying the error response level as SESSION.
    XADDPAIR TUCSON VOLUME(PRIM02,SECO02) ERRORLEVEL(SESSION)

    Normal data processing continues.

  4. Issue the following command at the recovery site when a disaster occurs:
    XEND TUCSON XRECOVER TUCSON HLQ(NEW)

    The XRECOVER command applies in-process updates to the secondary volumes and clips the secondary volumes to the primary volume serial numbers. The recovery is then complete, with the secondary volumes consistent up to the time reported by the XRECOVER command.