1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

ライブマイグレーションをテストする

Posted at

VMインスタンスでpingコマンドを実行する

ライブマイグレーション中にVMインスタンスで実行中の処理が停止するか試してみるため、VMインスタンスでpingコマンドを実行します。

% ping 8.8.8.8

Colud Shellからメンテナンスイベントのシミュレートコマンドを実行する

% gcloud compute instances simulate-maintenance-event [インスタンス名] --zone=[Zone名]
Simulating maintenance on instance(s) [https://compute.googleapis.com/compute/v1/projects/xxxxxxxxx/zones/xxxxxx/instances/xxxxxx]...done.  

コマンド実行後のログを確認する

VMインスタンスのページの「オペレーション」-「ログを表示」をクリックしてください。
スクリーンショット 2023-09-10 7.23.22.png

クエリに以下を入力してください。

(resource.type="gce_instance")
(operation.producer="compute.instances.migrateOnHostMaintenance")

コマンドの実行結果がログに出力されています。
スクリーンショット 2023-09-10 7.27.11.png

以上です。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?