Installing concurrent online fix pack updates on a Db2 pureScale instance (manual method)
You can update multiple hosts to a higher code level fix pack or special build, in parallel, on a Db2 pureScale instance. These updates can be applied to both members and cluster caching facilities, and are done without impacting availability.
Before you begin
Using this method, you can manually execute multiple installFixPack commands in parallel from multiple hosts.
- Ensure that you meet all of the requirements before you install a fix pack. For more information refer to Preparing to install a fix pack.
- Ensure that you have root user authority and instance owner authority.
- Ensure that 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 by issuing the installFixPack -show_level_info
command from the new fix pack or special build image location
<new_fix_pack_image_location>/<product>/installFixPack. The following is
a sample output of that
command:
Code level = Version:11 Release:5 Modification:5 Fixpack:0 Architecture level = Version:11 Release:5 Modification:5 Fixpack:0 Section level = Version:11 Release:5 Modification:5 Fixpack:0 Supports online update = Yes Minimum committed code level required for online install = Version:11 Release:5 Modification:0 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
- Apply online fix pack update on member 0, 1, and secondary CF at the same time.
- Apply online fix pack update on member 2, 3, and primary CF at the same time.
- Apply online fix pack update on member 0 and member 1 at the same time.
- Apply online fix pack update on member 2 and secondary CF at the same time.
- Apply online fix pack update on member 3 and primary CF at the same time.
Procedure
Example
The following example illustrates how to use online fix pack updates to update a Db2 pureScale instance (which is called Instance1 in the example) from Db2 version 12.1 GA to Db2 version 11.5.5.
Instance1 has two CFs called cfserver56 and cfserver54, and two members that are called mbserver53 and mbserver55. The command output text is formatted for better reading by removing blanks or adding lines.
- The administrator updates mbserver53 and cfserver56
(the secondary CF) at the same time.
- Log on to the Db2 database server with root user authority.
- Extract the fix pack or special build image in the /local/tmp/M5FP0image directory.
- Issue the installFixPack command as follows on
mbserver53 and cfserver56 (secondary CF) at the same
time:
/local/tmp/M5FP0image/installFixPack -p /opt/ibm/db2/V11.5M5FP0 -I Instance1 -online -l /tmp/V11.5M5FP0.log
- Issue the db2pd -ruStatus command to verify that code level changed. The
following is a sample of the command
output:
ROLLING UPDATE STATUS: Disk Value Memory Value Record Type = INSTANCE ID = 0 Code Level = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) Not Applicable Architecture Level = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) Not Applicable State = [UPDATE IN PROGRESS][ONLINE UPDATE INITIATED] Last updated = 2020/04/14:14:52:36 Record Type = MEMBER ID = 0 Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) CECL = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) Architecture Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) CEAL = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) Section Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Target Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable State = [NONE] Last updated = 2020/04/14:15:30:12 mbserver53.torolab.ibm.com: db2pd -ruStat -localhost -runremotely -level 0x0B05040000000000,0x0B05040000000000,0x0B05000000000000,0x0B05000000000000 completed ok Record Type = MEMBER ID = 1 Code Level = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) CECL = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) Architecture Level = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) CEAL = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) Section Level = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) Target Code Level = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) Not Applicable State = [NONE] Last updated = 2020/04/14:14:52:24 mbserver54.torolab.ibm.com: db2pd -ruStat -localhost -runremotely -level 0x0B05040000000000,0x0B05040000000000,0x0B05000000000000,0x0B05000000000000 completed ok Record Type = CF ID = 128 Code Level = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) Not Applicable Architecture Level = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) Not Applicable Target Code Level = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) Not Applicable State = [NONE] Last updated = 2020/04/14:14:52:24 Record Type = CF ID = 129 Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable Architecture Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable Target Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable State = [NONE] Last updated = 2020/04/14:15:34:22
- The administrator updates mbserver54 and cfserver55
(the primary CF) at the same time.
- Log on to the mbserver54 and cfserver56 with root user authority.
- Extract the fix pack or special build image in the /local/tmp/M5FP0image directory.
- Issue the installFixPack command as
follows:
/local/tmp/M5FP0image/installFixPack -online -p /opt/ibm/db2/V11.5M5FP0 -I Instance1 -t trace-file-name -l /tmp/V11.5M5FP0.log
- Issue the db2pd -ruStatus command to verify that the code level changed to
Db2
version 11.5.5. The following sample shows the command
output:
ROLLING UPDATE STATUS: Disk Value Memory Value Record Type = INSTANCE ID = 0 Code Level = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) Not Applicable Architecture Level = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) Not Applicable State = [UPDATE IN PROGRESS][ONLINE UPDATE INITIATED] Last updated = 2020/04/14:14:52:36 Record Type = MEMBER ID = 0 Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) CECL = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) Architecture Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) CEAL = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) Section Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Target Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable State = [NONE] Last updated = 2020/04/14:15:30:12 mbserver53.torolab.ibm.com: db2pd -ruStatus -localhost -runremotely -level 0x0B05040000000000,0x0B05040000000000,0x0B05000000000000,0x0B05000000000000 completed ok Record Type = MEMBER ID = 1 Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) CECL = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) Architecture Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) CEAL = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) Section Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Target Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable State = [NONE] Last updated = 2020/04/14:16:14:12 mbserver54.torolab.ibm.com: db2pd -ruStatus -localhost -runremotely -level 0x0B05040000000000,0x0B05040000000000,0x0B05000000000000,0x0B05000000000000 completed ok Record Type = CF ID = 128 Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable Architecture Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable Target Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable State = [NONE] Last updated = 2020/04/14:16:20:44 Record Type = CF ID = 129 Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable Architecture Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable Target Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable State = [NONE] Last updated = 2020/04/14:15:34:22
- After all members and CFs are updated, the administrator verifies that all members and CFs have
the same architecture and code level by issuing the db2pd -ruStatus command. The
following sample displays the command
output:
ROLLING UPDATE STATUS: Disk Value Memory Value Record Type = INSTANCE ID = 0 Code Level = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) Not Applicable Architecture Level = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) Not Applicable State = [UPDATE IN PROGRESS][ONLINE UPDATE INITIATED] Last updated = 2020/04/14:14:52:36 Record Type = MEMBER ID = 0 Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) CECL = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) Architecture Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) CEAL = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) Section Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Target Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable State = [NONE] Last updated = 2020/04/14:15:30:12 mbserver53.torolab.ibm.com: db2pd -ruStatus -localhost -runremotely -level 0x0B05040000000000,0x0B05040000000000,0x0B05000000000000,0x0B05000000000000 completed ok Record Type = MEMBER ID = 1 Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) CECL = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) Architecture Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) CEAL = V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) V:11 R:5 M:0 F:0 I:0 SB:0 (0x0B05000000000000) Section Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Target Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable State = [NONE] Last updated = 2020/04/14:16:14:12 mbserver54.torolab.ibm.com: db2pd -ruStatus -localhost -runremotely -level 0x0B05040000000000,0x0B05040000000000,0x0B05000000000000,0x0B05000000000000 completed ok Record Type = CF ID = 128 Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable Architecture Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable Target Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable State = [NONE] Last updated = 2020/04/14:16:20:44 Record Type = CF ID = 129 Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable Architecture Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable Target Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable State = [NONE] Last updated = 2020/04/14:15:34:22
- The administrator determines that the online fix pack update was successful in all members and
CFs by issuing the following command on any
host:
/local/tmp/M5FP0image/installFixPack -check_commit -I Instance1 -l /tmp/checkcommit.log
The following sample command output shows that online update was successful and that all members and CF are ready for issuing the commit of the fix pack update:DBI1446I The installFixPack command is running. The pre-commit verification process for an online fix pack update has started.... The checks for the pre-commit verification process have been completed successfully. If you perform a commit, the new level will be = Version:11 Release:5 Modification:5 Fixpack:0 The execution completed successfully. For more information see the DB2 installation log at "/tmp/installFixPack.log.19144". DBI1070I Program installFixPack completed successfully.
- The administrator then commits the online fix pack updates so that
Instance1 is updated to the new fix pack level by issuing the following command
on any
hosts:
/local/tmp/M5FP0image/installFixPack -commit_level -I Instance1 -l /tmp/M5FP0_commit.log
The following command output shows that the commit was successful:DBI1446I The installFixPack command is running. The execution completed successfully. For more information see the Db2 installation log at "/tmp/M5FP0_commit.log". DBI1070I Program installFixPack completed successfully.
- The administrator verifies that Instance1, all members and all CFs show the
same new committed code level and architecture level by issuing the db2pd
-ruStatus command. The following displays the command
output:
ROLLING UPDATE STATUS: Disk Value Memory Value Record Type = INSTANCE ID = 0 Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable Architecture Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable State = [NONE] Last updated = 2020/04/14:16:34:56 Record Type = MEMBER ID = 0 Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) CECL = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Architecture Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) CEAL = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Section Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Target Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable State = [NONE] Last updated = 2020/04/14:15:30:12 mbserver53.torolab.ibm.com: db2pd -ruStatus -localhost -runremotely -level 0x0B05040000000000,0x0B05040000000000,0x0B05040000000000,0x0B05040000000000 completed ok Record Type = MEMBER ID = 1 Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) CECL = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Architecture Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) CEAL = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Section Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Target Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable State = [NONE] Last updated = 2020/04/14:16:14:12 mbserver54.torolab.ibm.com: db2pd -ruStatus -localhost -runremotely -level 0x0B05040000000000,0x0B05040000000000,0x0B05040000000000,0x0B05040000000000 completed ok Record Type = CF ID = 128 Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable Architecture Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable Target Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable State = [NONE] Last updated = 2020/04/14:16:20:44 Record Type = CF ID = 129 Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable Architecture Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable Target Code Level = V:11 R:5 M:5 F:0 I:0 SB:0 (0x0B05040000000000) Not Applicable State = [NONE] Last updated = 2020/04/14:15:34:22
- If you want to use capabilities specific to the fix pack, update the system catalog objects in
your databases.
- Log on as the instance owner.
- For each database in the instance, issue the db2updv115 command as
follows:
db2updv115 -d testdb _____ DB2 Service Tools _____ I B M db2updv115 This tool is a service utility designed to update a DB2 Version 11.5 database to the current fix pack level. ________________________________________________________________________ DB2 Universal Database Version 11.5, 5622-044 (c) Copyright IBM Corp. 2017 Licensed Material - Program Property of IBM IBM DATABASE 2 Database update to current fix pack tool db2updv115 completed successfully for database 'testdb'.