障害回復構成のステータスの確認
災害復旧設定のステータスを確認します。
ディザスター リカバリー プロセスを開始して、ディザスター リカバリー構成が正確で、ファイルが複製され、ディザスター リカバリー ウォッチドッグが災害復旧設定を監視していることを確認した後
ディザスター リカバリー プロセスを停止した後、ファイル レプリケーションおよびディザスター リカバリー ウォッチドッグ プロセスが停止したことを確認します。
コマンドを jmp-dr health
実行して、災害復旧設定のステータスを確認します。このコマンドは、非同期データレプリケーション、ファイル転送、ディザスターリカバリーウォッチドッグのステータスと、災害復旧セットアップにおけるクラスタの役割を確認します。コマンド実行中に検出されたエラーは、コマンド出力に表示されます。
コマンドを jmp-dr health
既に実行していて実行が進行中の場合、別 jmp-dr health
のコマンドを実行すると不正な出力が表示される可能性があります。コマンドからの出力には、 jmp-dr health
コマンドの別のインスタンスが実行されているかどうかも一覧表示されます。
サイトの災害復旧設定のステータスを確認するには、次の手順にしたがっています。
- VIP または eth0:0 が配置されたサイトの Junos Space ノードの CLI にログインします。インターフェイスが設定されています。
Junos Space 設定メニューが表示されます。
- Junos Space 設定メニュープロンプトで仮想アプライアンスを使用しながらを入力7すると、シェル コマンドが実行されます。
仮想アプライアンスからの出力例を以下に示します。
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.