Rolling upgrade order for Hyperledger Fabric orderers and peers

A Fabric upgrade runs across organizations that each control their own nodes, so the order of work decides whether the network keeps processing transactions. This page sets out the sequence, the checks at each step and the points where rollback is still possible.

On this page

Why the Hyperledger Fabric upgrade order matters for every member

In a consortium network, each organization runs its own orderers and peers, so an upgrade is a coordinated change across companies that do not share an operations team. The order of steps decides whether channels keep processing transactions throughout. The Fabric upgrade guide describes four steps: back up the ledger and MSPs, upgrade orderer binaries in a rolling fashion, upgrade peer binaries in a rolling fashion, then update application channel capability levels. Each step depends on the one before it, and skipping ahead is the most common way an upgrade turns into an outage. Before any member starts, confirm which line you are moving from and to. The supported path in this topic runs from the v2.5 LTS line to the 3.1 line, and the GitHub releases page lists v2.5.16 and v3.1.5, both published on June 18, 2026, so both lines receive patches in parallel. Check the Fabric releases page for the newest patch before you pin versions.

The reason to upgrade matters too. Staying on v2.5 is a supported choice because it is the long-term support release for production users, so the case for moving to 3.x should rest on features you need, such as the BFT ordering service added in v3.0 or Ed25519 MSP signing, not on urgency alone. Each organization should decide its own timeline, but the consortium must agree on the order and on the date when capabilities change, because that change is the point of no return for members still on older binaries.

Applications can move on their own schedule. The Fabric Gateway client API is compatible with both v2.5 and v3.0, so client applications can be upgraded separately from the network. That separation lets each member test its applications against the new release while its peers and orderers stay on the current binaries. Confirm with every member which binary versions and which Gateway client versions they run before the first node changes, and record that inventory with the backup evidence so every organization can see where the network stands at each step.

What changes in Fabric 3.x and what each change requires from operators

This table compares each Fabric 3.x change against its effect on operators and the action to take before the binary upgrade starts. Read it as a checklist: any row that touches your network means work must finish on every organization before the first orderer restarts.

ChangeImpact on operatorsAction before the binary upgrade
Removal of Solo and Kafka consensusNetworks still on Solo or Kafka ordering cannot run the 3.x binaries, so the upgrade cannot start until ordering has moved to Raft.Migrate every Kafka-ordered channel to Raft and confirm no Solo ordering remains before scheduling any binary change.
Removal of the v1.x legacy chaincode lifecycleChaincode installed or defined through the legacy lifecycle will not be supported after the upgrade, so affected chaincode must be moved first.Move all channels to the v2.x lifecycle and verify every chaincode definition is managed through it.
New SmartBFT ordering optionOperators gain a Byzantine fault tolerant choice, but it is a different consensus service with different node counts and tolerance, so it is not a drop-in change for an existing Raft cluster.Decide the ordering type in the design phase. Do not switch consensus type as part of the binary rollout unless the migration plan covers it.
SmartBFT fault boundSmartBFT tolerates failures of up to, but not including, one third of ordering nodes. Losing a third or more halts ordering, which differs from the majority rule that applies to Raft.Confirm the number of ordering nodes and the failure scenarios your continuity plan must survive before choosing the service. Plan maintenance so that no more than the tolerated number of nodes are down at once.
Ed25519 alongside ECDSA for MSP signingOrganizations can sign MSP material with Ed25519 as well as ECDSA. Existing ECDSA identities keep working, but any new key type must be supported by every component that verifies it.Check whether your HSM, Fabric CA version and external identity tools support Ed25519 before you issue new keys. Keep ECDSA as the default until every organization has confirmed support.
Capability gate (V3_0 channel capability)Enabling the capability is a separate step. Nodes below the required level crash once it is on, so the capability must wait until every orderer and peer runs the 3.x binary.Upgrade all binaries first, verify each node reports the new version, then schedule the channel capability update with all member organizations.
Ported configuration filesReplacement orderer.yaml and core.yaml files from the release artifacts may change keys, so custom settings need to be carried across by hand.Diff the new configuration files against your current ones, port customized variables and keep the old files available for rollback.

Which starting points can move directly to the 3.x line

Not every Fabric network can start the upgrade sequence on day one. Before any orderer or peer binary moves to the 3.x line, the network must have left two legacy states behind: Kafka-based ordering and v1.x legacy chaincode lifecycle. Fabric v3.0 removed both Solo and Kafka consensus and the v1.x lifecycle, so a network still using either one must migrate first. Kafka ordering has to move to Raft, and every channel has to be on the v2.x lifecycle. Confirm this with an inventory of each channel's consenter type and chaincode definitions before you schedule any binary work.

