お金をかけずにサーバーの勉強をしよう

PROXMOX9 クラスター 6

2025年8月31日

メニューへ戻る

PROXMOXクラスターの機能を試してみます。

PROXMOX9 クラスター 1」で、PROXMOXクラスター環境を設計し、
PROXMOX9 クラスター 2」で、FreeNASを使って iSCSIの共有ディスクを作り、
PROXMOX9 クラスター 3」で、PROXMOXサーバーを 3台作り、
PROXMOX9 クラスター 4」で、クラスターの設定をし、
PROXMOX9 クラスター 5」で、共有ディスク上に仮想マシンを作って Windows Server 2025をインストールしました。

ここまでで、ネットワーク的にはこんな環境ができあがっています。
構成 1

仮想環境はこんな感じになっています。
構成 2
Windows Server 2025の仮想OSは、[proxmox3]サーバーの CPUとメモリを使いながら、ディスクはクラスタで共有している FreeNASの iSCSIストレージに配置されています。

こういった構成を取る仮想基盤の特筆すべき機能に、VMwareでは「vMotion」と言い、PROXMOXでは「マイグレーション」と言う仮想OSが稼働したままサーバー間を移動させられるというのがあります。
構成 3
「ハァ?!」ってにわかには信じ難いですが、物理ハードウェアと OSの間に仮想的なハードウェアを挟む構成でこのような事が可能になっています。

論より証拠でやってみるのが早いですね。


ここまで作った環境で、現在 [proxmox3]サーバーで [100 (Win2025-1)]って名前で Windows Server 2025の仮想マシンが立ち上がっている状態からスタートします。

外部から Windows Server 2025にアクセスしている状態を作っておくと、マイグレーション時に通信が切れなかったよって証拠になるので、VMware Workstation ProのホストOSの Windows 10で、リモートデスクトップを使って Windows Server 2025にログオンしておきました。
リモートデスクトップ

なお、CD/DVDドライブを利用している仮想マシンをマイグレーションすることができない、という前提があります。
よく考えてみると当たり前ですが。

Windows Serve 2025のインストール時にインストールメディアファイルを使いっ放し(DVDドライブを使ってる)状態ですので、DVDを取り出すアクションをしておきます。

[データセンター] - [proxmox3] - [100 (Win2025-1)] - [ハードウェア] と選択し、[CD/DVDドライブ]行をダブルクリックします。
マイグレーション 1

[メディアを使用しない] を選択し、OKを押します。
マイグレーション 2

この部分が [none] になればOKです。
マイグレーション 3

もう一台の [CD/DVD ドライブ(ide2)] も同様にやっておきます。


ではいよいよマイグレーションします。

[データセンター] - [proxmox3] - [100 (Win2025-1)] を選択し、マイグレートを押します。
マイグレーション 4

[ターゲットノード:] に行き先の PROXMOXサーバーを指定します。
今回は [proxmox2]サーバーにしました。
マイグレートを押します。
マイグレーション 5

ホストOSの CPU負荷です。重ぉ…
ホストOSの CPU使用率

[TASK OK] になれば完了です。
メモリが 4GBの仮想マシンで 30秒くらいかかりました。
私の環境はかなり無理させているので、ちゃんとした環境ならずっと速いんじゃないでしょうか。
×で閉じます。
マイグレーション 6
なお、ログの全体がこれです。
[proxmox3]サーバーから、対象の仮想マシンのメモリ内容を [proxmox2]サーバーに全コピしているのでしょう。

