ユーザ用ツール

サイト用ツール


サイドバー

このページの翻訳:



最近の更新



Tag Cloud

50_dialy:2025:05:02

2025.05.02 KVM ホットマイグレーション終わらない

KVMでメモリが大量でメモリが頻繁に利用している場合マイグレーションが終わらない事があります。

現在の状態確認

この状態だと、ダウンタイムが0.3秒に収まるまでメモリをコピーしてから、切り替える設定になってます。
つまり、メモリが頻繁に利用されている場合、0.3秒内に収まらないと最後の切り替えを行わない。

# virsh qemu-monitor-command [ドメインID] --hmp --cmd "info migrate_parameters"
announce-initial: 50 ms
announce-max: 550 ms
announce-rounds: 5
announce-step: 100 ms
compress-level: 1
compress-threads: 8
compress-wait-thread: on
decompress-threads: 2
throttle-trigger-threshold: 50
cpu-throttle-initial: 20
cpu-throttle-increment: 10
cpu-throttle-tailslow: off
max-cpu-throttle: 99
tls-creds: ''
tls-hostname: ''
max-bandwidth: 134217728 bytes/second
downtime-limit: 300 ms
x-checkpoint-delay: 20000 ms
block-incremental: off
multifd-channels: 2
multifd-compression: none
xbzrle-cache-size: 67108864 bytes
max-postcopy-bandwidth: 0
tls-authz: ''

終わらない場合の対応方法

下記のコマンドで、ダウンタイムを3秒まで伸ばしてやると、メモリが頻繁に書き換えられてても3秒に収まれば、最終切り替えが実施されます。

virsh migrate-settime [ドメインID] 3000
50_dialy/2025/05/02.txt · 最終更新: 2025/05/02 21:01 by matsui