'Migration'에 해당되는 글 1건

  1. 2009.08.04 DB2 Server hostname 변경하기
임시 서버에 DB2를 설치하여 개발, 테스트를 진행하다가
운영 서버로 migrate하는 것이 아니라,
곧바로 임시 서버의 hostname을 변경하여 운영하게 되는 경우가 있다.

이런 경우 DB2 DBA 관점에서 변경해줄 내용은
db2nodes.cfg의 hostname만 변경해주면 되는데

IBM 레퍼런스에 따르면
다음과 같은 절차로 진행하면 된다고 한다.
3번 절차는 수행할 필요가 있는지는 의문이다.

  1. db2stop
  2. hostname 변경
  3. db2set -g DB2SYSTEM=<new hostname>
  4. ${DB2HOME}/sqllib/db2nodes.cfg의 <hostname>을 <new hostname>로 변경
  5. db2start

DB2에 GUI client로 붙어서 사용할 수 있는 DAS server를 띄워놓은 경우라면
추가적으로 다음을 수행할 필요도 있을 수 있겠으나,
DAS를 사용하지 않는 것이 일반적인 환경이니, 참고만 하면 되겠다.
  1. db2 admin stop
  2. db2 uncatalog node <old_hostname>
  3. db2 catalog admin tcpip node <new hostname> remote <new hostname> system <new hostname>
  4. db2 update admin cfg using DB2SYSTEM <new hostname>
  5. db2 update admin cfg using SMTP_SERVER <new hostname>
  6. db2admin start
  7. Remove the entry from Control Center for the server with old hostname and then execute a server's discover with the new hostname

Posted by in0de
,