Fabric documentation recommends the Raft ordering service, which is crash fault tolerant and keeps working while a majority of nodes are available. A five node Raft cluster tolerates the loss of two nodes, which is the usual reason regulated networks settle on that size. A network still on Solo, which is a single-node ordering service, has no fault tolerance at all, so it should plan a move to a multi-node Raft cluster as a prerequisite rather than an optional improvement. Plan the ordering migration with your consortium, because each consenter change alters channel configuration that every member organization must approve.

If your network runs Fabric v2.5, the path to the 3.x line is covered in the sibling topic on upgrading from v2.5 to v3.1, which sets out the removed features to clear, the binary sequence and when to enable V3_0. If your network is older and still on v2.2, move to the v2.5 LTS first using the sibling topic on upgrading from v2.2 to the v2.5 LTS. Work through those topics in order and do not combine their steps with the 3.x sequence described on this page.

Preparation before the first node is touched

Every member organization prepares its own nodes before the rolling sequence begins. The cards below cover what must exist, be checked and be tested so that a failed step can be reversed and the upgrade can be paused safely.

Back up ledgers and MSPs

Each organization backs up the ledger data of its peers and the MSP material of its peers and orderers before any change. A backup only counts if it can be restored, so the team should run a restore into a scratch environment and confirm the peer starts and reports the expected block height. Backups stay under the owning organization's control, and that organization decides retention and access.

Fabric upgrade guide

Inventory customized YAML values

Each node's core.yaml or orderer.yaml is a file the organization has edited, so the release file cannot simply be copied over. List every customized key, including TLS paths, ledger locations, gossip settings, operations endpoints and consenter details, and record where each value came from. Store the inventory with the node's configuration so the porting step has a clear checklist.

Upgrading your components

Check HSM-backed MSP keys

Identify which MSP keys sit in an HSM through PKCS#11. Confirm that TLS keys remain file-based, as Fabric requires, and that the target image includes PKCS#11 support, since the prebuilt Docker images do not. If a custom image is needed, build and test it in the test network before any production node uses it, and confirm the HSM vendor's client library version is compatible.

HSM documentation

Confirm operations service endpoints

Record the health check, log level, version and metrics endpoints on every peer and orderer, and confirm they respond before the upgrade. The team uses these endpoints to decide whether a node is ready for the next step, so the monitoring job should query /healthz and /version and alert on failures. Check that the mutual TLS client certificates used by monitoring are still valid.

Operations service docs

Build a mirrored test network

Build a test network that matches the production channel topology, including the number of organizations, the orderer type and consenter count, the channel names and the chaincode definitions. Run the full sequence there first: orderers, then peers, then YAML porting and capability update. Each member organization should rehearse its own steps, because the test results show where the production runbook is wrong.

The upgrade sequence: orderers first, one node at a time, capabilities last

