MetroCluster切回失败、并显示错误"command failed:switchback cannot be performed in the current DR mode"(命令失败:无法在当前灾难恢复模式下执行切回)
适用场景
- MetroCluster
- ONTAP 9
- 切回失败
问题描述
- MetroCluster切回失败、并显示以下错误:
*> metrocluster switchback
Error: command failed: Switchback cannot be performed in the current DR mode. Use the "metrocluster show" and "metrocluster node show" commands to view the DR mode of the local cluster and the DR mode of the local nodes respectively.
Use the "metrocluster switchback" command only if one of the following conditions are true:
1. The DR mode of all local nodes is "heal roots completed".
2. The DR mode of the local cluster is "normal".
3. The DR mode of the local cluster is "partial-switchback".
If the DR mode of all local nodes is "switchover completed", use the following commands to heal aggregates before using the "metrocluster switchback"command:
1. "metrocluster heal -phase aggregates"
2. "metrocluster heal -phase root-aggregates"
*> metrocluster node show
DR Configuration DR
Group Cluster Node State Mirroring Mode
----- ------- ------------------ -------------- --------- --------------------
1 XXX XXXconfigured enabled heal aggrs completed
XXX configured enabled heal aggrs completed
XXX
XXX configured enabled waiting for switchback recovery
XXX configured enabled waiting for switchback recovery
4 entries were displayed.
- 在初始尝试期间、观察到resync-status处于failed状态。
*> metrocluster config-replication resync-status show
Source Destination State % Complete
----------------------- ----------------------- ----------- ----------
XXX XXX failed -
XXX XXX complete -
- 尽管随后的模拟和实际切回操作成功、但最初尝试执行切回失败。