šŸ“š Browse docs

Site Pairs

Pairs live under Sites & nodes in the sidebar (group Set up), on the Site pairs tab. That page manages the links between this controller and its peer recovery sites. Each pair is one production site ↔ one recovery site, drawn as the two sites with the Site Link between them. Click a pair to open its page, which has three tabs: Site Link, Protected guests and Settings.

Creating and joining

Both start from the Create or join a pair button at the top right of the Site pairs tab. It asks which you want (the button for a choice is greyed out, with No license slots available, when your licence has no room), then walks you through steps.

  • Create a pair on one side: give the pair a Pair name and choose This site’s role (Primary (production) or Recovery (DR); a primary can only pair with a recovery site, and the peer joins as the opposite role). Choosing Recovery also asks where replicas land. The next step shows this site’s Site Link address and the pairing code, once.
  • Join on the other side with that address and code. Enter the Site Link address of the other site (host:port) and the Pairing code, then choose this site’s role (Automatic takes the opposite of the peer). The last step shows The other site’s certificate fingerprint. Nothing else is needed. The joining controller connects to the address, so that port must be reachable from the joining site; after the pair exists, either direction is enough.

The joining site keeps the address you entered for the pair, whatever the other site’s Settings → Site Link say: it is the address the handshake proved works from here. The same goes for Reconnect with an address. When the other site moves its Site Link to a new port, this site tries the new port on the address it already uses first, and takes the other site’s advertised address only if that does not answer.

The two controllers pin each other’s fingerprints and bring up a mutually authenticated link. See Create a DR Site Pair for the full handshake and internet/tunnel guidance.

What a pair shows

Each row of the Site pairs tab shows the primary on the left and the recovery site on the right, marked you on this site, with the guest count under the primary and Recovery, ready or Recovery, N running here under the recovery site. The line between them is animated and shows the transfer rate while the Site Link is up, and sits still otherwise (the peer then reads Not answering, or Pair in error); hover it for the connection count or the last error. A pair the other site has not joined yet says it is waiting for the other site.

Opening a pair shows its name, a status pill if it is not active, and a Site Link pill (up, down or starting). The Protected guests tab lists the guests replicated over the pair with their status, size and when each was last received. The Settings tab holds the pair’s identifiers (role, peer address, fingerprint, UUIDs), the Licence seat card (Open licence), Manage this pair, this site’s name (it saves as you type), and a card titled Where copies land, and how they recover with the pair’s storage and replication settings, which save the moment you choose. If the two sites run different versions, a warning says so.

If the peer advertised its web console URL, Asternodis shows an open peer console link at the top of the pair’s page so you can jump to the other site’s UI in a click.

Driving DR from either site

Both sites run the identical web UI: same pages, same buttons. The Fail over entire site to … button at the top of a pair’s page (and Fail over a site… at the bottom of the sidebar) needs the operator role. You can drive every pair operation (failover, DR test, recovery points, re-IP, planned migration, protect/unprotect, failback) from whichever controller you can reach, so you’re never locked out of recovery.

Behind the scenes each action is carried out by the one controller that owns it, routed automatically over the pair’s authenticated link: recovery-side actions (failover, DR test, points) run on the recovery; source-side actions (protect, sync) run on the primary. Because every request funnels to that single owner, two operators (or both sites) can’t drive the same guest into a split-brain: a second attempt simply joins the operation already running. Each operation’s log names which controller actually ran it (e.g. ā€œrunning on asternodis-sfo (recovery)ā€), so it’s always clear where work happened.

A guest’s panel (on the Guests page) is the same on both sites: the same health, configuration, live metrics, run history, and operations, with each section talking to the correct controller.

Disaster mode: when the primary is gone

The whole point of DR is that the primary can be down. When it is, the recovery site stays fully operable on its own: pages render immediately instead of hanging on the unreachable peer, and failover, site-wide failover, DR tests, and recovery points all work locally. Source-owned actions (protect, sync) show a clear ā€œsource unreachableā€ state instead of spinning. Declaring a disaster offers a force failover that promotes the recovery copy without waiting on the dead primary. When the primary comes back, Asternodis reconciles cleanly, without double-fencing the guest.

Removing a pair

Remove pair… (in the More menu at the top of a pair’s page, or under Manage this pair on its Settings tab; admins only) asks you to confirm. Reconnect in the same places re-establishes trust if the peer was reinstalled or its certificate changed, and Re-home config… (shown when you have more than one pair) copies network maps, recovery plans and per-guest health and re-IP settings from another pair into this one. Deleting a pair unpairs both sides and stops replication over it. Guests protected only on that pair are no longer replicated. Asternodis also removes the pair’s key material (the TLS certificate that encrypts the disk-transfer connection between the sites, and any ZFS encryption key) while keeping the operation history of the guests that were protected across it.

A peer-link-degraded alert fires when the connection to the paired site is slow or unreachable, and clears itself once the link answers normally again, so a degraded link is visible before it costs a stopped guest a full reseed. A slow or momentarily unresponsive peer is never mistaken for a definite answer: aborting a failover, failing back, and the checks that decide whether a stopped guest needs re-seeding retry a flaky connection first, and refuse safely when the peer still doesn’t answer.

