Nodes
The Nodes page shows one card per node and, below them, how to add another.
The node card
| Item | Meaning |
|---|---|
| Primary / Secondary, version | The node's role, and the staxmax version it runs. this node marks the node serving the page. |
| Online / Offline / Maintenance | Whether the node serving the page hears it, or that it is in maintenance. |
| Router | Whether the node reaches the router (its default gateway): Reachable, Unreachable, or Unknown while the node is offline. |
| Running VMs, CPU threads, model, CPU and GPU | What it runs, the machine's manufacturer and model (when its firmware reports one), its processor and its GPUs, if any. Live moves need the same CPU model on both nodes; a container that uses the node's GPU (see Containers) only starts on a node that lists one. |
| Serial number and MAC | The machine's serial number (S/N) and the network port the cluster uses with its MAC address. Both are usually printed on the sticker underneath the machine. |
| Smart plug | The plug that can cut its power, or None. Shown once there are two or more nodes. |
| Disk | The health of its storage pool, as ZFS reports it: Healthy, Errors (its disk returned read, write or checksum errors), or the pool's state when it is not online (Degraded, Faulted). Under the meters: when the disk was last checked and what that found. |
| Heartbeat paths | On the other nodes' cards: each address the node serving the page uses to reach that node, with its latency or No response. A Direct cable is a cable between spare ports, found automatically. |
| CPU, Memory, Storage | How busy the node's processor is across all its threads, and use of its memory and its VM storage pool. CPU appears a few seconds after the node comes online. |
The buttons at the bottom are Identify, Check disk, Settings, Maintenance and Retire.
Check disk reads everything on the node's storage pool and checks it against its checksums (a ZFS scrub), in the background; VMs keep running, a little slower, and the card shows how far it has got. It takes from minutes to a few hours, depending on how much is stored. Ubuntu already does this on the second Sunday of every month, so you only need it after a scare, such as a power cut. If it finds damage, the A disk has errors alarm says so: move the node's VMs off with maintenance (a protected VM's copy on another node is intact), check or replace the disk, then run sudo zpool clear <pool> on the node to reset the counts.
Identify blinks the light on the node's network port for 20 seconds, so you can tell which machine on the shelf it is; choose Stop blinking to end it sooner. It appears when the node's network card can do this (most can; if one turns out not to, the button goes away). The machine's name and dashboard address also appear above the login prompt on its screen, if you plug in a monitor.
When an installed system update (usually a new kernel) waits for the node to restart, the card says A system update is installed and takes effect once node restarts, with the day it has waited since. Put the node in maintenance with the Maintenance button in that notice, click Restart now once it runs nothing, and end maintenance when it is back. While any node waits, a notice above the cards also offers Restart all nodes (Restart this node on a single node), which restarts every node at once and stops everything running for a few minutes. See System updates.
Maintenance and Retire appear once there are two or more nodes, and Maintenance only while the node is online and not already in maintenance.
How the cluster decides who keeps running depends on its size; the text at the top of the page says which applies. With two nodes, the router breaks a tie. With three or more, a majority decides. See Failover.
Node settings
Click Settings on a node's card.
Name
Starts with a letter and ends with a letter or digit; letters, digits and dashes, up to 63 characters. Renaming this node reaches the others within a second. Renaming another node needs it online, since it renames itself.
Heartbeat paths
Shown for the other nodes only. These are the addresses (like 10.99.0.2:7443) this node uses to reach that node, checked every second. They are stored on this node only.
- Two paths, such as a second network plus your LAN, keep one unplugged cable from causing a failover.
- Addresses the other node announces are added on their own. Remove one it can't be reached on and it stays removed; it then appears under Not used, with Use again to bring it back.
- A direct cable between spare ports is found on its own and needs no address.
At least one address is needed. See Networking.
Smart plug
Optional, and recommended. Tick node is powered by a smart plug, choose the Plug type (Shelly) and give the Address of the plug, like http://192.168.1.60. Before taking over that node's VMs, another node switches its power off with the plug, so two nodes can never run the same VM. The plug must be reachable from the other nodes, and must really power that node: if the machine still answers on the network after the plug reports off, its VMs are not taken over.
Click Save.
Add a node
The card at the bottom is Add a second node on a single node, or Add a node once there are two or more.
- Click Show the join command.
- On the new machine (Ubuntu 24.04/26.04 or Debian 12/13, on the same network), run the command in a terminal. It installs staxmax from this node and joins it to the cluster.
- The command works until the time shown. Create a new token makes a fresh one.
Add --disk /dev/nvme1n1 to the command to give the VMs a whole disk (it is wiped; otherwise they get a file on the system disk), or --name node-3 to name the node something other than its hostname.
Or click Add it over SSH to have this node do it for you: give the new machine's Address, and a User and Password that may use sudo there, and click Connect. staxmax signs in, shows the machine (name, system, SSH host key) and its disks. Pick the Node name and the Storage for VMs (free space on the system disk, all or part of it, or a whole disk), then click Install and join. The output shows as it runs, and you can close the window: the card shows its progress. The password is only used for this and is never saved.
To install staxmax yourself instead, open Install it yourself instead, copy the token, run the staxmax .run installer on the new machine, open its web page, choose Join an existing cluster and paste the token.
Every node must be online while a node joins. A new node starts empty; new VMs, moves and failovers can use it. Going from two nodes to three switches the cluster from the router tiebreaker to a majority. See Adding nodes.
Retire a node
Retire is for a machine leaving the cluster for good. It is offered once there are two or more nodes, but a cluster needs at least two nodes, so a node can only be removed from a cluster of three or more. To replace a node in a two-node cluster, add the new machine first, then retire the old one.
The dialog walks through three steps:
- Move its VMs off: click Start maintenance. Each VM moves to the node holding its copy, one at a time, with about 20 seconds of downtime each. If the node is already offline but still owns VMs, wait for failover or force start them from Virtual machines (see Force start after a failure).
- Shut it down: run
sudo poweroffon the node, or switch it off. The step turns green when the other nodes stop hearing it. - Remove it from the cluster: click Remove node. The button works once the node is offline and owns no VMs, and every other node must be online. Do this from another node's page, since the retired node's page goes away when it shuts down.
Every VM whose copy the retired node held gets a new copy elsewhere. If the machine is switched on again later, it keeps its VMs stopped and has to be set up again.