禁用DB2高可用性db2haicu -disable

切换到实例用户
[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/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/665930/viewspace-687223/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值