Replacing a failed OpenBao Raft node: when your cluster needs it
Replacing a failed OpenBao Raft node means removing the lost voter from the cluster's membership and adding a new node that rejoins the Raft group without breaking quorum. OpenBao HA with integrated storage (Raft) works with one active node that handles requests and holds the lock, while standby nodes take over if the active node fails. Every Raft voter counts toward the majority that must agree on writes, so a failed voter reduces the headroom you thought you had. If a three-voter cluster loses one node, the remaining two voters are all that stands between normal operation and a write outage, and a second failure during the repair would stop the cluster from accepting writes. Treat the first hour after a voter loss as a risk window, not a routine ticket.
Before you touch membership, confirm the exact steps for your running version in the OpenBao high availability docs, because peer management commands and their behavior are version-specific and the procedure should not be taken from memory or from an older guide. Establish what the cluster looks like now: which nodes are voters, which node is active, whether the surviving voters are healthy, and whether the failed node still appears as a peer. Decide in advance whether you will replace the node with the same hostname and certificate identity or with a new one, because that choice changes the configuration, TLS names and any load balancer or DNS entries that point at it. Also confirm that you have a recent snapshot and access to the unseal material and root or admin credentials before you begin, since a membership change on a degraded cluster is the wrong moment to discover a missing key.
How to check peers, remove the dead node and join a replacement
This sequence confirms the cluster still has a leader and quorum, removes the failed peer from the Raft configuration, and brings a replacement node in with matching configuration. The result is a cluster with the same voter count as before, verified peer by peer.
Confirm the cluster has an active node and quorum
Before touching membership, the operator checks which node is active and whether the remaining voters can still form a majority. Run
bao statusagainst a surviving node and confirm the HA mode and that the cluster is unsealed. Then checkbao operator raft list-peersto see how many voters are still reachable. Do this first, because removing a peer while quorum is already lost can make recovery much harder. Done means one active node is reported and the surviving voters are a majority of the configured set. Confirm the exact output fields in the OpenBao HA and Raft documentation for your running version.Identify the failed peer in the Raft configuration
Run
bao operator raft list-peersand compare the peer list against your inventory of expected nodes. Each peer shows a node ID, address, state and whether it is a voter. The failed node should appear with no recent contact or as not reachable, while the others show as healthy followers or the leader. Record the node ID and address of the failed peer, since the removal command needs them. Done means you have one written identifier for the dead node and you have confirmed it is not the node you are about to remove from a different angle. Check the peer field names and any health columns in the docs for your version, because output format can change between releases.Remove the dead peer from the cluster
Remove the failed node from the Raft configuration using the remove-peer operator command, targeting the node ID or address recorded in the previous step. Run it against the active node, since membership changes go through the leader. Ensure the command is run once, and that no other operator is changing membership at the same time. Done means the command reports success and a fresh
bao operator raft list-peersno longer shows the dead node. Confirm the exact remove-peer syntax and flags in the OpenBao Raft documentation for your version before running it in production.Prepare the replacement node with matching configuration
Provision the replacement server with the same OpenBao version as the surviving voters, or confirm that the version is compatible with the documented upgrade guidance. Copy the storage stanza and the cluster-facing settings, including the Raft path,
node_idfor the new node, and the API and cluster addresses. Keep TLS settings, seal configuration and theuisetting consistent with the other nodes. The node must not carry over anode_idbelonging to the failed peer. Done means the configuration file has been reviewed side by side with a surviving node and the only differences are the node-specific values. Confirm the storage and seal config keys in the OpenBao storage and configuration docs for your version.Start the replacement and join it to the cluster
Start the new OpenBao process with the prepared configuration, then join it to the existing cluster. Joining can be done with a
retry_joinstanza in the configuration or with the operator join command pointed at an active node. Leave the new node unsealed or unseal it using the same unseal method as the other nodes, which may require the same key shares or the same auto-unseal backend. Done means the new node starts, reports as a standby, and appears in the peer list after the join completes. Confirm the join method and the unseal procedure for your seal type in the docs for your running version.Verify the new peer replicates and the cluster reports healthy
Check
bao operator raft list-peersagain and confirm the replacement appears with the expected voter status. Runbao statuson the new node and confirm it is a standby with the cluster recognized. Write a test value on the active node, then read it from the replacement once it is caught up, to confirm the data has replicated. Check that the voter count matches the intended design. Done means the peer list shows the full voter set, the replacement reports healthy, and the test read succeeds. If the new node was added as a non-voter first, review the Autopilot and sizing guidance for your version before promoting it.Confirm monitoring and load balancer health after recovery
Once the peer list is stable, update monitoring and any load balancer that routes to the cluster so the replacement is included and the dead address is removed. Review the health endpoint behavior for active and standby nodes in the OpenBao HA documentation for your version, so probes classify the new node correctly. Record the change, the node IDs involved and the date in your operations log. Done means monitoring shows all voters, the removed address no longer appears in probes, and the incident record names the peer that was removed and the one that replaced it.
How the replacement sequence keeps quorum
The sequence starts with detecting the failed peer and checking whether the remaining voters still hold a majority. Before anything is removed, the operator confirms the active node and standbys are healthy, because removing a peer from a cluster that has already lost quorum can make recovery harder. Only then is the dead peer removed, the replacement joined, and the cluster verified again. Each hand-off is a point to check peer state with list-peers and confirm bao operator raft output before moving on.
Decision path that confirms quorum before removing any peer.
Which recovery path fits which failure
When one follower fails and the remaining voters still hold a majority, the cluster keeps its leader and continues to commit writes. This is the routine path: confirm the peer is gone, remove it, and join a replacement. The OpenBao high availability docs describe how the active node and standbys behave during this period.
- Confirm the peer is gone: run
bao operator raft list-peersfrom a healthy node and check that a leader exists and that the surviving voters form a majority. - Remove the dead peer first: use
bao operator raft remove-peerwith the failed node's ID so the voter list matches the nodes you actually run. - Join the replacement as a new node: start it with its own storage path and configuration, run
bao operator raft joinagainst a healthy leader, then unseal it. - Check whether a restore is needed: if the cluster still has quorum and its data is intact, peer replacement is enough. Restore is for data loss or corruption, not for a single node outage.
- Plan for the margin: a three-voter cluster has no spare tolerance until the replacement is healthy, so schedule other changes after the replacement joins.
Before you close the incident, confirm that list-peers shows the replacement as a voter with a current index.
An upgrade usually restarts nodes one at a time, so a failure in the middle of the roll means a node is down for a reason nobody planned. The key question is whether another node is also restarting, because two absent voters in a three-voter cluster leave no majority. Pause the roll and establish the state of every node before you change anything.
- Stop the roll: do not restart or upgrade the next node while the failed one is absent. Check
bao operator raft list-peersand confirm the leader and voter count first. - Check version and configuration: confirm which nodes run the new binary and which still run the old one. Use the OpenBao upgrades guidance for your target version, and for clusters moved from Vault, confirm that
disable_mlockwas removed from every node's configuration. - Separate restart from loss: a node that restarts and rejoins with its data intact may not need removal at all. Remove a peer only when it will not return.
- Take a snapshot before removing anything: a fresh Raft snapshot gives you a rollback point if the upgrade itself is the cause. The sibling backup topic covers how to take one.
- Rejoin with the target version: a replacement should run the version the cluster is moving to, so verify version compatibility against the release notes before it joins.
Before the next node is touched, confirm that every voter reports the expected version and that a current snapshot exists.
When a majority of voters is gone, the surviving nodes cannot elect a leader or commit changes, and commands that depend on a leader stop working. Peer removal and a simple join are no longer the first move. Recovery depends on whether the surviving nodes still hold complete, usable data, and on whether you can restore a snapshot taken before the loss.
- Assess the surviving data: if a surviving voter holds intact, complete data, recovery starts from that node's state. Confirm the exact procedure for your version in the OpenBao docs before acting, because steps differ when no leader exists.
- Prefer restore when data is suspect: if survivors are corrupted or may be missing committed entries, rebuild from a snapshot taken before the loss. The sibling topic on backing up and restoring with Raft snapshots covers the steps and why a restore should be rehearsed.
- Do not improvise removals: removing peers while quorum is absent can make the situation worse. Agree the sequence in writing with the people who own the cluster and the security team.
- Confirm access to unseal material: a rebuilt node must be unsealed with the keys or seal configuration in place. Confirm where that material is held and who can reach it before work starts.
- Record the timeline: note when quorum was lost, which nodes failed, and which snapshot is the restore point. An auditor or incident review will ask for this.
Before any node is rebuilt, confirm the restore point and that a restore procedure has been tested in a non-production environment.
Security and operational risks during a Raft node swap
A node swap changes cluster membership, the set of voters that decide every write. The risks below connect because a mistake in one, such as removing the wrong peer, can quietly weaken quorum, certificates, or audit trails at the same time.
Removing the wrong peer
Before removing anything, confirm the peer ID and address of the failed node against the output of bao operator raft list-peers. Two nodes can share a hostname pattern or a rebuilt address, and removing a healthy voter reduces fault tolerance at the moment you are already degraded. Record the peer list before the change so you can compare it afterward and show reviewers which member was removed and why.
Losing quorum during the change
Raft commits writes only when a majority of voters agree, so a cluster that is already missing a voter has less margin during the swap. Confirm that the remaining voters are healthy and have a leader before you remove or join anything. Make one membership change at a time and wait for the cluster to settle between steps, so a second failure does not leave you without a majority.
Reusing certificates and unseal material
A replacement node should start with its own TLS identity and must not copy the data directory, TLS private keys or unseal material from the failed host. Copying a node's identity can make the new member look like the old one and complicates revocation. Confirm that the new node's certificate is issued under your PKI process and that unseal keys are supplied through the ceremony your organization has approved.
Stale configuration and auto-join settings
Configuration files, retry_join stanzas and load balancer targets can still point at the dead node or at an address that now belongs to something else. Review every node's configuration for the old peer, then update the list of join targets so a restart does not attempt to rejoin the wrong endpoint. Remove any entry that refers to the retired host so later restarts stay predictable.
Audit and access records for the change
Membership changes are administrative actions, so they should be traceable to a named operator and an approved change request. Enable or confirm audit logging before the swap, and keep the logs from the remove and join steps with the peer list captured before and after. Limit who holds the root or operator tokens needed for these commands, and revoke any temporary access once the cluster is healthy.
Checking cluster state before and after
Verify health on every remaining node before starting, including which node is active and that standbys are following it. After the replacement joins, check the peer list again, confirm the new node is in the expected voter or non-voter role, and confirm that reads and writes succeed through your normal path. A swap is not finished until these checks match the state you recorded at the start.
Questions buyers ask before replacing a Raft node
How long does replacing a failed OpenBao Raft node take?
The duration depends on how many steps your environment needs before the swap can start, not on the Raft commands themselves, which are short. The main drivers are whether you have a recent, tested snapshot, how fast a replacement server can be provisioned with the same OpenBao version and TLS setup, how many clusters or environments share the same runbook, and whether change windows and approvals sit in your process. Ask any partner to break its estimate into provisioning, peer removal, join and verification, and to state which of those depend on your team. Do not accept a figure that ignores your change control.
Can our internal team replace a failed Raft node without outside help?
Often yes, if the team has run OpenBao before, has a documented runbook and can practice the procedure in a non-production cluster. The work is a sequence of checks: confirm the current peers and leader, remove the dead peer, join a replacement with matching configuration, and confirm it is a healthy voter. The risk is in the decisions around it, such as whether quorum is still intact, whether the dead node should be removed before or after the replacement joins, and how to handle a node that is only partly failed. Teams without that experience should rehearse first, and an outside partner can review the runbook before the incident.
What access and materials does a replacement need from us?
Plan for the following inputs before anything fails:
- Administrative access to the cluster with a token that can read raft configuration and manage peers, held under your normal privileged access process
- A recent Raft snapshot and confirmation that someone has tested restoring it
- Provisioning rights for a replacement server with the same OpenBao version, storage path, certificates and configuration
- Unseal keys or your auto-unseal setup and a clear owner for them
- An approved change window and a named contact who can stop the work if health checks fail
Confirm with your own security team how unseal material is released during an incident, since that step is often the slowest.
What does a partner scope for a Raft node replacement include?
A written scope should name the cluster, the OpenBao version, the failed node and the target replacement. It normally covers a current-state check of the cluster, peer and leader review, removal of the dead peer, joining and verifying the replacement, confirmation of read and write health, and a short record of what changed. It should also state what is excluded, such as application changes, storage redesign or a full disaster recovery exercise. Engagements at DeployOpen are fixed-scope, with scope, deliverables and timelines agreed in writing before work begins. Ask for the exact list of checks and the handover documents, and whether follow-up work is covered by a retainer.
What happens if quorum is already lost in an OpenBao Raft cluster?
Quorum loss changes the procedure, because a majority of voting nodes must agree before a Raft cluster can commit changes, including removing a peer. If too many voters are gone, you usually cannot remove the dead peers through the normal peer commands and the cluster must be recovered from a snapshot or by an approved recovery method. That is a higher-risk operation with more reviewers and more verification. Quorum tolerance depends on how many voters you run, which is why cluster sizing is planned before an incident. Confirm the recovery steps for your exact version with the official documentation and your own rehearsed plan before you need them.
Will replacing the node interrupt secrets access for our applications?
A healthy cluster that keeps quorum should continue serving requests while a failed voter is removed and a replacement joins, because the active node and the remaining voters keep working. Client impact depends on load balancer health checks, how standby and active nodes are routed, and whether applications cache secrets. Check which endpoint your clients use, how probes detect the active node, and whether your renewal behavior tolerates a brief failover. Rehearse this in a lower environment so you know the real behavior of your setup rather than assuming it.
How do we verify the replacement node is healthy before closing the incident?
Verification should show that the cluster has the expected number of voters, the replacement appears in the peer list as a healthy member, the leader is stable, and a write followed by a read succeeds through your normal client path. Keep the output of the peer checks and health endpoints as evidence for your change record. Also confirm that snapshots are running again, since a new node changes the backup configuration. Your team should agree these checks in advance so the close-out is not decided under pressure.
What a rehearsed replacement changes for your team
A rehearsed replacement turns a Raft node loss from an improvised incident into a known procedure. The first real failure is the worst time to discover that the bao operator raft list-peers output is unfamiliar to the person on call, that nobody knows which node holds the current unseal material, or that the join command needs an address nobody recorded. Running the full sequence in a non-production cluster that mirrors your node count, storage path and seal type exposes those gaps while the cost is only time. The output of that rehearsal should be a written runbook with the exact commands, the expected peer state after each step, the quorum arithmetic for your voter count, and the point at which the team stops and escalates. Confirm with your own environment which commands and flags your OpenBao version accepts, since the runbook is only useful if it matches the binary you run.
Before the rehearsal, settle three ownership questions, because they decide who can act at 2 a.m. The first is on-call: name who may remove a peer and who may join a replacement, and make sure both roles can reach the cluster through the same access path. The second is change approval: removing a voter reduces your fault tolerance until the replacement is healthy, so decide in advance whether the on-call engineer may proceed under an emergency change or must wait for a named approver. The third is key custody: joining a node into a sealed or partially sealed cluster may require unseal shares or auto-unseal access held by different people or systems, so identify who holds each, how quickly they can be reached, and whether the seal configuration in your environment is documented. Write these answers into the runbook itself, not into a separate policy document nobody opens during an outage.
The rehearsal also tests whether your responsibilities are split correctly. If the team that operates the Raft cluster is not the team that holds the seal keys, the replacement cannot finish without a handoff, and that handoff should be practiced. Record how long each handoff took in the rehearsal and compare it with the quorum margin your voter count gives you, which the Raft sizing guidance explains in detail. Review the runbook after every change to the cluster, including upgrades, because a version change can alter peer output or join behavior. Ask your DeployOpen or internal engineers to rerun the rehearsal on a schedule you choose, so the runbook is still correct when someone new is on call.
How DeployOpen scopes and delivers OpenBao cluster recovery
DeployOpen approaches replacing a failed OpenBao Raft node as a fixed-scope piece of work on infrastructure you control. The engagement starts with a written scope covering your peer state, quorum margin, backups and the replacement path, then moves through a rehearsed procedure, a documented handover and optional ongoing support.
How we scope
- Record the current voter list, peer states and which node has failed before any command is run.
- Confirm quorum margin for your cluster size and whether a snapshot exists and has been restore-tested.
- Agree in writing which nodes, environments, OpenBao version and change windows the recovery covers.
How we build
- Write a runbook for listing peers, removing the dead peer and joining a replacement while keeping quorum.
- Rehearse the procedure on a staging cluster built from your own configuration before touching production.
- Test the replacement node's TLS, unseal path and retry_join settings, then verify the cluster elects a leader and replicates data.
How we hand over
- Deliver the runbook, configuration records, verification checklist and a log of every change made during recovery.
- Walk your operators through the procedure so they can repeat it without DeployOpen present.
- Document follow-up items such as backup schedule, monitoring alerts and node placement for your own review.
How we support
- Offer ongoing support, upgrades and continuous testing for your OpenBao clusters as a retainer.
- Review the cluster after recovery to confirm autopilot and backup settings match the agreed design.
- Confirm with DeployOpen during scoping which support hours, escalation paths and response terms apply to your agreement.

