￿Option -D or -R determines which deployment method is to be used, D for db2_install and R for response file.

￿Option -N specifies the NFS path which has been exported on the file server machine Zaire. In our case, it is /tmp/v95ga/ese. This directory contains the DB2 server image, db2_install, and db2setup as shown in Example 2-19.

Example 2-19 NFS path where db2 image has been extracted

# ls -l

 

 

 

 

 

 

total 120

 

 

 

 

 

 

drwxr-xr-x

6

daemon

staff

4096

Jun 03 2008

db2

-r-xr-xr-x

1

bin

bin

4700

Jun 03 2008

db2_deinstall

-r-xr-xr-x

1

bin

bin

4570

Jun 03 2008

db2_install

-r-xr-xr-x

1

bin

bin

4560

Jun 03 2008

db2prereqcheck

-r-xr-xr-x

1

bin

bin

4552

Jun 03 2008

db2setup

drwxr-xr-x

16

bin

bin

4096

Jun 03 2008

doc

-r-xr-xr-x

1

bin

bin

4588

Jun 03 2008

installFixPack

drwxr-xr-x

5

root

system

256

Jun 03 2008

nlpack

drwxr-xr-x

15

bin

bin

4096

Jun 03 2008

readmefirst

-r--r--r--

1

bin

bin

1503

Jun 03 2008

readmefirst.htm

-r--r--r--

1

bin

bin

678

Jun 03 2008

readmefirst.txt

 

 

 

 

 

 

 

￿Option -H specifies all of the machines where the DB2 server are to be deployed. Each machine name is separated by a comma (,). No spaces are allowed between host names, before or after the comma.

￿Option -r specifies the name of the response file. It can not be used together with option D. If used, it is ignored. The response file has to be placed on the path specified by the option N.

Note: Keeping the response file accessible and consistent to every machine is critical to the success of the deployment. Therefore, it is placed in the NFS path and shared with everyone.

We continue using the response file we used in 2.2.3, “Response file” on page 48. In Example 2-20,we copy it to /tmp/v95ga/ese.

Example 2-20 Copy response file to NFS path

# cp /tmp/db2rsp/db2ese.rsp /tmp/v95ga/ese/

￿All other command line options are for the db2_install command. They follow the same syntax stated in the DB2 Information Center:

http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/topic/

com.ibm.db2.luw.admin.cmd.doc/doc/r0023669.html

Our script just passes these options to db2_install without change.

70DB2 Deployment Guide

Page 84
Image 84
IBM DB2 manual Example 2-19 NFS path where db2 image has been extracted, Example 2-20 Copy response file to NFS path