Running smarter concurrent fix pack updates for Db2 pureScale instances
You can update multiple hosts in a Db2 pureScale instance while the remaining members and cluster caching facilities continue to process transactions.
Before you begin
- All prerequisites are met. For more information, see Preparing to install a fix pack.
- You have root user authority and instance owner authority.
- Online fix pack updates are supported between the Db2 version that is
installed on your Db2
pureScale instance and the
Db2 version
of the fix pack or special build that you want to install. Run the installFixPack
command with the -show_level_info option to determine whether the update is
supported. Run the command from the location of the new fix pack or special build image.
The following example shows sample output of runninginstallFixPack -show_level_info
:Code level = Version:11 Release:5 Modification:8 Fixpack:0 Architecture level = Version:11 Release:5 Modification:8 Fixpack:0 Section level = Version:11 Release:5 Modification:8 Fixpack:0 Supports online update = Yes Minimum committed code level required for online install = Version:11 Release:5 Modification:6 Fixpack:0 The execution completed successfully. For more information see the DB2 installation log at "/tmp/installFixPack.log.13369572". DBI1070I Program installFixPack completed successfully.
About this task
- -concurrency: Automatically updates all hosts in a cluster with a specified degree of concurrency.
- -autoupdate: Automatically updates all hosts in a cluster with an optimum degree of concurrency.
- All hosts must be updated before you can commit changes and update the Db2 pureScale instance.
- The value of the -concurrency parameter cannot be more than half of the members.
- The secondary CF must be in peer state after it is updated. This state change happens automatically if any connection is made to a database after the secondary CF is updated.
Procedure
Example
# installFixPack -p /opt/ibm/db2/V11.5FP -I db2inst1 -autoupdate -show_update_order -y
DBI1961I The installFixPack command was run with -show_update_order. This option is informational and no update operation will occur.
The installFixPack command will update the hosts with concurrency "3".
The installFixPack command will update the hosts in the following order:
host1.ibm.com,host2.ibm.com,host3.ibm.com,
host4.ibm.com,
host5.ibm.com,
host6.ibm.com
When the -show_update_order
command runs successfully, run the real
update. The following example shows the command syntax and output from running the
installFixPack command with the -autoupdate
option:# installFixPack -p /opt/ibm/db2/V11.5FP -I db2inst1 -autoupdate -y
Performing online fixpack update on host: "host1.ibm.com".
Performing online fixpack update on host: "host2.ibm.com".
Performing online fixpack update on host: "host3.ibm.com".
DBI1964I The online fixpack update operation succeeded on "host1.ibm.com". Refer to /tmp/installFixPack_Concurrent.log.841135 on host "host1.ibm.com" for details.
Performing online fixpack update on host: "host4.ibm.com".
DBI1964I The online fixpack update operation succeeded on "host2.ibm.com". Refer to /tmp/installFixPack_Concurrent.log.841135 on host "host2.ibm.com" for details.
Performing online fixpack update on host: "host5.ibm.com".
DBI1964I The online fixpack update operation succeeded on "host3.ibm.com". Refer to /tmp/installFixPack_Concurrent.log.841135 on host "host3.ibm.com" for details.
Performing online fixpack update on host: "host6.ibm.com".
DBI1964I The online fixpack update operation succeeded on "host4.ibm.com". Refer to /tmp/installFixPack_Concurrent.log.841135 on host "host4.ibm.com" for details.
DBI1964I The online fixpack update operation succeeded on "host5.ibm.com". Refer to /tmp/installFixPack_Concurrent.log.841135 on host "host5.ibm.com" for details.
DBI1964I The online fixpack update operation succeeded on "host6.ibm.com". Refer to /tmp/installFixPack_Concurrent.log.841135 on host "host6.ibm.com" for details.
Example 2: Keeping more hosts online throughout the update by using the -concurrency <# of hosts> option.
# installFixPack -p /opt/ibm/db2/V11.5FP -I db2inst1 -concurrency 2 -show_update_order -y
DBI1961I The installFixPack command was run with -show_update_order. This option is informational and no update operation will occur.
The installFixPack command will update the hosts with concurrency "2".
The installFixPack command will update the hosts in the following order:
host1.ibm.com,host2.ibm.com,
host3.ibm.com,
host4.ibm.com,
host5.ibm.com,
host6.ibm.com
-show_update_order
command runs
successfully, run the real update. The following example shows the command syntax and output from
running the installFixPack command with the -concurrency option
set to
2:# installFixPack -p /opt/ibm/db2/V11.5FP -I db2inst1 -concurrency 2 -y
Performing online fixpack update on host: "host1.ibm.com".
Performing online fixpack update on host: "host2.ibm.com".
DBI1964I The online fixpack update operation succeeded on "host1.ibm.com". Refer to /tmp/installFixPack_Concurrent.log.841135 on host "host1.ibm.com" for details.
Performing online fixpack update on host: "host3.ibm.com".
DBI1964I The online fixpack update operation succeeded on "host2.ibm.com". Refer to /tmp/installFixPack_Concurrent.log.841135 on host "host2.ibm.com" for details.
Performing online fixpack update on host: "host4.ibm.com".
DBI1964I The online fixpack update operation succeeded on "host3.ibm.com". Refer to /tmp/installFixPack_Concurrent.log.841135 on host "host3.ibm.com" for details.
Performing online fixpack update on host: "host5.ibm.com".
DBI1964I The online fixpack update operation succeeded on "host4.ibm.com". Refer to /tmp/installFixPack_Concurrent.log.841135 on host "host4.ibm.com" for details.
Performing online fixpack update on host: "host6.ibm.com".
DBI1964I The online fixpack update operation succeeded on "host5.ibm.com". Refer to /tmp/installFixPack_Concurrent.log.841135 on host "host5.ibm.com" for details.
DBI1964I The online fixpack update operation succeeded on "host6.ibm.com". Refer to /tmp/installFixPack_Concurrent.log.841135 on host "host6.ibm.com" for details.
What to do next
You can monitor the update on an individual host by opening a separate session on that host. Once
logged in, check the contents of /tmp/installFixPack_Concurrent.log.<pid>
to
monitor the status of the update.
If there is a failure during the concurrent fix pack update, refer to the logs for details. When the issue is resolved, you can update the rest of the cluster manually or follow the instructions from step 2 onward. The installer keeps track of the hosts have been updated, so updates are applied only to those hosts that need them.