Homelab

Three nodes, one cluster

pve-1, pve-2 and pve-3 become the cluster loft, and four guests move off the old tower in one Saturday.

The three nodes from chapter 1 know nothing of each other yet. This chapter makes them one cluster called loft, so a guest can move from node to node while it runs, and every node sees the same configuration in /etc/pve.

Create it on pve-1

$ pvecm create loft

Join the other two

pve-2 and pve-3 each join by the address of a node already in the cluster. Each asks for that node’s root password once.

$ pvecm add 10.0.10.11

Check quorum

$ pvecm status
Cluster information
-------------------
Name:             loft
Config Version:   3
Transport:        knet
Secure auth:      on

Votequorum information
----------------------
Expected votes:   3
Highest expected: 3
Total votes:      3
Quorum:           2
Flags:            Quorate

Quorum: 2 is the line that matters. Any two nodes keep the cluster writable, so one can be off for an update.

Move the guests off the tower

The tower could not join the cluster, because a node with guests on it cannot. So every guest went the slow way: a dump to a USB disk, and a restore on its new node.

$ vzdump 101 --dumpdir /mnt/usb --mode stop --compress zstd
$ qmrestore /mnt/usb/vzdump-qemu-101-2026_05_09-10_02_11.vma.zst 101 --storage local-lvm

Four guests took one Saturday. Between the new nodes a live migration of Home Assistant takes 20 seconds:

$ qm migrate 101 pve-2 --online --with-local-disks

The tower stayed on for a week in case I had missed something. I had not, and it went to the recycling centre in Weststadt.

Comments

Buy Logbuch