Use the new parameters in the installFixPack command
to update an existing DB2® pureScale® to a new Version 10.5 fix
pack level.
Before you begin
- Ensure that you meet all of the requirements before you install
a fix pack. Refer to Preparing to install a fix pack.
- Ensure that you are logged in as root.
- Issue db2stop
command.
About this task
This task uses the new capabilities of the
installFixPack command
to update an existing DB2 pureScale instance to the
latest fix pack in offline mode. These new capabilities simplify the
process of updating the instances and automate the update of additional
software components. To update the cluster for a DB2 pureScale instance,
specify the instance name in the enhanced
installFixPack command.
Procedure
To update an existing DB2 pureScale instance to a new
fix pack level:
- Install the new fix pack level on all hosts in the DB2 pureScale instance
by issuing the installFixPack command from the
fix pack installation media directory. The
media directory must be accessible to the root and the instance user
from all the members, secondary CF and primary CF. For example,
to update to Fix Pack 1, issue the installFixPack command
on each host as follows:
media-dir/installFixPack -p FP-install-path -I InstName -offline -l install-log-file -t trace-file-name
where FP-install-path is
the directory where you want to install the fix pack and media-dir is
the directory where you uncompressed the fix pack image. FP-install-path must
be the same on all hosts.
- Run the db2instance -list command to
ensure that the cluster is in a consistent state. If there are any
alerts of inconsistent state in the cluster, refresh the resource
model as the instance owner:
db2cluster -cm -repair -resources
- Determine whether the offline fix
pack update was successful in all members and CFs. For
example, to verify the update to Fix Pack 1, issue the installFixPack command
as follows:
media-dir/installFixPack -check_commit -I instance-name -t trace-file-name
-l check-commit-log-dir
If
the command output shows any problems, fix them before you continue
with the next step.
- Commit the DB2 instance
to the new level. For example, to commit the update to Fix Pack 1,
issue the installFixPack command as follows:
media-dir/installFixPack -commit_level -I InstName -l commit-log-dir
where media-dir is
the directory where you uncompressed the fix pack image.
- Start the database manager in all members and CFs by issuing
the db2start instance command in each host as follows:
su - InstName
db2start instance on host-name
where InstName represents the instance
owner name.
- Start the database manager for the instance by issuing
the db2start command as follows:
su - InstName
db2start
exit
where InstName represents the instance
owner name.
- To uninstall the previously installed DB2 copy, run the db2_deinstall command:
DB2DIR/install/db2_deinstall -a
where DB2DIR is
the installation path of the previously installed DB2 copy.