ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 禁用DB2高可用性db2haicu -disable

禁用DB2高可用性db2haicu -disable

原创 Linux操作系统 作者:心飘 时间:2011-02-15 09:41:38 0 删除 编辑

切换到实例用户
[root@linux2 ~]# su - db2inst1

执行命令db2haicu -disable禁用DB2 HA集群
[db2inst1@linux2 ~]$ db2haicu -disable
Welcome to the DB2 High Availability Instance Configuration Utility (db2haicu).

You can find detailed diagnostic information in the DB2 server diagnostic log file called db2diag.log. Also, you can use the utility called db2pd to query the status of the cluster domains you create.

For more information about configuring your clustered environment using db2haicu, see the topic called 'DB2 High Availability Instance Configuration Utility (db2haicu)' in the DB2 Information Center.

db2haicu determined the current DB2 database manager instance is db2inst1. The cluster configuration that follows will apply to this instance.

db2haicu is collecting information on your current setup. This step may take some time as db2haicu will need to activate all databases for the instance to discover all paths ...
Are you sure you want to disable high availability (HA) for the database instance db2inst1. This will lock all the resource groups for the instance and disable the HA configuration parameter. The instance will not failover if a system outage occurs while the instance is disabled. You will need to run db2haicu again to enable the instance for HA. Disable HA for the instance db2inst1? [1]
1. Yes
2. No

Disabling high availability for instance db2inst1 ...
Locking the resource group for DB2 database partition 0 ...
Locking the resource group for DB2 database partition 0 was successful.
Disabling high availability for instance db2inst1 was successful.
All cluster configurations have been completed successfully. db2haicu exiting ...

重新启用db2 ha集群
[db2inst1@linux2 ~]$ db2haicu
Welcome to the DB2 High Availability Instance Configuration Utility (db2haicu).

You can find detailed diagnostic information in the DB2 server diagnostic log file called db2diag.log. Also, you can use the utility called db2pd to query the status of the cluster domains you create.

For more information about configuring your clustered environment using db2haicu, see the topic called 'DB2 High Availability Instance Configuration Utility (db2haicu)' in the DB2 Information Center.

db2haicu determined the current DB2 database manager instance is db2inst1. The cluster configuration that follows will apply to this instance.

db2haicu is collecting information on your current setup. This step may take some time as db2haicu will need to activate all databases for the instance to discover all paths ...
When you use db2haicu to configure your clustered environment, you create cluster domains. For more information, see the topic 'Creating a cluster domain with db2haicu' in the DB2 Information Center. db2haicu is searching the current machine for an existing active cluster domain ...
db2haicu found a cluster domain called ha_domain on this machine. The cluster configuration that follows will apply to this domain.

db2haicu has detected that high availability has been disabled for the instance db2inst1. Do you want to enable high availability for the instance db2inst1? [1]
1. Yes
2. No

Retrieving high availability configuration parameter for instance db2inst1 ...
The cluster manager name configuration parameter (high availability configuration parameter) is not set. For more information, see the topic "cluster_mgr - Cluster manager name configuration parameter" in the DB2 Information Center. Do you want to set the high availability configuration parameter?
The following are valid settings for the high availability configuration parameter:
  1.TSA
  2.Vendor
Enter a value for the high availability configuration parameter: [1]

Setting a high availability configuration parameter for instance db2inst1 to TSA.
Enabling high availability for instance db2inst1 ...
Enabling high availability for instance db2inst1 was successful.
All cluster configurations have been completed successfully. db2haicu exiting ...

对应db2diag.log的日志
---禁用过程
2011-02-15-09.39.30.432573+480 I74818G292         LEVEL: Event
PID     : 7916                 TID  : 1251392     PROC : db2flacc
INSTANCE: db2inst1             NODE : 000
FUNCTION: DB2 UDB, config/install, sqlfLogUpdateCfgParam, probe:30
CHANGE  : CFG DBM: "Cluster_mgr" From: "TSA"  To: ""

---启用过程
2011-02-15-09.40.15.835396+480 I75111G292         LEVEL: Event
PID     : 8572                 TID  : 1232320     PROC : db2flacc
INSTANCE: db2inst1             NODE : 000
FUNCTION: DB2 UDB, config/install, sqlfLogUpdateCfgParam, probe:30
CHANGE  : CFG DBM: "Cluster_mgr" From: ""  To: "TSA"

看似db2haicu主要通过DBM CFG 的"Cluster_mgr" 参数实现控制

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/665930/viewspace-687223/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2010-12-29

  • 博文量
    29
  • 访问量
    119260