This sequence moves a Fabric network from one binary level to the next without taking the channel offline, keeps a rollback point at each stage, and leaves the one irreversible change, the capability level update, until every orderer and peer is running the new binaries.

  1. Confirm backups of ledgers and MSPs

    Before any binary changes, the network operator confirms that each organization has a current backup of its peer ledgers, orderer ledgers and MSP material, including the keys and certificates each node uses. Each organization checks that its backup can be restored in a test location, and records which copy is the rollback point. Work does not start until every organization that runs a node has confirmed its backup in writing. Before-and-after binaries can usually be reinstalled, but ledger and MSP state is the part that cannot be recreated from the release artifacts, so this backup is the rollback point for the whole sequence.

  2. Check ordering service health and Raft quorum

    The ordering service administrator confirms the cluster is healthy before touching it. Each orderer's /healthz endpoint should report OK, and the cluster should have a Raft leader with all consenters in sync for every channel. Confirm that the cluster has enough live nodes to keep a majority during a single node restart. For a five node cluster, that means only one node is down at a time, which the Raft design tolerates by keeping a majority available. If quorum is already degraded, stop here and restore it first.

  3. Upgrade orderers one at a time

    The ordering administrator upgrades one orderer node, replacing its binary and then restarting it, before moving to the next node. Each change is made on a single node and the rest of the cluster keeps the channel running. Before the next orderer is touched, the administrator checks that the upgraded node rejoins the cluster, catches up on blocks, and that the cluster reports a leader. The orderer's original binary and configuration remain available until the whole cluster is stable, so a failed node can be rolled back to the prior binary without touching the ledger.

  4. Check each orderer with /healthz and logs

    After every orderer restart, the operator queries the operations service endpoints, including /healthz for health and /version to confirm the binary level, then reviews the node's logs for consensus errors, TLS handshake failures and channel loading errors. The check is closed only when the node reports healthy, shows the expected version, has caught up to the cluster's latest block, and logs show no repeated errors. Use the /logspec endpoint if you need more detail temporarily, and return it to the normal level afterwards. A node that fails this check is held at its current state and investigated before the next one is upgraded.

  5. Upgrade peers one at a time within each organization

    Once every orderer is on the new binaries, each organization upgrades its peers, one peer at a time. Each organization coordinates its own peers so that endorsement and gossip still have enough live peers to serve the channels they join. After each peer restarts, the operator confirms the peer is healthy through /healthz, reports the new version through /version, and has caught up to the latest block on its channels. Peers run chaincode containers or external chaincode services, so confirm those dependencies still respond after the peer returns. Organizations should not all upgrade their peers at the same time, which would leave the channel with less endorsement capacity during the change.

  6. Port configuration files to the new release

    Each node's configuration is handled as part of its binary upgrade. For native deployments, replace orderer.yaml or core.yaml with the copy shipped in the release artifacts, then port each customized value across, such as TLS paths, MSP directories, ledger settings and operations addresses. Keep a diff of the old and new files so that every port is recorded and reviewed. Configuration changes should be tested on one node first. Check that the restarted node loads its configuration without warnings, and that the port step is recorded before the next node is upgraded. Containerized deployments follow the same principle through their own chart or image configuration.

  7. Run the mixed-binary network until it is stable

    After all orderers and peers are upgraded, the network should be run for a period on mixed levels only if needed, with the operator watching for stability before anything irreversible happens. Confirm that transactions endorse, order and commit across channels, that gossip and block delivery are steady, and that client applications still work. Fabric's Gateway client API works with both v2.5 and v3.0, so client applications can be tested in parallel. The check that closes this step is a documented sign-off from each organization that the network is stable on the new binaries across all channels, with the backup still held as the rollback point.

  8. Update channel capabilities only after every binary is upgraded

    The last step is updating the application channel capability level, which is the point of no return. Fabric requires every binary to be upgraded before the capability is enabled, because a node below the capability level crashes once the channel adopts it. Each channel's administrators submit the configuration update through the agreed channel governance process, and each organization confirms the change before it is committed. The step is closed when the channel configuration shows the new capability level and every node stays healthy. Rolling back at this point means restoring from backup, not reverting the binaries, so confirm the backup and the sign-off before submitting the update.

Porting orderer.yaml and core.yaml without losing local settings

For native deployments, the release file is the baseline and your local settings are the overlay. Replace orderer.yaml or core.yaml with the copy shipped in the release artifacts for the target version, then carry your customized values across. Starting from the old file and patching it in place is how settings drift: new defaults in the release never reach the node, and stale values survive. Before you touch the file, extract the running node's current configuration, keep a copy with the ledger and MSP backups, and confirm which file the process actually loads, since a node started with a different config path will ignore the edited copy.

Diff the old and new files line by line and sort every difference into one of three groups: changes the release introduced that you must accept, your own customizations to port, and settings that changed meaning. Customizations usually cluster in a few categories: TLS certificate and key paths, operations and metrics settings (listen address, TLS for the operations service, and the metrics provider), storage locations for the ledger and orderer data, and endpoints such as listen addresses, advertised addresses and gossip or cluster endpoints. Those are the values that differ between organizations, so treat them with the most care. Ask your release owner to confirm the exact key names for the target version against the Fabric documentation instead of relying on memory from an earlier release.

Record each ported setting in version control, with the release tag, the file hash and a short reason next to every local override. Keep one template file per node type and a small per-node overlay that holds only that organization's values. This lets each organization rebuild its node from source and reproduce a rollback without asking a peer for its file. Review the overlay in a pull request, and have a second person check the TLS and endpoint values, because a wrong path there often shows up only when the node restarts. Store secrets such as key material outside the repository, and reference them by path.

Testing and rollback by stage: before binaries, during the rolling phase and after capabilities

