冻结节点并停止 VCS

冻结 node03 并通过疏散它来停止该节点上的 VCS,以便服务组 SG03 将切换到 node01 或者 node02.

# haconf -makerw
# hasys -freeze -persistent node03
# haconf -dump
# hastop -sys node03 -evacuate

从 ClusterServices SG 中删除节点

从 node01 和 node02 上的 ClusterServices SG 中删除 node03

# hagrp -modify ClusterService AutoStartList -delete node03

停止 I/O 防护并停止 LLT/GAB 模块

停止 node03 上的 VCS I/O 防护和 LLT/GAB 模块。

# /sbin/vxfen-shutdown
# vxfenadm -d     (check status of fencing from node01 or node02)
# gabconfig -U
# lltconfig -U
如何从活动的 VCS 集群中删除节点

在某些情况下,我们可能希望从集群中删除节点。
我们可以在不中断集群服务的情况下在线完成此操作。
为此,我们应该有足够的资源来处理要从集群中删除的节点的负载。

我们将删除运行服务组 SG03 的 node03.

从集群中删除节点

现在从集群中删除 node03 并保存配置(在 node01 或者 node02 上运行它)

# hasys -delete train10
# haconf -dump -makero
on  It Road.com

修改 AutoStartList 和 SystemList

在 node01 和 node02 上运行以下命令(我假设两个节点的 SystemList 和 AutoStartList 属性中都有 node03)
在 node01 上

# hagrp -modify SG01 AutoStartList -delete node03
# hagrp -modify SG01 SystemList -delete node03

在 node02 上

# hagrp -modify SG02 AutoStartList -delete node03
# hagrp -modify SG02 SystemList -delete node03

删除 VCS 软件

通过运行安装程序实用程序从 node03 中删除 VCS 软件并重命名 main.cf 文件。

日期:2020-09-17 00:15:12 来源:oir作者:oir