IBM Data Server DB2 User Manual

Page 95

Advertising
background image

Chapter 2. DB2 server deployment

81

In the fix pack deployment script:

Option -N specifies the NFS path that has been exported on the file server.
In our case, it is /tmp/v95fp1/ese. This directory contains the DB2 fix pack
image and installFixPack.

Option -H specifies all of the machine names where DB2 fix packs are to be
deployed. Each name is separated by a comma (,) with no space between
names and before and after the comma.

Option -c specifies the location of DB2 National Language Pack. This option
is mandatory when option -n is used. The DB2 NLPACK location has to be
provided explicitly only if all of the following conditions are met:

– The -n option is specified.

– The installation requires National Language (non-English) support.

– The DB2 NLPACK is not located on the DB2 DVD or in the same

subdirectory as the DB2 product being installed.

In our scenario, we have made National Language Pack made available to
others by creating a subdirectory called nlpack under /tmp/v95fp1/ese,
which is already exported through NFS.

We specify a relative path of nlpack for the option -c in our example.

All other command line options are for the

installFixPack

command. The

command line options for the

installFixPack

command can be found at the

following URL:

http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/topic/
com.ibm.db2.luw.admin.cmd.doc/doc/r0023700.html

Our script just passes these options to the

db2_install

.

Sample deployment script

Example 2-27 shows our deployment script.

Example 2-27 Source code of fix pack mass deployment script

#!/usr/bin/ksh
##############################################################
#
# Mass deployment script for DB2 fix pack on UNIX/Linux
#
##############################################################
#
# db2fp_install -N NFSpath -H hostA,hostB,...,hostN

Note: Be aware that the usage of option -c is a bit different than the one
used by installFixPack. Our script only accepts the relative path.

Advertising