Putting a cluster into maintenance mode
You can put a cluster into maintenance mode when you are making updates to the operating system or hardware on the hosts in the cluster.
To perform this task, you must be the Db2® cluster services administrator.
About this task
If you are using high availability disaster recovery (HADR), you can use the rolling update procedure to avoid taking an outage. By failing over the primary cluster to the standby site, you can maintain database availability. For more information, see Performing rolling updates in a Db2 high availability disaster recovery (HADR) environment.
Procedure
What to do next
- As the Db2 cluster
services administrator,
perform the following steps:
- Perform any maintenance activities planned. For example, install a fix pack update, or make network topology changes to your Db2 pureScale® environment.
- Exit cluster manager maintenance mode on the host by issuing the following
command:
where DB2DIR represents the installation location of your Db2 copy.DB2DIR/bin/db2cluster -cm -exit -maintenance -all
- Ensure that all members and domain are
active by issuing the following
command:
where DB2DIR represents the installation location of your Db2 copy.DB2DIR/bin/db2cluster -cm -list -host -state
- Exit cluster file system maintenance mode on the hosts by issuing the following
command:
where DB2DIR represents the installation location of your Db2 copy. In case of timeout, check the status of the cluster file system by issuing theDB2DIR/bin/db2cluster -cfs -exit -maintenance -all
DB2DIR/bin/db2cluster -cfs -list -host -state
command.
- As an instance user, perform the following steps:
- On each host, start the Db2 instance by issuing
the following command:
where hostname represents the host name for a given member or CF, and thedb2start instance on hostname
db2start instance on hostname
command is run for each host in the cluster. - Start the database manager by issuing the following command:
where iname represents the instance owner name.su -iname db2start exit
- On each host, start the Db2 instance by issuing
the following command: