需要更新灾难恢复配置或将节点或应用程序添加至灾难恢复设置时,可从活动站点或待机站点停止灾难恢复过程。您可使用 jmp-dr stop
命令阻止这两个站点上的灾难恢复过程。停止灾难恢复过程并不能清理现场的灾难恢复配置。
命令 jmp-dr stop
执行以下操作:
在停止灾难恢复过程后,建议您在这两个站点执行 jmp-dr health
命令。这是为了确保停止文件复制、灾难恢复监督服务和其他服务。有关详细信息,请参阅 检查灾难恢复配置的状态。
- 登录活动站点(VIP 或 eth0:0)上的 Junos Space 节点 CLI接口已配置。
显示 Junos Space Settings Menu。
- 在 Junos Space Settings Menu 提示符处输入 6 (如果您使用硬件设备)或 7 (如果您使用虚拟设备)以运行 shell 命令。
以下是虚拟设备的示例输出:
admin@10.206.41.183's password:
Last login: Mon Aug 17 06:17:58 2015 from 10.206.41.42
Welcome to the Junos Space network settings utility.
Initializing, please wait
Junos Space Settings Menu
1> Change Password
2> Change Network Settings
3> Change Time Options
4> Retrieve Logs
5> Security
6> Expand VM Drive Size
7> (Debug) run shell
A> Apply changes
Q> Quit
R> Redraw Menu
Choice [1-7,AQR]: 7
系统会提示您输入管理员密码。
- 输入管理员密码。
- 在 shell 提示符处键入
jmp-dr stop
,然后按 Enter。
下面是示例输出:
[user1@host]# jmp-dr stop
Check status of DR remote site: up
Check DR stop mode: both
Check current DR role: active
Stop order: DR remote site and then current
INFO: => stop DR at remote site
Check status of DR remote site: up
Check DR stop mode: solo
Check current DR role: standby
Stop dr-watchdog [ OK ]
Stop mysql replication between sites [ OK ]
Stop pgsql replication between sites [ OK ]
Stop files & RRD replication [ OK ]
The stop command is done.
INFO: => stop DR at current site: active
Stop dr-watchdog [ OK ]
Stop files & RRD replication [ OK ]
The stop command is done.