Each pair’s page opens on its Site Link tab, with a Site Link card, identical on both consoles. The Site Link is the one connection the two controllers keep between the sites (on the peer port), and replication, failback, restore in place and container transfers can all travel through it, so it is the only network path that has to be open between the sites. The card shows:

  • State: up or down, how many connections are open and which site opened them, and, when it is down, the last error and whether this site is trying to open the connection. Either controller may dial; a primary behind a NAT dials out to a reachable recovery site. When this site cannot reach the other site’s port (a firewall that blocks only that direction) but the other site can reach this one, the link is up through the connections the other site opened, and the card says that this site cannot reach the other and why. The link works either way.
  • Mode, an admin setting for the pair that is kept the same at both sites (a change on one console shows on the other, and is audited at both):
    • Auto (the default) uses the direct node-to-node paths for a direction only when the pair’s latest network check proved every node pair open in that direction, and the Site Link for everything else.
    • Site Link only always uses the Site Link.
    • Direct only always connects node to node, as before the Site Link existed.
  • Path in use, per direction (primary to recovery, recovery to primary), with the reason in words, and what the network check says about the direct path.
  • Traffic: what the link is receiving and sending now, the streams open, and the totals since the controller started, and how many of the controllers’ own control requests to each other the link carried.
  • Test link, which runs the network check (operators and admins) and refreshes the card.

The network check is the second card on the same tab. Auto reads the network check, so it never needs a probe of its own: the primary starts a check shortly after the pair becomes active and repeats it daily, and a check run from either console is shared with the other site. A direction counts as proven open only when every node pair it needs answered, with no node left out (a node that is offline was not tested, so it proves nothing) and no warning; a result that is unknown, failed, partial or older than three days is not proven, and Auto uses the Site Link. The age limit rides out a missed daily check without sending every pair through the Site Link. If a direct path fails while it is in use, the transfer falls back to the Site Link.

The control calls use the link too. Every request one controller makes to the other (the network check, recovery points, fencing, status) goes through the Site Link when it is up, so a controller that cannot open a connection to the other still reaches it through the one the other opened. When the link is down, or the pair is set to Direct only, they connect to the peer address directly, as before, and a Site Link that is up but not answering costs one short wait every few seconds, not one per request. The card shows the latest request that did not use the link and why, so a call that dials directly while the link is up is never silent. A stream open that takes more than two seconds is recorded with where the time went (the other site’s serving, the connection’s writes, or this controller being starved of CPU), and the card shows the slowest recent one. The other site must run a version that supports this; with an older one the control calls stay direct and the first attempt is noted in the controller’s log.

The Site Link relays data through both controllers, so its speed is bounded by their CPU and network and by the round-trip time between the sites. A controller relays only encrypted bytes: each VM disk stream keeps its own TLS from node to node inside the link, and container transfers are SSH carried through it. Where the nodes can reach each other, opening the direct paths lets a pair skip the controllers.

Measure link speed (operators and admins), on the Site Link card, measures how fast the two sites can move data, in each direction, by each path, and changes nothing:

  • Node to node, plain: plain TCP between a node at each site, on a port from the receiving site’s data range. The most the network can carry.
  • Node to node, with TLS: the same with the TLS the disk streams use.
  • Through the Site Link: the same TLS stream, relayed by the two controllers.

Choose how much test data each path sends (2 GiB by default). The result shows each path’s speed and time, where the time went (which processor was busiest, on the nodes and on each controller), and what the Site Link cost against the plain network. A path that did not complete says why and shows no speed. A speed test fills the link, so it is refused while a seed or other large transfer is running on the pair, and Cancel stops it and cleans up what it started. If a controller is a Proxmox VM whose CPU type lacks the PCLMULQDQ instruction, the result says that encryption ran in software and how to fix it: set the VM’s CPU type to host.

Network check

The direct node-to-node paths use TCP connections between the nodes of the two sites (one port per disk, in both directions) and SSH between nodes for containers and native-ZFS guests. The Network check card, on both consoles, finds out now whether they are open, and is what Auto mode reads. Run network check (operators and admins) tests both directions and says exactly what to open, including the firewall rule to paste where Asternodis knows the node runs pve-firewall. It changes nothing: it holds a few ports open on each site’s nodes for a minute or two and closes them itself. A daily check runs on its own and a new pair starts one; the card attaches to a check that is already running rather than starting a second. The report gives a verdict, the fix for each closed link, and an Addresses used table showing the address each node is dialled at and where it came from; an admin can Set data address for a node of this site when the other site can’t use the derived one.

A closed direct path matters only where it is used. In Direct only mode a path the check proves closed raises the critical data_path_blocked alert and a seed that would use it is refused before anything is changed. Where the Site Link carries that direction (Site Link only, or Auto when the check did not prove the direct path open) and the link is up, closed node ports are not a fault: no alert is raised and an alert standing from before is resolved. A check that could not finish says so and proves nothing either way. The port range and the data addresses are set under Settings.

Next: Replication to protect guests and drive recovery.