Applicable Products
- QuTS hero h5.3.0 or later
- High Availability Manager
Scenario
I have set up a QNAP high-availability (HA) cluster and want to confirm it’s working correctly. What are the recommended ways to test its functionality?
Procedure
To confirm your HA cluster is working correctly, perform the following tests.
Tip
- Always perform a full data backup before initiating any HA-related tests to prevent data loss.
- If your HA cluster is operating in a production environment, avoid simulating power or network failures directly. Perform these tests in a non-production environment if possible.
- During testing, closely monitor event logs and status changes in High Availability Manager.
Test 1: Manual switchover
This test verifies that the switchover mechanism is working properly.
- Go to High Availability Manager > Cluster.
- Confirm the statuses of the current active and passive nodes.
- Click Manage, and then select Switch Over.
- After the switchover is complete, verify the following:
- The cluster status is "Good".
- Services continue without interruption.
Test 2: Automatic failover
This test verifies that the failover mechanism is working properly.
- Simulate active node failure by performing one of the following:
- Unplug the network cable from the active node.
- Force the active node to shut down by pressing the physical power button for 10 seconds.
- Log in to the passive node.
- Go to High Availability Manager > Cluster.
- Verify the following:
- The passive node has become the new active node.
- The original active node is offline.
Test 3: Automatic rejoin after reconnecting offline node
This test verifies that after an offline node is reconnected to the cluster, it will automatically rejoin the cluster, and the cluster will resume HA functionality.
- After performing test 2, do one of the following:
- Reconnect the network cable to the offline node.
- Power on the offline node.
- On the other node, go to High Availability Manager > Cluster.
- Verify the following:
- The previously offline node automatically rejoins the cluster as the passive node.
- After synchronization is complete, the cluster status is "Good".
Further Reading
适用产品
- QuTS hero h5.3.0 or later
- High Availability Manager
场景
我已经设置了一个 QNAP 高可用性 (HA) 群集,并希望确认其正常工作。推荐的测试其功能的方法有哪些?
步骤
要确认您的 HA 群集 正常工作,请执行以下测试。
提示
- 在进行任何与 HA 相关的测试之前,请始终进行完整的数据备份以防止数据丢失。
- 如果您的 HA 群集 在生产环境中运行,请避免直接模拟电源或网络故障。如有可能,请在非生产环境中进行这些测试。
- 在测试期间,密切监控 High Availability Manager 中的事件日志和状态变化。
测试 1:手动切换
此测试验证切换机制是否正常工作。
- 前往High Availability Manager > 群集.
- 确认当前活动节点和被动节点的状态。
- 点击管理, 然后选择切换.
- 切换完成后,验证以下内容:
测试 2:自动 故障转移
此测试验证 故障转移 机制是否正常工作。
- 通过执行以下操作之一模拟活动节点故障:
- 拔掉活动节点的网络电缆。
- 按住物理电源按钮 10 秒钟强制关闭活动节点。
- 登录到被动节点。
- 前往High Availability Manager > 群集.
- 验证以下内容:
测试 3:重新连接离线节点后的自动重新加入
此测试验证离线节点重新连接到 群集 后,它将自动重新加入 群集,并且 群集 将恢复 HA 功能。
- 在执行测试 2 后,执行以下操作之一:
- 在另一个节点上,前往High Availability Manager > 群集.
- 验证以下内容:
- 先前离线的节点自动重新加入 群集 作为被动节点。
- 同步完成后,群集 状态为 "良好"。
进一步阅读