Before any binary is replaced, the only rollback you have is a restore. The Fabric upgrade guide starts with a backup of the ledger and MSPs for a reason: if a later step fails, a restored node is the cleanest way back. A backup that has never been restored is a hope, not a control, so rehearse the restore on a test network built from the same configuration before the production window opens.

  • Restore drill on the test network: Restore a peer and an orderer from the backup into an isolated environment, start them and confirm they rejoin their channels and report the expected block height.
  • Backup scope: Confirm the backup covers the ledger, the MSP directories, the TLS material and the current orderer.yaml and core.yaml files, not only the data directories.
  • Binary and config archive: Keep the currently running binaries and configuration files in a versioned location so a node can be returned to its exact prior state.
  • Operations endpoints: Record the baseline output of the operations service /healthz and /version endpoints so you can compare after each node is restarted.
  • Sign-off record: Write down who approved the backup, where it is stored and who can perform the restore.

Before the window opens, check that the restore drill was documented with the steps, durations observed on the test network and any errors that needed fixing.

Where the rollback points sit in the upgrade sequence

The diagram starts with backing up the ledger and MSPs and inventorying every orderer and peer, then rehearsing the same steps on a test network. Production upgrades move orderers first, one node at a time, with a quorum check before any peer changes. Each organization then upgrades its peers, and a mixed-binary stability check confirms the network is healthy before the next step. Failures before that point lead back to a restore from backup. The capability update comes last and starts only after every binary is upgraded, because nodes below a capability level crash.

Phases run in order, with restore paths only before the capability step.

What makes a Fabric upgrade take longer

This table lists the factors that stretch a Fabric rolling upgrade across organizations and shows what pushes each one up and what keeps it down. Read each row against your own network, since the same driver can be minor in a two-organization test network and dominant in a consortium with many change windows. The main takeaway is that the scheduling and coordination work across organizations usually costs more time than the binary swap on any single node.

DriverWhat increases itWhat reduces it
Organizations and change windowsMany member organizations, each with its own change board, approval cycle and maintenance calendar; any organization that cannot upgrade blocks the channel capability stepAgree one upgrade calendar in writing before work starts, name a coordinator, and confirm each organization's freeze periods early
Consenter count and Raft layoutMore orderer nodes to upgrade one at a time, and a layout where losing a node during the rolling step leaves the cluster without quorumKeep a healthy majority at every step, check cluster status after each node, and confirm the layout tolerates one node down before starting
HSM and custom image workPKCS#11 HSM keys in MSPs require custom images, since prebuilt Docker images are not built with PKCS#11; each image must be rebuilt, tested and approvedConfirm image provenance and HSM client versions in a staging network first, and keep the custom build pipeline documented for each release
Chaincode lifecycle still on v1.xChannels or chaincode still using the legacy v1.x lifecycle must be migrated to the v2.x lifecycle before the 3.x binaries can run, adding a separate change stream per channelInventory every channel and chaincode definition before scheduling, and complete lifecycle migration on the 2.5 line before touching orderer or peer binaries
Customized YAML volumeHeavily customized orderer.yaml or core.yaml files with many ported variables, spread across hosts with drifted copiesKeep configuration in version control, diff the release file against your customized file, and port each variable with a recorded reason
Ledger and backup sizeLarge ledgers and snapshots take longer to back up, verify and restore if a node must roll back, and widen the window in which a node is offlineMeasure backup and restore time on a copy of production data, schedule large peers separately, and verify each backup before the first binary change
CouchDB or external chaincode dependenciesCouchDB indexes or external chaincode services that must be version-matched or restarted with each peer, adding testing on every nodeList each peer's state database and chaincode runtime, confirm compatibility with the target release, and upgrade dependent services in a planned order
Client application coordinationApplications that depend on older SDK or Gateway behavior, or teams that must release changes at the same time as the networkConfirm client compatibility in advance, since the Gateway client API works with both v2.5 and v3.0, so client upgrades can run on their own schedule

Questions buyers ask before hiring help with a Fabric upgrade

How long does a Fabric rolling upgrade take?

No supplied figure gives a reliable duration, so the honest answer depends on drivers you can measure: the number of organizations, orderer and peer nodes per organization, how many channels and chaincode definitions exist, how much ledger data each peer holds for backup, whether custom images or external chaincode are involved, and how quickly each member organization can approve a maintenance window. Each node is upgraded one at a time and health-checked before the next, so node count matters more than network size alone. Ask any partner for a timeline built from your inventory and a written, node-by-node plan rather than a generic estimate.