2025-08-31 11:12:32 starting migration of VM 100 to node 'proxmox2' (192.168.1.152)
2025-08-31 11:12:32 starting VM 100 on remote node 'proxmox2'
2025-08-31 11:12:35 [proxmox2] Task finished with 1 warning(s)!
2025-08-31 11:12:35 start remote tunnel
2025-08-31 11:12:36 ssh tunnel ver 1
2025-08-31 11:12:36 starting online/live migration on unix:/run/qemu-server/100.migrate
2025-08-31 11:12:36 set migration capabilities
2025-08-31 11:12:36 migration downtime limit: 100 ms
2025-08-31 11:12:36 migration cachesize: 512.0 MiB
2025-08-31 11:12:36 set migration parameters
2025-08-31 11:12:36 start migrate command to unix:/run/qemu-server/100.migrate
2025-08-31 11:12:37 migration active, transferred 45.3 MiB of 4.0 GiB VM-state, 45.2 MiB/s
2025-08-31 11:12:38 migration active, transferred 103.2 MiB of 4.0 GiB VM-state, 74.0 MiB/s
2025-08-31 11:12:39 migration active, transferred 168.4 MiB of 4.0 GiB VM-state, 61.1 MiB/s
2025-08-31 11:12:40 migration active, transferred 227.1 MiB of 4.0 GiB VM-state, 57.9 MiB/s
2025-08-31 11:12:41 migration active, transferred 291.0 MiB of 4.0 GiB VM-state, 69.5 MiB/s
2025-08-31 11:12:42 migration active, transferred 350.2 MiB of 4.0 GiB VM-state, 64.0 MiB/s
2025-08-31 11:12:43 migration active, transferred 415.6 MiB of 4.0 GiB VM-state, 69.7 MiB/s
2025-08-31 11:12:44 migration active, transferred 465.6 MiB of 4.0 GiB VM-state, 70.3 MiB/s
2025-08-31 11:12:45 migration active, transferred 515.3 MiB of 4.0 GiB VM-state, 52.8 MiB/s
2025-08-31 11:12:46 migration active, transferred 565.4 MiB of 4.0 GiB VM-state, 55.1 MiB/s
2025-08-31 11:12:47 migration active, transferred 620.4 MiB of 4.0 GiB VM-state, 49.7 MiB/s
2025-08-31 11:12:48 migration active, transferred 686.7 MiB of 4.0 GiB VM-state, 84.8 MiB/s
2025-08-31 11:12:49 migration active, transferred 758.3 MiB of 4.0 GiB VM-state, 70.5 MiB/s
2025-08-31 11:12:50 migration active, transferred 823.5 MiB of 4.0 GiB VM-state, 76.3 MiB/s
2025-08-31 11:12:51 migration active, transferred 887.7 MiB of 4.0 GiB VM-state, 59.2 MiB/s
2025-08-31 11:12:52 migration active, transferred 942.2 MiB of 4.0 GiB VM-state, 95.7 MiB/s
2025-08-31 11:12:53 migration active, transferred 1010.4 MiB of 4.0 GiB VM-state, 74.7 MiB/s
2025-08-31 11:12:54 migration active, transferred 1.1 GiB of 4.0 GiB VM-state, 80.3 MiB/s
2025-08-31 11:12:55 migration active, transferred 1.1 GiB of 4.0 GiB VM-state, 90.2 MiB/s
2025-08-31 11:12:56 migration active, transferred 1.2 GiB of 4.0 GiB VM-state, 92.7 MiB/s
2025-08-31 11:12:57 migration active, transferred 1.3 GiB of 4.0 GiB VM-state, 77.0 MiB/s
2025-08-31 11:12:58 migration active, transferred 1.3 GiB of 4.0 GiB VM-state, 89.7 MiB/s
2025-08-31 11:12:59 migration active, transferred 1.4 GiB of 4.0 GiB VM-state, 58.5 MiB/s
2025-08-31 11:13:00 migration active, transferred 1.5 GiB of 4.0 GiB VM-state, 74.1 MiB/s
2025-08-31 11:13:01 migration active, transferred 1.5 GiB of 4.0 GiB VM-state, 67.3 MiB/s
2025-08-31 11:13:02 migration active, transferred 1.6 GiB of 4.0 GiB VM-state, 88.0 MiB/s
2025-08-31 11:13:03 migration active, transferred 1.6 GiB of 4.0 GiB VM-state, 71.2 MiB/s
2025-08-31 11:13:04 migration active, transferred 1.7 GiB of 4.0 GiB VM-state, 71.5 MiB/s
2025-08-31 11:13:05 migration active, transferred 1.8 GiB of 4.0 GiB VM-state, 59.9 MiB/s
2025-08-31 11:13:06 migration active, transferred 1.8 GiB of 4.0 GiB VM-state, 169.6 MiB/s
2025-08-31 11:13:07 migration active, transferred 1.9 GiB of 4.0 GiB VM-state, 54.7 MiB/s
2025-08-31 11:13:08 migration active, transferred 1.9 GiB of 4.0 GiB VM-state, 64.6 MiB/s
2025-08-31 11:13:09 migration active, transferred 2.0 GiB of 4.0 GiB VM-state, 67.9 MiB/s
2025-08-31 11:13:10 migration active, transferred 2.0 GiB of 4.0 GiB VM-state, 62.0 MiB/s
2025-08-31 11:13:11 migration active, transferred 2.1 GiB of 4.0 GiB VM-state, 50.1 MiB/s
2025-08-31 11:13:12 migration active, transferred 2.2 GiB of 4.0 GiB VM-state, 48.7 MiB/s
2025-08-31 11:13:13 migration active, transferred 2.2 GiB of 4.0 GiB VM-state, 68.9 MiB/s
2025-08-31 11:13:14 migration active, transferred 2.3 GiB of 4.0 GiB VM-state, 80.6 MiB/s
2025-08-31 11:13:15 migration active, transferred 2.4 GiB of 4.0 GiB VM-state, 72.4 MiB/s
2025-08-31 11:13:16 migration active, transferred 2.4 GiB of 4.0 GiB VM-state, 59.5 MiB/s
2025-08-31 11:13:17 migration active, transferred 2.5 GiB of 4.0 GiB VM-state, 60.5 MiB/s
2025-08-31 11:13:18 migration active, transferred 2.5 GiB of 4.0 GiB VM-state, 58.4 MiB/s
2025-08-31 11:13:19 migration active, transferred 2.6 GiB of 4.0 GiB VM-state, 90.5 MiB/s
2025-08-31 11:13:20 migration active, transferred 2.7 GiB of 4.0 GiB VM-state, 93.8 MiB/s
2025-08-31 11:13:21 migration active, transferred 2.7 GiB of 4.0 GiB VM-state, 79.9 MiB/s
2025-08-31 11:13:22 migration active, transferred 2.8 GiB of 4.0 GiB VM-state, 63.2 MiB/s
2025-08-31 11:13:23 migration active, transferred 2.9 GiB of 4.0 GiB VM-state, 71.5 MiB/s
2025-08-31 11:13:24 migration active, transferred 2.9 GiB of 4.0 GiB VM-state, 69.2 MiB/s
2025-08-31 11:13:25 migration active, transferred 3.0 GiB of 4.0 GiB VM-state, 64.9 MiB/s
2025-08-31 11:13:26 migration active, transferred 3.0 GiB of 4.0 GiB VM-state, 61.6 MiB/s
2025-08-31 11:13:27 migration active, transferred 3.1 GiB of 4.0 GiB VM-state, 72.1 MiB/s
2025-08-31 11:13:28 migration active, transferred 3.2 GiB of 4.0 GiB VM-state, 61.0 MiB/s
2025-08-31 11:13:29 migration active, transferred 3.2 GiB of 4.0 GiB VM-state, 47.9 MiB/s
2025-08-31 11:13:30 migration active, transferred 3.3 GiB of 4.0 GiB VM-state, 60.5 MiB/s
2025-08-31 11:13:31 migration active, transferred 3.3 GiB of 4.0 GiB VM-state, 57.0 MiB/s
2025-08-31 11:13:32 migration active, transferred 3.4 GiB of 4.0 GiB VM-state, 47.2 MiB/s
2025-08-31 11:13:33 migration active, transferred 3.4 GiB of 4.0 GiB VM-state, 58.1 MiB/s
2025-08-31 11:13:34 migration active, transferred 3.5 GiB of 4.0 GiB VM-state, 81.9 MiB/s
2025-08-31 11:13:35 migration active, transferred 3.6 GiB of 4.0 GiB VM-state, 51.9 MiB/s
2025-08-31 11:13:36 migration active, transferred 3.6 GiB of 4.0 GiB VM-state, 58.6 MiB/s
2025-08-31 11:13:37 migration active, transferred 3.7 GiB of 4.0 GiB VM-state, 75.5 MiB/s
2025-08-31 11:13:38 migration active, transferred 3.7 GiB of 4.0 GiB VM-state, 53.3 MiB/s
2025-08-31 11:13:38 xbzrle: send updates to 926 pages in 39.8 KiB encoded memory, cache-miss 80.68%
2025-08-31 11:13:39 average migration speed: 65.3 MiB/s - downtime 82 ms
2025-08-31 11:13:39 migration completed, transferred 3.7 GiB VM-state
2025-08-31 11:13:39 migration status: completed
2025-08-31 11:13:39 stopping migration dbus-vmstate helpers
2025-08-31 11:13:39 migrated 0 conntrack state entries
2025-08-31 11:13:42 flushing conntrack state for guest on source node
2025-08-31 11:13:47 migration finished successfully (duration 00:01:16)
TASK OK


[データセンター] - [proxmox2] の下に、[100 (Win2025-1)]が移動してきています。 マイグレーション 7

先にログオンしておいたリモートデスクトップは、何も無かったかのように普通に使えています!\(^o^)/


PROXMOX9 クラスター 7」につづきます。


==========
いや〜、タダでここまでできてしまうなんて素晴らしいです。

仮想OSの安定度合いも良いですし、PROXMOXは今後伸びるのではないか〜と思いました。

本当はこの後で、サーバーが障害で止まってしまったときに、他のサーバーで仮想OSが自動で起動するって High Availability(HA)の機能をやろうと思ったのですが、結構長くなってしまいました。