ESC をメンテナンスモードにする
ESC データベースをバックアップおよび復元するには、ESC をメンテナンスモードにする必要があります。この操作を行うには、次のセクションで指定されているように、escadm ツールを使用します。
始める前に
(注) |
ESC リリース4.4 以降、HA アクティブ/スタンバイの切り替え前または DB の復元前に ESC がメンテナンスモードだった場合は、HA アクティブ/スタンバイの切り替え後または DB の復元後も ESC はメンテナンスモードのままになります。 |
メンテナンスモードの間、
-
ノースバウンド要求は ESC によってブロックされ、ESC はメンテナンスモード通知で応答します。
-
REST 要求のみが、ESC は一時的に使用不可になっているという応答を受信します。ConfD 要求は、メンテナンスモード拒否メッセージを取得するか、または(テナントがすでに存在する場合のテナント要求の作成など)すべての冪等要求に対する OK メッセージを取得します。
-
モニタリングアクションが一時停止されます。
-
すべての進行中の要求とトランザクションは、進行を継続します。
escadm ツールの使用
ESC は、escadm ツールを使用してメンテナンスモードにすることができます。
手順
ステップ 1 |
VM シェルから ESC をメンテナンスモードにします。
|
||
ステップ 2 |
操作モードを照会する場合にはいつでも、
例:
|
||
ステップ 3 |
実行中のトランザクションがないときに、メンテナンスモードにします。escadm ツールで ipt_check フラグを使用して、ESC に進行中のトランザクションがない場合にのみ、ESC をメンテナンスモードにすることができます。ESC に進行中のトランザクションがあり、ESC をメンテナンスモードにしない場合は、フラグを true に設定します。
[ipt_check] オプションが true に設定されている場合、escadm ツールは実行中の操作があるかどうかをチェックします。実行中の操作がある場合、escadm ツールは ESC をメンテナンスモードにしません。
|
ESC を操作モードにする
sudo escadm op_mode set --mode=operation
応答は次のとおりです。 Set mode to OPERATION
Operation Mode = OPERATION
curl -i -k --user {REST username}:{REST password} -X POST https:/{DMONA IP}:8443/mona/v1/rules/resume_all
(注) |
ESC 5.6 リリース以降、ESC が動作モードに設定されると、対応する D-MONA インスタンスも動作モードに設定されます。 ESC を動作モードに設定しているときに D-MONA に到達できない場合、次の警告が表示されます。
|
sudo escadm op_mode show