What does each member organization need to provide?

Every organization that runs orderers or peers has to take part, because each one controls its own binaries, configuration files, MSP material and change approvals. In practice that means a named contact who can approve the change window, access to the nodes they operate, current backups of their ledger and MSPs, the customized orderer.yaml or core.yaml values to be ported, and a sign-off on the capability change once every binary is upgraded. Ask the network operator to confirm these responsibilities in writing before work starts, since a single unavailable organization can stall the sequence.

Can our internal team run the upgrade without outside help?

Yes, a capable internal team can follow the sequence, provided it has people who understand Fabric's ordering service, peer configuration, MSP and TLS material, and rollback steps. The risk is rarely the commands themselves. It is usually a missed backup, a ported setting that differs from the release default, or a capability change made before every node runs the new binary. Many organizations bring in outside help for the first upgrade in a new network, for the review of their runbook, or for rehearsals in a non-production copy. Confirm with your own engineers which of these gaps apply to you.

What if our network still uses Kafka ordering or the v1.x lifecycle?

Fabric v3.0 removed Solo and Kafka consensus and the v1.x legacy chaincode lifecycle, so these must be resolved before any binary upgrade to the 3.x line. Kafka ordering has to move to Raft, and every channel has to move to the v2.x lifecycle first. These are separate migration projects with their own testing, not steps inside the rolling upgrade. If you are on v1.4, the path to v2.x is a different topic. Confirm your current ordering type and lifecycle status with an inventory of each channel before choosing a target line.

Can we reverse a channel capability after enabling it?

No. Capability levels are a point of no return for the channel: once enabled, nodes that do not support that level will crash, so you cannot simply roll the capability back by reverting a binary. The safe approach is to treat the capability update as the last step, enable it only after every orderer and peer runs the new binary, and confirm the change in a test network first. Ask any partner how they will verify each node's version and capability support before the update is submitted, and whether they will rehearse the change outside production.

How should client applications be sequenced with the network upgrade?

Client applications can usually be upgraded separately from the network. The Fabric Gateway client API is compatible with both v2.5 and v3.0, so applications using it do not need to move in lockstep with the orderers and peers. Still, each application team should confirm which SDK or client library it uses, test it against a node running the new version, and schedule its own release after the network upgrade is verified. Keep a record of which application versions connect to which channels so any later issue can be traced quickly.

What should a quote for a Fabric upgrade include?

A quote should follow from a written scope and should list the organizations and nodes covered, the target release line and version, the pre-upgrade inventory and backup checks, the ported configuration for each node, the rehearsal environment and its use, the rolling sequence with verification at each node, the capability change and its approval step, client application coordination, and the rollback plan. It should also state what is one-time work and what recurs, such as patch releases or ongoing support. DeployOpen does not publish a price list, so ask for a fixed-scope proposal with its assumptions and exclusions stated.

How DeployOpen scopes and delivers a Fabric upgrade

DeployOpen plans the rolling upgrade order for Hyperledger Fabric orderers and peers as a written, fixed-scope engagement, starting from your current release and the organizations that must act. We build and test the sequence in your own infrastructure, then hand over the runbook, evidence and rollback steps your teams need to repeat it.

How we scope

  • We confirm your current Fabric version, every channel's capability levels, and whether any Kafka or v1.x lifecycle remnants must be cleared first.
  • We inventory every orderer and peer per organization, with their deployment type, to set the rolling order and identify which member organizations must coordinate.
  • We agree the scope, deliverables and timeline in writing before work starts, and list which backup and MSP material your team must provide.

How we build

  • We build the upgrade runbook covering backups of ledgers and MSPs, orderer binaries first, then peer binaries, one node at a time.
  • We port customized orderer.yaml and core.yaml settings onto the release file for each native node and record every changed key.
  • We test the full sequence on a non-production copy of your network, including a checkpoint before any capability level is changed.

How we hand over

  • You receive the written runbook, node-by-node checklist, rollback notes and a record of the tests run against your environment.
  • We walk your operators through each step, including health checks through the operations service and log verification at every node.
  • We document the capability update as a separate, approved change so your change board can review it after all binaries are upgraded.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers for patch releases on the 2.5 LTS and 3.x lines.
  • We can retest the sequence before each future upgrade so your runbook stays current with your network and release targets.
  • Our support covers the operational steps we deliver, and we confirm with your team and the Fabric documentation before each change.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.