Upgrading Hyperledger Fabric from v2.5 to v3.1

Moving a Hyperledger Fabric network from the v2.5 LTS line to v3.1 is a sequence of prerequisite clean-up, rolling binary upgrades and a later capability change. This page explains each step, what drives effort and what your team must provide.

On this page

Why a Hyperledger Fabric upgrade from v2.5 to v3.1 starts with clean-up, not binaries

If your permissioned network runs on the v2.5 LTS line and you must decide when to move to 3.x, the path is clear. First, shift off the features Fabric v3.0 removed. Second, upgrade orderer and peer binaries in a rolling fashion. Third, enable the V3_0 channel capability only after every node runs the new binaries. Most of the risk sits in the first step, so the decision you need to make early is whether your inventory of channels and consenters is complete enough to start it.

Start with the removals. Fabric v3.0 removed Solo and Kafka consensus and the v1.x legacy chaincode lifecycle, so any network still ordering through Kafka must migrate to Raft, and every channel must be on the v2.x lifecycle before you upgrade. Confirm this per channel, not per network, because a single lagging channel will block the upgrade plan. Fabric's upgrade docs say that once these features have been shifted off, upgrading the nodes from v2.x to v3.x requires no special considerations beyond the standard component upgrade steps. That is a useful statement, but it applies only after the clean-up is verified.

Staying on 2.5 is a supported choice to weigh, not a default to ignore. Fabric's documentation identifies v2.5 as the long-term support release for production users, and the Fabric GitHub releases page lists v3.1.5 and v2.5.16, both published on June 18, 2026, so the 3.x and 2.5 lines receive patch releases in parallel. Confirm with your own security and compliance teams how long your patch and audit obligations are satisfied on each line before you set a target date.

What changes between v2.5 and v3.1 and what each change requires

This table compares each change that affects a v2.5 network moving to the 3.x line, what it does to your network and what you must do about it. Read it as a pre-upgrade checklist: the removals must be cleared before any binary moves, while the new options can be adopted on your own schedule.

ChangeImpact on the networkAction needed
Solo and Kafka consensus removedFabric v3.0 no longer runs Solo or Kafka ordering, so a network still on either cannot take the 3.x binaries as is.Migrate every Kafka ordering service to Raft before upgrading any binary.
Legacy v1.x chaincode lifecycle removedChannels still using the legacy lifecycle cannot operate under v3.0.Move every channel to the v2.x lifecycle and confirm chaincode definitions before upgrading.
SmartBFT ordering addedA BFT ordering service tolerates failures of up to, but not including, one third of ordering nodes.Decide whether BFT is needed. Size the consenter set against your fault tolerance target before choosing it.
Ed25519 added for MSP signingEd25519 is available alongside ECDSA for MSP signing, so identities can use either algorithm.Confirm that your CA, HSM and client tooling support Ed25519 before adopting it.
Raft recommended for orderingRaft is crash fault tolerant and works while a majority of nodes is available. A five node cluster tolerates the loss of two nodes.Plan a five node Raft layout where possible and place nodes across failure domains.
Gateway client API compatibilityThe Gateway client API works with both v2.5 and v3.0, so applications can be upgraded separately from the network.Upgrade client applications on their own schedule and test them against the v3.x peers.
Patch releases on both linesFabric v3.1.5 and v2.5.16 were both published on June 18, 2026, so the 3.x and 2.5 LTS lines receive patches in parallel.Choose the target patch level on the GitHub releases page and record it in your version list.
Other behavior changesFurther changes are described in the What's new documentation and are not covered in this table.Check every change in the What's new documentation against your current and target versions before scheduling the upgrade.

Clearing Solo, Kafka and the legacy lifecycle before any binary moves

Clearing removed features is the gating work for this upgrade, and it happens on the running v2.5 network before any binary changes. Fabric v3.0 removed Solo and Kafka consensus and the v1.x legacy chaincode lifecycle, so a network that still depends on any of them cannot move to the 3.x line. The first task is an inventory. For every channel, record the ordering type in its consenter configuration, confirm that each orderer node runs Raft, and confirm that every chaincode definition was committed through the v2.x lifecycle. Any channel that turns up on Kafka or Solo, or that still relies on legacy chaincode installation, is a blocker that must be cleared first.

