Skip to content
Vaulthalla LogoVaulthalla

Linked servers and mirrored vaults

Two Vaulthalla servers can keep the same vault: one server is the vault's core, the other keeps a mirror, a copy that follows it. They do this over a link, a lasting, mutually pinned connection between exactly those two servers. Desktop offers the same actions as the web console's Linked servers pages, with the same rules and words.

Both servers need Vaulthalla 1.27 or later. An older node says so instead of showing an error. There is no server docs page on mirrors yet; the server's release notes for 1.27.1 and 1.28.0 describe them.

Linking is a handshake: each server records the other's key, and a super admin on each side approves. Accounts are shared as identities only. No vault is mirrored until one server offers it and the other accepts, and on a mirrored vault the linked server gets only the role chosen for it (none by default). A third server gains nothing.

Open All Nodes and choose Link Servers…. What happens next depends on where this Mac's account is a super admin:

One screen. Before Link is enabled it shows both servers by name and address, the key this Mac pins for each, and what each will hold, with the other's default role per direction ("No role" unless you choose one). Desktop then links them over its own connections, checking the code against the keys it already trusts.

One of the two servers must be able to reach the other: the same network, a VPN, or a forwarded port. All Nodes then lists each node's linked servers and their health, with Rename… and Unlink…. Two paired nodes that aren't linked get a quiet suggestion row with Link….

Mirror a vault

On the node that owns the vault, open Mirrored Vaults and choose Mirror a vault. Pick the vault and the Linked server that keeps the copy, then Offer it. The other server checks the offer; a super admin there accepts it, unless that server accepts every vault from this one. It then receives the vault's keys and copies the files. Until the first copy finishes, the mirror is read-only there.

On the receiving node, offers appear under Offers with their size, owner, proposed access and expiry. Accept creates the copy and receives the vault's keys; Decline tells the other server and copies nothing.

Per linked server settings decide how a server answers its peer:

Setting On
Accept every vault offers Offers from that server are accepted without asking a super admin here.
Keep the vaults removes When that server ends a mirror, the copy stays here as an orphaned copy.
Mirror every vault to This server offers every vault it owns, new ones included.

Follow a mirror

Mirrored Vaults lists each vault with the other server, this server's role (Core, Mirror, Orphaned copy, Starting, Detached), its state, pending changes, when the copies last agreed, and the link. The detail page explains the state in words and advises what to do next. The vault's inspector under Vaults says "Mirrored with ". A state the server didn't report reads Unknown: nothing is shown as healthy by guess.

Act on a mirror

The detail page offers only the actions that apply to the vault's role and state. Each asks for confirmation.

Action What it does
Switch the core… Moves the core role to the other server; the old core keeps a copy.
Take over as core… Makes this copy the core without the other server. Only if that server is gone for good or can't be reached.
Resync… Starts the copy over from the core's files. Changes only this copy had are kept as held changes.
Detach… Keeps this copy as a standalone vault on this server.
Detach a copy… Writes a new, separate vault from this copy; the mirror stays as it is.
Versions… Keeps previous versions of what the core replaces or deletes.
End the mirror… On the core: stops mirroring to the other server.
Remove the copy… On an orphaned copy: removes it and its keys from this server.
Cancel the start… Stops an offer before anything more is copied.
Held changes Changes made on the mirror that the core refused: Retry, Discard or Save their version.

Reconnect a once-mirrored pair

When a vault that was once mirrored should be mirrored with the same server again, and the two copies have drifted apart, Reconnect… on the detail page mirrors it again. Desktop compares the two trees, then you choose:

  • Keep this server's or Keep 's: that tree wins everywhere;
  • Review each change…: step through the differences and pick per entry, then Apply this plan….

Nothing is dropped: the losing versions are kept as held changes or conflict copies. You confirm by typing the vault's name, and the other server's admin approves the outcome on their side before anything changes.

What mirroring is not

  • It is not clustering: a mirrored vault is one core plus one copy, on two servers.
  • It doesn't link more than two servers per vault, and a third server gains nothing from a link.
  • AI apps can't link servers: linking always needs a person in the app.