IBM DB2 Computer Accessories User Manual


 
Chapter 2. DB2 server deployment 71
The following example demonstrates the use of the deployment script:
db2srv_install -D -N /tmp/v95ga/ese -H baltic,banda -n -p ese -b /opt/IBM/db2/
V9.5 -l /tmp/mass_db2dply.log
This command deploys DB2 Enterprise Server Edition to machines Baltic and
Banda with installation location /opt/IBM/db2/V9.5 specified. A log file /tmp/
mass_db2dply.log is generated for each machine during the deployment.
For a mass deployment using the response file, the command line should look
like this:
db2srv_install -R -N /tmp/v95ga/ese -H baltic,banda -r db2ese.rsp
Running a mass deployment
Here we deploy the DB2 server to two target machines Baltic and Banda. We
outline the steps for performing a mass DB2 server deployment using our script:
1. Login to the file server machine Zaire where DB2 installation image is located.
2. Change the directory to where db2srv_install is located and run the
db2srv_install script to start the deployment.
Example 2-21 shows a db2_install based mass deployment. Option -D is
used to specify db2_install.
Example 2-21 Mass deployment using db2_install
# ./db2srv_install.sh -D -N /tmp/v95ga/ese -H baltic,banda -n -p ese -b /
opt/IBM/db2/V9.5 -l /tmp/mass_db2dply.log
============================
Starting deployment on machine baltic using db2_install...
Messages returned from baltic:
---------------
The execution completed successfully.
For more information see the DB2 installation log at "/tmp/
mass_db2dply.log".
---------------
Deployment finished on machine baltic.
============================
Starting deployment on machine banda using db2_install...
Messages returned from banda:
---------------
The execution completed successfully.
Note: The sample deployment script db2srv_install can be placed in any path.
As we are using a root user to perform the deployment, the script should be
given sufficient permission to be read and executed by the root user.