Example Using MAINTMODE

In the following example, a coupling facility is drained:
  1. The coupling facility is put into maintenance mode.
  2. All of its structures that can be rebuilt are rebuilt on another coupling facility, and duplexing is stopped.
  3. Deletion is forced for all structures that have no active connector and cannot be rebuilt.
  4. The coupling facility is made inactivate.
    Note: It is no longer necessary to turn the sender paths offline when the coupling facility is in maintenance mode, regardless of whether or not all systems in the sysplex run z/OS® 1.9 or later.
When you issue INGCF with the DRAIN option, you can specify the coupling facility to be drained, for example, by entering INGCF DRAIN CF02. If you do not specify a coupling facility name, INGCF displays a selection panel with all coupling facilities that are defined in the sysplex.

The status of the coupling facility (NORMAL) and the authorization type of the operator (ALL) are displayed on the right side of the panel header. The main part of the panel consists of a list containing the structures allocated in CF02 and their conditions. The conditions are classified by color and an asterisk. The asterisk signifies that a structure cannot be rebuilt.

Two actions are enabled, MAINTON with F5 and REBUILD with F10. Pressing F5 calls the confirmation panel for starting the maintenance mode.

After pressing F10 on the confirmation panel, the main panel shows the new status (NORMAL MAINTMODE) and leaves only F10 for the rebuild process. Pressing F10 calls the confirmation panel for the rebuild process.

After pressing F10 on the confirmation panel and the rebuild is complete, you can refresh the command dialog with F9.

One structure could not be rebuilt because no alternate coupling facility is specified in its preference list. The REBUILD action is no longer available. Instead, the FORCE action (F5) is available because the structure that could not be rebuilt has a condition that allows forcing the deallocation of the structure.

Pressing F5 calls a confirmation panel similar to that for REBUILD. Pressing F10 on the confirmation panel and refreshing the command dialog after the action has been completed results in an empty panel and the status of the coupling facility has changed to MAINTMODE.

Because no more structures are allocated in the coupling facility, it can be inactivated. After pressing F11 the status of the coupling facility changes to INACTIVE.