The migration touches three areas. The first is the orderer consenter set, where Kafka clusters move to Raft and the channel configuration is updated to reflect the new consenters. The second is channel administration, since every consenter change and configuration update needs approval from the required organizations and a clear record of who signed off. The third is chaincode definitions, where any chaincode still tied to the legacy lifecycle must be re-defined through the v2.x process and approved by the members who govern the channel. Each change alters live state, so the team should treat them as separate change requests with their own sign-off.

Run this work on the v2.5 network with its own test and rollback plan. Rehearse each consenter and lifecycle change on a copy of the network, record the ledger and MSP backups taken beforehand, and define the point at which the team stops and restores. Confirm the exact migration steps, command sequences and prerequisites in the Fabric upgrade documentation for the release you run, because the procedure depends on your current patch level and your channel configuration.

Preparing an upgrade: backups, inventory and a test network

The upgrade guide starts with backing up the ledger and MSPs before any node is touched, and everything else in preparation exists to make that step and the rolling upgrade that follows predictable. The cards below cover the artifacts you must produce, who signs each one off, and what to verify before the first orderer is upgraded.

Verified backup of every node

The first step in the upgrade guide is to back up the ledger and MSP material on every orderer and peer before any binary changes. A backup that has never been restored is not yet a backup, so restore a copy of one peer and one orderer into the test environment and confirm the ledger height and channel membership match the source. Record the backup location, checksums and the operator who took it. Sign-off: the network operations lead, with the security lead confirming MSP and key material is covered.

Upgrade guide

Channel and chaincode inventory

List every channel, its consenter set, its application capability level and every chaincode definition with its lifecycle version. Confirm that no channel still uses the legacy v1.x chaincode lifecycle, because v3.0 removed it and networks must move to the v2.x lifecycle first. Note any channel that still relies on Solo or Kafka ordering, since those were also removed in v3.0. Sign-off: the channel administrator for each organization, reviewed by the network operations lead.

Removed-feature usage check

Search peer and orderer configuration, deployment manifests and chaincode packaging for anything that depends on removed features. Typical findings are orderer configuration still naming Kafka, scripts calling the legacy lifecycle commands, and chaincode builds that rely on old packaging. Each finding needs an owner and a fixed date before the test upgrade starts. Sign-off: the platform engineering lead for each node type, and the application owner for any chaincode change.

Removed consensus and lifecycle
v3.0

YAML configuration keys to port

Compare the core.yaml and orderer.yaml files on each node against the defaults and settings of the target release, and list every key that is renamed, removed or changed in meaning. Keep the list under version control so that each node's diff can be reviewed. Confirm operations service settings, including the mutual TLS client certificate configuration, survive the port. Sign-off: the platform engineer who owns the node configuration, reviewed by a second engineer.

Test network that mirrors production

Build a test network with the same ordering type, consenter count, channel layout, CA setup and chaincode versions as production, running the current v2.5 LTS binaries. Rehearse the four-step upgrade sequence on it: backups, orderer binaries, peer binaries, then channel capabilities. Measure how long each node takes to rejoin and record every error. A test network that uses fewer orderers or a different database backend will not expose the same failures. Sign-off: the network operations lead, with written acceptance criteria agreed before the rehearsal.

Upgrading components

Owner list for each organization

Name one technical owner and one decision owner per member organization, with a backup contact for each. The owner signs off the backup, the inventory and the rollout window for their own nodes, and is reachable during the upgrade. Document who can approve a rollback and who can enable channel capabilities later, since capability changes cannot be undone. Sign-off: the governance body of the consortium, recorded in the network's operating procedures.

How the upgrade phases and decision gates connect

The path starts with clearing removed features, Solo and Kafka ordering and the legacy chaincode lifecycle, because the binaries cannot move forward until those are gone. A backup of the ledger and MSPs comes next, followed by rolling binary upgrades that take orderers first and then peers, one node at a time. Before any capability changes, check that every node runs the target version. The go or no-go gate for V3_0 sits at the end, and a no-go returns the network to the previous binary so the capability is never enabled early.

