Nov 24
|
Changing hostname of the DB2 serverTSM Server 6, Uppgradering Comments Off on Changing hostname of the DB2 server
|
|
|||
Cause | |||
Changing the DB2 server’s hostname. | |||
Answer | |||
Perform the following on the DB2 server:1) Login as the dasadm user on UNIX/Linux or Local Administrator on Windows. Stop the DB2 Administration Server (DAS):
2) Login as the instance owner on UNIX/Linux or Local Administrator on Windows. Stop the DB2 instance:
3) Change the server’s hostname. On a Windows system, a reboot is required before this change will take effect. Do not reboot the Windows Server at this time – you must make the DB2 Configuration changes first. 4) Login as user ROOT on UNIX/Linux and Local Administrator on Windows. Update the DB2SYSTEM registry varibale:
5) Locate db2nodes.cfg in one of the following directories:
Note that only DB2 ESE has a db2nodes.cfg. If you are running other editions (WorkGroup Server, or Personal Edition) then you can skip this step and the next. 6) In the db2nodes.cfg file change <current hostname> to <new hostname>. 7) Run the following command to list the current hostname/system name that is cataloged:
8) Uncatalog the current hostname using this command:
9) Catalog the admin node with the new hostname using this command: db2 catalog admin tcpip node <nodename> remote <new hostname> system <new hostname> <nodename> can be anything you want it to be (8 characters or less). It does not relate directly to the hostname itself. 10) Update the admin configuration file using these commands:
db2 update admin cfg using SMTP_SERVER <new hostname> 11) At this time, you should restart your server if running Windows. Note that if your instances are set to auto-start, you may get error messages. These will occur if you have DB2_EXTSECURITY enabled. To correct this, you will need to update the DB2_ADMINGROUP and DB2_USERSGROUP registry entries using the db2extsec command. See the ‘note’ at the end of this technote for more details. 12) Login as the dasadm user on UNIX/Linux or Local Administrator on Windows. Start the DB2 Administration Server (DAS):
13) Login as the instance owner on UNIX/Linux or Local Administrator on Windows. Start the DB2 instance:
14) In Control Center find the old hostname under the “All Systems” folder and right click, choose Remove. 15) In Control Center add the new hostname. Right click on the “All Systems” folder and choose “Add”. Click on “Discover” to locate the new hostname. NOTE: |