VMware vSphere 6.5 Enabling vCenter Server HA (VCHA) Stage 3

接续前一章节:VMware vSphere 6.5 Enabling vCenter Server HA(VCHA) Stage 2
部署作业已经完成:vCenter Server High Availability高可用性保护架构
接下来实际验证与启动vCenter Server HA自动容错移转保护机制。

实作说明
10.Shut down the VMware vCenter Server Appliance 6.5(Power Off)
强制关闭VMware vCenter Server Appliance 6.5系统电源 ,
模拟作用中Active Node主动节点服务是否会被侦测到异常,
自动容错移转服务至Passive Node被动节点的vCenter Server
继续运作(vCenter Server管理IP不变,系统会自动切换)。
http://img2.58codes.com/2024/20103019QzIsadJtSl.png
PS.正式上线VM环境,有权限登入系统人员,千万!千万!千万!不要这样直接关闭VM电源

11.Ping response "Request timed out"
因强制直接关闭系统电源,确认vCenter Server系统服务异常中断,
导致正在运作中的vCenter Server系统无法连线。
http://img2.58codes.com/2024/20103019maMet92RDp.png

12.vCenter Server HA容错移转服务正在处理中(请稍后几分钟)...
http://img2.58codes.com/2024/201030192vfAg3fHlv.png
一段时间过后,会发现VMware vCenter Web Client登入画面恢复正常,
请再次登入系统。
http://img2.58codes.com/2024/201030193psiJMWoVE.png

13.A replication failure might be occurring at the moment.
Automatic failover protection is disabled.
请点选:ESXi Host➤Configure设定➤vCenter Server HA
会发现vCenter HA複写功能失效,自动容错移转服务停用,
Passive被动节点自动切换为Active Node主动节点服务,
vCenter Server继续运作(vCenter 管理IP不变,系统自动更换)。
http://img2.58codes.com/2024/20103019lfANWJiv89.png

如上图系统讯息:
vCenter HA 丛集遗失一个节点,请确认被动节点和见证节点是否已上线且可连线。
http://img2.58codes.com/2024/201030191AV00UhF1s.png

14.再次把已关闭VMware vCenter Server Appliance 6.5(Power on)开机
验证测试vCenter Server HA系统反应状态
http://img2.58codes.com/2024/20103019v82x3BBZhL.png

15.vCenetr HA Warning! PostgreSQL replication is not in progress.
系统显示讯息:PostgreSQL 複写不在进行中
请确认 PostgreSQL伺服器是否在被动节点上执行
http://img2.58codes.com/2024/20103019BjFzOygpzD.png

16.All vCenter HA nodes are accessible and replication is enabled.
Automatic failover protection is enabled.
一段时间后,vCenter Server HA节点均可供存取,
且已启用複写。再次启用vCenter Server HA自动容错移转保护机制
http://img2.58codes.com/2024/20103019Iub5GYmOCP.png

17.验证vCenter Server HA自动容错移转保护机制状态正常
原本Active-vcsa1角色变为Passive Node被动节点,不再线上提供服务,
Passive-vcsa1-peer角色变为Active Node主动节点服务,
vCenter Server继续运作(vCenter 管理IP不变,系统自动更换)。
http://img2.58codes.com/2024/20103019biaA3FYsSi.png

18.Initiate Failover.手动再执行容错移转作业
就可以把各角色互换回原正常状态。
点选:ESXi Host➤Configure设定➤vCenter Server HA➤Initiate Failover
http://img2.58codes.com/2024/20103019O6aR5M5mau.png

19.Initiate vCenter Server HA Failover
再次执行容错移转会将vCenter HA被动节点升级为主动节点。
正在进行容错移转时,vCenter Server、vSphere Web Client
和其它服务将会有数分钟的时间无法使用。
请按一下Yes以起始容错移转。
http://img2.58codes.com/2024/201030198IgydsTaB8.png
http://img2.58codes.com/2024/201030191V73TykhH1.png

一段时间过后,会发现VMware vCenter Web Client登入画面恢复正常,
请再次登入系统。
http://img2.58codes.com/2024/20103019aBWWlIbQIK.png

20.All vCenter HA nodes are accessible and replication is enabled.
Automatic failover protection is enabled.
一段时间后,vCenter HA节点均可供存取,Active Node主动节点、
Passive Node被动节点角色恢复正常且已启用複写,
再次启用vCenter Server HA自动容错移转保护。
http://img2.58codes.com/2024/20103019H5NtZjSZhw.png

Shut down the nodes in order.
如何按顺序关闭vCenter HA丛集节点。
如果必须将vCenter Server HA丛集中所有节点重新开机,则必须遵循特定关闭顺序,
防止被动节点承担主动节点的角色。
1.以此顺序关闭节点:
(1) Passive Node被动节点
(2) Active Node主动节点
(3) Witness Node见证节点
2.重新启动每个节点:您可以任何顺序重新启动节点

Maintenance mode维护模式:
会启用Active Node主动节点与Passive Node被动节点之间的複写,
但已停用自动容错移转,即使Passive Node被动节点和
Witness Node见证节点均无法使用,主动节点仍会继续正常执行.
设定方式:
1.请点选:ESXi Host➤Configure设定➤vCenter Server HA➤Edit编辑
http://img2.58codes.com/2024/20103019k1XRK7KY1R.png

2.Edit Change the operating mode of vCenter HA to maintenance mode
将vCenter HA的作业模式变更为维护模式,
选择完成请点选OK,继续下一步。
http://img2.58codes.com/2024/20103019vadUCwICBd.png

各节点系统(Active Node、Passive Node、Witness Node)
进入Maintenance mode维护模式:
http://img2.58codes.com/2024/20103019vb13hk1YPx.png

3.各节点启动完成后,请点选:
ESXi Host➤Configure设定➤vCenter Server HA➤Edit编辑
选择启用vCenter Server HA,继续运作高可用性保护容错移转架构。

Remove a vCenter HA Configuration. 如何移除vCenter HA高可用性保护
如上图:
1.请点选:ESXi Host➤Configure设定➤vCenter Server HA➤Edit编辑
2.请点选移除 Remove vCenter HA
主动、被动和见证节点移除 vCenter HA 丛集的组态
主动节点做为独立 vCenter Server Appliance 继续执行
即使在设定程序中已新增第二个虚拟 NIC,移除程序也不会移除此虚拟NIC

结语
透过vCenter High Availability (vCenter HA)高可用性保护架构进行容错移转时,
虽然vCenter Server、vSphere Web Client和其它服务将会短暂数分钟的时间无法使用,
但此vCenter ServerHA架构非常实用,相信大家会非常喜欢,
请试试看专属新版VMware vCenter Server Appliance 6.5才有的功能:
vCenter Server High Availability高可用性保护架构

参考资料:
1.VMware vSphere Blog:What's New in vSphere 6.5: vCenter Server
2.featurewalkthrough.vmware.com:Enabling vCenter HA-Basic
3.VMware vSphere 6.5 Documentation
4.vSphere可用性指南

本文完整章节发布于:Lab-VM Testing Blog


关于作者: 网站小编

码农网专注IT技术教程资源分享平台,学习资源下载网站,58码农网包含计算机技术、网站程序源码下载、编程技术论坛、互联网资源下载等产品服务,提供原创、优质、完整内容的专业码农交流分享平台。

热门文章