The sequence of upgrade phases, verification and the capability go or no-go gate.

How to sequence orderer and peer binary upgrades, one node at a time

The sequence moves a Fabric network from v2.5 to the 3.x line with a recoverable point at each stage, so every orderer and peer runs the new binary before any channel behavior changes. Nothing on the network changes meaning until the final capability step.

  1. Back up the ledger and MSPs

    Before any binary changes, the network operator takes a backup of each peer ledger and each orderer's data, along with the MSP material for every organization. Each member organization confirms its own backups are stored and readable outside the node being upgraded. This backup is your rollback point for the whole upgrade, so confirm you can restore one node from it in a test environment before you start. The step is complete when every node has a dated backup and a restore has been rehearsed. Confirm the exact backup procedure for your deployment with the Fabric upgrade guide and your storage team.

  2. Confirm removed features are gone

    Verify that no channel still uses Solo or Kafka consensus and that every chaincode is defined under the v2.x lifecycle. Fabric v3.0 removed both, so a node that still depends on them will not run correctly after the binary change. Check each channel's consensus type and each chaincode definition, and record the results in the change ticket. The step is complete when the inventory shows Raft ordering and v2.x lifecycle definitions on every channel. If anything remains, migrate it before continuing to the next step.

  3. Upgrade orderer binaries one at a time

    Each organization upgrades its orderer nodes in a rolling fashion, one node at a time, while the rest of the Raft cluster keeps a majority. Before stopping a node, check its operations service with its /healthz endpoint and confirm /version reports the current release. After the new binary starts, confirm /healthz is healthy, /version shows the 3.x release, and /metrics is scraped. Operations endpoints require mutual TLS client certificates, so confirm your monitoring client holds a valid certificate before you begin. Port any YAML configuration changes into the orderer configuration file for the new release before the restart. The step is complete when every orderer reports the new version and healthy status.

  4. Upgrade peer binaries one at a time

    After all orderers run the new binary, each organization upgrades its peers one node at a time, starting with a peer that is not the only anchor for a channel. Check /healthz and the current /version before stopping each peer, then confirm the new version and a healthy status after the restart. Confirm blocks continue to commit by comparing the ledger height across peers on the same channel. Port peer YAML changes before each restart, and keep a note of which peers are upgraded. The step is complete when every peer reports the 3.x version and the ledger heights match across peers on each channel.

  5. Upgrade client applications separately

    Client applications that use the Fabric Gateway client API can be upgraded on their own schedule because that API is compatible with both v2.5 and v3.0. Application teams can plan their release independently of the network, but they should still test against the upgraded peers in a non-production channel first. Record the client library version each application uses and confirm it works against the new peers. The step is complete when each application has been verified against the upgraded network, with its release dates recorded by the application owner.

  6. Update application channel capability levels

    Only after every orderer and peer runs the new binary, the channel operators raise the application channel capability level to V3_0 through a channel configuration update. This change is a point of no return for that channel, so do it only when all binaries are confirmed and the organization-level orderer endpoints are in place. Collect the signatures each channel policy requires, then confirm the channel configuration shows the new capability. The step is complete when each channel reports the V3_0 capability and transactions continue to commit. Confirm the sequencing with your channel governance policy and the sibling topic on enabling V3_0.

Rollback options before and after the capability change

While nodes are still running their prior binaries and application channel capabilities have not been raised, a single orderer or peer can usually return to its previous binary and the backup taken before the upgrade started. The Fabric upgrade sequence places the backup first, then rolls orderers and peers one at a time, so each node is a separate, reversible step. Rollback here is an operational procedure on one node, not a network-wide decision, but it still needs to be rehearsed in a non-production environment that mirrors your topology.

  • Restore procedure: Confirm that you can stop a node, reinstate the prior binary and configuration, and restart it without touching other nodes. Write down the exact file paths and container image tags you will use.
  • Backup integrity: Verify that ledger and MSP backups restore to a usable state, not just that the archive exists. Test the restore on a copy, not the live node.
  • Mixed-version behavior: Test how the network behaves while some nodes run v3.1 and others still run v2.5, including block delivery and endorsement, before starting the rolling upgrade.
  • Decision owner: Name who can halt the rolling upgrade and roll a node back. Usually this is the network operator with sign-off from the consortium administrator responsible for that node.
  • Evidence to keep: Record the backup identifiers, checksums, pre-upgrade health output from /healthz and /version, and the rollback runbook version.

