If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 HA Issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-19-06, 09:25
redwolf redwolf is offline
Registered User
 
Join Date: Apr 2004
Posts: 179
DB2 HA Issue

For the issue where the actual server hostname is stored in the db2nodes.cfg file IBM recommends the following to correct it. Our UNIX guys said there was an alias to both servers, but when I put their alias in the cfg file the database would not start. I'm assuming their alias is network specific and will not work. How would I define this alias suggested below or would I need to get a UNIX admin involved? The DBAs does not have sudo rights so any commands requiring root authority would need to be done by a UNIX admin.

Solution
To correct the primary server's configuration, you can choose from one of the following options:
Define a host alias on both the primary and secondary machine. This alias should reference the corresponding hostname on the primary and secondary machines.
Specify the host alias in the second column of the db2nodes.cfg file.
For example, if the host alias is called "db2ha", then the db2nodes.cfg should look like this:
0 db2ha 0
Reply With Quote
  #2 (permalink)  
Old 08-23-06, 11:16
chavadb2 chavadb2 is offline
Registered User
 
Join Date: Aug 2004
Posts: 138
you need to edit enties in /etc/hosts file on both primary and secondary to reflect the alias name..otherwise db2 will not be able to recognize the alias name you put in db2nodes.cfg

the entry in /etc/hosts looks like this

Ipaddress hostname aliasname

ask your unix admin to add this entry on both primary and secondary
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On