Example: changing the session error recovery level

The following scenario uses XRC commands to change the XRC session error recovery level.

  1. Start a session named TUCSON for disaster recovery.
    XSTART TUCSON SESSIONTYPE(XRC) ERRORLEVEL(SESSION)

    An error on any duplex volume causes the XRC session and all volumes in the session to be suspended. If an error occurs, all volumes in the session must be resynchronized. The state, control, and journal data sets are under a high-level qualifier of SYS1.

  2. Add a volume pair to the XRC session, which inherits ERRORLEVEL(SESSION) from the XSTART command.
    XADDPAIR TUCSON VOLUME(PRIM01,SECO01)
  3. Add another volume pair to the XRC session, specifying the error recovery level as VOLUME.
    XADDPAIR TUCSON VOLUME(PRIM02,SECO02) ERRORLEVEL(VOLUME)

    Normal data processing continues.

  4. Suspend the XRC session to the specific timestamp after all updates to the specified UTC timestamp have been applied to the secondary volumes.
    XSUSPEND TUCSON ATTIME(1998.266 19:41:20.231440) 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.

    During the suspension, storage controls that support hardware bitmapping record application updates in their hardware bitmaps. Storage controls that do not support hardware bitmapping do not record application updates. Instead, updates accumulate in cache until the XSTART command function is complete.

  5. Start a session named TUCSON for disaster recovery.
    XSTART TUCSON SESSIONTYPE(XRC) ERRORLEVEL(VOLUME)

    The default error recovery level was SESSION. Specifying ERRORLEVEL(VOLUME) changes the default error recovery level to VOLUME for all new volumes that are added to the session. The state, control, and journal data sets are under a high-level qualifier of SYS1.

  6. Resynchronize these suspended volume pairs.
    XADDPAIR TUCSON VOLUME(PRIM01,SECO01,PRIM02,SECO02)

    Since this is a volume resynchronization, the volume pair keeps its original error recovery level of SESSION.

  7. Add a volume pair to the session.
    XADDPAIR TUCSON VOLUME(PRIM03,SECO03)

  8. Add another volume pair to the session with an error recovery level of SESSION.
    XADDPAIR TUCSON VOLUME(PRIM04,SECO04) ERRORLEVEL(SESSION)

    If an error occurs on this volume, the entire XRC session is suspended.