Before you proceed, check that a rollback has been executed successfully on a test node and that the team can explain precisely which step each reversal depends on.

What makes a Hyperledger Fabric upgrade take longer

This table compares the factors that stretch a v2.5 to v3.1 upgrade and what to measure for each before scheduling work. Read each row as a question to answer for your own network, since the effort typically grows with the count of organizations, channels, custom components and integrations. The main takeaway is that most delay comes from work to finish before the binaries move, not from the binary swap itself.

DriverWhy it adds effortWhat to measure
Organizations and channelsEach channel has its own configuration, endorsement and capability state, and every member organization must review changes.Count of channels, member organizations per channel, and which organizations hold admin roles on each channel.
Kafka and legacy lifecycle workSolo and Kafka consensus and the v1.x legacy chaincode lifecycle were removed in v3.0, so any remaining use must be migrated first.Ordering services still on Kafka, and channels still using the legacy lifecycle, each listed by channel name.
Customized chaincodeChaincode built against older shims or with custom dependencies must be tested against the v2.5 and v3.x peer builds before rollout.Number of chaincode packages, their language and SDK versions, and which ones have passed tests on v3.1.
External chaincode servicesExternally run chaincode is managed by operators outside the peer, so its deployment and restart order must be coordinated with the network upgrade.Count of external chaincode services, their owners, and their rollback steps.
Fabric CA and HSM integrationsPKCS#11 HSM use needs custom peer and orderer images because prebuilt Docker images are not built with PKCS#11, and each CA backend needs its own check.Number of CA servers, their database backend, HSM-backed nodes, and whether a custom image build and test cycle is planned.
Monitoring and TLS configurationHealth checks, log level endpoints and metrics on the operations service use mutual TLS client certificates, so scrapers and dashboards need updates when nodes change.Number of nodes scraped, certificate expiry dates, and dashboards that break when the operations endpoint changes.
Capability approval by membersChannel capability changes are one-way, so each member organization must confirm its binaries are upgraded before the change is made.Number of organizations that must sign off, their approval lead times, and whether each has its own change window.
Ledger backup and restore testingBackups must be taken before each stage, and restores must be tested on copies, so larger ledgers lengthen each test cycle.Ledger size per peer and orderer, backup duration on a test copy, and restore duration for each node.

Questions teams ask before upgrading Hyperledger Fabric to v3.1

What does upgrading Hyperledger Fabric from v2.5 to v3.1 cost?

No price is published here, and the cost depends on the written scope. The main components are the preparation work (inventory of channels, chaincode definitions and consenters), the removal of features v3.0 dropped, the test network and rehearsal, the rolling upgrade of every orderer and peer, and the post-upgrade verification. Most of this is one-time effort. Recurring costs are the patch releases you apply on each line and the operating cost of the test environment you keep. Ask any quote to list each phase separately, name who performs each task, state how many channels and organizations are in scope, and say which items are excluded, such as custom chaincode changes or HSM work.

How long does the upgrade take?

Duration is driven by the number of channels, organizations, orderers and peers, how many Kafka or Solo ordering setups must be moved to Raft, how many chaincode lifecycles must be migrated, and how many approvals each member organization needs. Change windows for each node and the time needed to rehearse on a test network also add to the schedule. Your quote should give a timeline per phase with dependencies marked, and it should say which phases wait on other organizations. Any date you are given should be tied to the agreed scope, not to the release date of the software.

Can our in-house team upgrade Fabric without a partner?

Yes, if your team has operated Fabric peers and orderers, understands channel configuration updates and can run a rolling change across organizations. The official upgrade guide describes four steps: back up the ledger and MSPs, upgrade orderers in a rolling fashion, upgrade peers in a rolling fashion, then update application channel capability levels. The harder part is usually the preparation work, not the binary swap. Check whether your team has a current inventory of every channel, a working test network that mirrors production and a named owner for each consenter and peer.

