检查灾难恢复配置的状态
检查灾难恢复配置的状态:
启动灾难恢复过程以确保灾难恢复配置准确后,正在复制文件,并且灾难恢复监视器正在监视灾难恢复设置
停止灾难恢复过程后,确保文件复制和灾难恢复监视程序已停止
执行命令 jmp-dr health
以检查灾难恢复配置的状态。此命令检查异步数据复制、文件传输和灾难恢复监视器的状态,以及群集在灾难恢复设置中的作用。命令输出中列出了在命令执行期间发现的错误。
注意:
如果已执行命令并且正在执行,则执行 jmp-dr health
另一个 jmp-dr health
命令可能会显示不正确的输出。命令 jmp-dr health
的输出还会列出是否正在执行命令的另一个实例。
要检查站点灾难恢复配置的状态,请执行以下操作:
- 在配置 VIP 或 eth0:0 接口的站点上登录 Junos Space 节点的 CLI。
将显示 Junos Space 设置菜单。
- 使用虚拟设备时,在 Junos Space 设置菜单提示符下输入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
系统将提示您输入管理员密码。
- 输入管理员密码。
- 在外壳提示符下输入
jmp-dr health
。Junos Space 平台检查站点灾难恢复配置的状态(总体运行状况)。
以下是启动灾难恢复过程并在活动站点上执行命令后命令的示例
jmp-dr health
输出:[user1@host]# jmp-dr health The DR role of this site: active The DR state of this site: started The status of DR watchdog: ready The status of DR remote site: up Check admin password of DR remote site [ OK ] Check mysql ca and server certificates [ OK ] Check mysql replication users [ OK ] Check file replication: backup cron job should be added [ OK ] Check mysql replication: node (10.206.41.221, user1@host) and peer node of same site (10.206.41.222, user2@host) should be master-master [ OK ] Check pgsql replication: Pgsql replication betwwen this node (10.206.41.221, user1@host) and peer node of same site (10.206.41.222, user2@host) should be master-slave. [ OK ] Services (jboss, jboss-dc, etc.) should be up [ OK ] DR watchdog should be up [ OK ] Command completed.
以下是启动灾难恢复过程并在备用站点执行命令后命令的示例
jmp-dr health
输出:[user3@host]# jmp-dr health The DR role of this site: standby The DR state of this site: started The status of DR watchdog: ready The status of DR remote site: up Check admin password of DR remote site [ OK ] Check mysql ca and server certificates [ OK ] Check mysql replication users [ OK ] Check file replication: poll cron job should be added [ OK ] Check mysql replication: node (10.206.41.226, user3@host) and peer node of same site (10.206.41.227, user4@host) should be master-slave, and node (10.206.41.226, user3@host) and mysql VIP node of remote site (10.206.41.220) should be slave-master [ OK ] Check pgsql replication: Pgsql replication between node (10.206.41.226, user3@host) and peer node of same site (10.206.41.227, user4@host) should be master-slave, and replication node (10.206.41.226, user3@host) and pgsql VIP node of remote site (10.206.41.220) should be slave-master [ OK ] Services (jboss, jboss-dc, etc.) should be down [ OK ] DR watchdog should be up [-] [ OK ] Command completed.
以下是停止灾难恢复过程并在活动站点上执行命令后命令的示例
jmp-dr health
输出:[user2@host]# jmp-dr health The DR role of this site: active The DR state of this site: stopped The status of DR watchdog: ready The status of DR remote site: up Check admin password of DR remote site [ OK ] Check mysql ca and server certificates [ OK ] Check mysql replication users [ OK ] Check file replication: cron jobs should be removed [ OK ] Check mysql replication: node (10.206.41.222, user2@host) and peer node of same site (10.206.41.221, user1@host) should be master-master [ OK ] Services (jboss, jboss-dc, etc.) should be up [ OK ] DR watchdog should be down [ OK ] Command completed.
以下是停止灾难恢复过程并在备用站点执行命令后命令的示例
jmp-dr health
输出:[user3@host]# jmp-dr health The DR role of this site: standby The DR state of this site: stopped The status of DR watchdog: ready The status of DR remote site: up Check admin password of DR remote site [ OK ] Check mysql ca and server certificates [ OK ] Check mysql replication users [ OK ] Check file replication: cron jobs should be removed [ OK ] Check mysql replication: node (10.206.41.226, user3@host) and peer node of same site (10.206.41.227, user4@host) should be master-master [ OK ] Services (jboss, jboss-dc, etc.) should be down [ OK ] DR watchdog should be down [ OK ] Command completed.