Steps for setting up HACMP active/passive


HACMP Active server

1. First create the file <instname>.db2nodes.cfg. in the /etc directory which is local to each server and will NOT be failed over to another server, on both servers.
2. Use the local hostname in the /etc/<instname>.db2nodes.cfg files on both servers.
3. Make sure permissions for file /etc/<instname>.db2nodes.cfg are set to 444 on both servers.
4. As Instance owner, create a link named db2nodes.cfg from the instance sqllib to this new /etc/<instname>.db2nodes.cfg file.
=>ln -fs /etc/<instname>.db2nodes.cfg /db2home/<instname>/sqllib/db2nodes.cfg
5. Make sure you create the <instname>.db2nodes.cfg on the same path on both servers, so that link will still work after failover.
6. Also make sure same TCP port is being used/reserved on both servers for the instance service port.
7. Remove db2 startup line from inittabs and provide your own db2 startup and stop scripts.......as root =>rmitab db2start
HACMP Standby server
1.  as root. 
vi /etc/<instname>.db2nodes.cfg .    chmod 444
permissions on /db2home directory should be 775 and owned by db2as:db2asgrp
Copy /etc/services db2 ports from Active server to /etc/services in Standby server.
Make a file called
/var/db2/v81/profiles.reg and add instance names on seperate lines
Copy instance id's .profiles over to standby server.





No comments:

Post a Comment