What do we need to provide during the upgrade?

Expect to supply an inventory of every channel, its members, chaincode definitions and consenters, plus current configuration blocks and the ledger and MSP backups the upgrade guide requires. You also need access to a test network, maintenance windows for each organization, and written change approvals from each member organization before production changes. Confirm early who signs off, how long their approval cycle takes and what evidence they expect, such as rollback steps and test results.

Does Fabric v2.5 stay supported after we move to v3.1?

Yes, as far as the public release record shows. The Fabric documentation identifies v2.5 as the long-term support release for production users, and the GitHub releases page lists v2.5.16 and v3.1.5, both published on June 18, 2026, so the two lines receive patch releases in parallel. Confirm the support window for your own version with the project's current documentation and your own support contract, because support terms can change over time and should be checked against the current source before you commit.

Do we have to enable the V3_0 channel capability right away?

No. Upgrading binaries and enabling the V3_0 capability are separate steps, and the capability change is the point of no return for the channel. The upgrade guide sequences capability updates after every binary is upgraded. Many teams run the new binaries with earlier capability levels while they test. Before enabling V3_0, confirm that organization-level orderer endpoints are in place on each channel and that every member has upgraded. Plan that decision as its own change with its own approvals.

Can a partner take over the upgrade and the work after it?

Yes. DeployOpen plans, implements, upgrades, documents and supports self-hosted open-source platforms in your own infrastructure, and most engagements are fixed-scope with scope, deliverables and timelines agreed in writing before work starts. Ongoing support and upgrades can be arranged as a retainer. A partner does not replace your member organizations' approvals or your governance decisions. Ask for the written scope to name which tasks you keep, which the partner performs and how responsibilities are split for any follow-on changes.

What breaks most often during a Fabric upgrade?

The most common failures come from skipped preparation. Networks that still use Solo or Kafka ordering, or the legacy chaincode lifecycle, cannot upgrade to v3.x until those are moved off. Other failures include a missing or stale backup, a peer or orderer running the wrong binary, configuration changes that were not ported, and capability changes made before every node is upgraded. Ask the team that performs the work how each of these will be checked before a change window opens.

How DeployOpen scopes, delivers and supports a Fabric upgrade

DeployOpen treats the move from Fabric v2.5 to v3.1 as a written, fixed-scope change to a network you run in your own infrastructure. The work starts with a readiness review of removed features, then covers rolling binary upgrades, organization-level orderer endpoints and a planned V3_0 capability change.

How we scope

  • Inventory every channel for Kafka ordering, Solo ordering and legacy v1.x lifecycle use before any binary changes.
  • Confirm which orderer and peer nodes, organizations and channels are in the written scope and who approves each change.
  • Agree in writing whether V3_0 enablement is included, deferred or handled by your own change board.
  • Ask the quote to separate the readiness review, the rolling upgrade and the capability change as distinct deliverables.

How we build

  • Test the upgrade order in a non-production copy of your network that mirrors your organizations, TLS layout and storage.
  • Take and verify backups of the ledger and MSP material before the first orderer is touched.
  • Upgrade orderers and then peers one node at a time, checking health endpoints and logs after each step.
  • Prepare the organization-level OrdererEndpoints channel config update and rehearse the capability change before scheduling it.

How we hand over

  • Deliver a runbook with the exact sequence, rollback points and the conditions under which V3_0 may be enabled.
  • Document every changed YAML key, image tag and channel config update so your operators can repeat the steps.
  • Provide verification evidence from each stage, including health, version and metrics checks against your own monitoring.
  • Walk your platform, security and compliance teams through the change record they need for internal review.

How we support

  • Confirm the patch cadence you will follow for the 3.x and 2.5 LTS lines before the upgrade window is set.
  • Offer ongoing support, upgrades and continuous testing as a retainer if you want DeployOpen to carry later patch releases.
  • Agree in the scope how post-upgrade incidents, client application upgrades and member organization coordination are handled.
  • Ask for the retainer terms, response expectations and handover items in the written quote rather than assuming them.

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.