代码改变世界

【HADR】常见的问题

2015-01-29 16:34  Ivan的一亩三分地  阅读(1242)  评论(0编辑  收藏  举报

[hadrpri@oc0644314035 ~]$ db2 start hadr on db org as primary
SQL1768N  Unable to start HADR. Reason code = "5".

 


2015-01-20-09.44.19.684461-300 I29119E539          LEVEL: Error
PID     : 3647                 TID  : 139903467775744PROC : db2sysc 0
INSTANCE: hadrpri              NODE : 000          DB   : ORG
EDUID   : 31                   EDUNAME: db2hadrp (ORG) 0
FUNCTION: DB2 UDB, High Availability Disaster Recovery, hdrInitSocketHandle, probe:20165
DATA #1 : String, 168 bytes
HADR_LOCAL_SVC cannot be same port as SVCENAME or SVCENAME +1
HADR_LOCAL_SVC DB2_hadrpri_1,  Port # 60009
SVCENAME       60008,  Port # 60008
SVCENAME + 1   60009

HADR使用的端口不能为 SVCENAME or SVCENAME +1


Comm time-out in unforced HADR primary start, to avoid split-brain

发现两边的设置HOST不能使用ALIAS,端口最好不要使用字母

 

2015-01-20-21.20.21.093699-300 E30222E780          LEVEL: Error
PID     : 3852                 TID  : 139714027841280PROC : db2sysc 0
INSTANCE: hadrpri              NODE : 000          DB   : ORG
EDUID   : 31                   EDUNAME: db2hadrp (ORG) 0
FUNCTION: DB2 UDB, High Availability Disaster Recovery, hdrVerifySystem, probe:15600
MESSAGE : ADM12507E  Unable to establish HADR primary-standby connection
          because the HADR configuration parameters do not match. Change the
          configuration parameters HADR_TIMEOUT and HADR_SYNCMODE on either the
          HADR primary or standby so that they match the other system's values,
          and ensure that HADR_LOCAL_HOST and HADR_REMOTE_HOST match the host
          name of the local and remote machines.

检查两边的设置,发现HADR_SYNCMODE 不一致导致