Upgrading Hyperledger Fabric from v2.2 to v2.5 LTS: when and why
If your consortium or platform team runs Hyperledger Fabric v2.2, the move to v2.5 is a simple in-place upgrade that the Fabric documentation supports directly. The Fabric project encourages users of earlier releases to move to v2.5 to receive fixes and security updates, and v2.5 is the long-term support (LTS) release the documentation recommends for production networks. For a network that is already on the v2.x lifecycle, the upgrade does not require a redesign of channels, chaincode or identities. Confirm that every channel is on the v2.x chaincode lifecycle and that your orderers use a supported consensus type before you schedule the work, since those prerequisites are what make the in-place path straightforward.
The sequence matters more than the version number. Upgrade orderer binaries first, then peer binaries, one node at a time in a rolling fashion, and back up the ledger and MSPs before the first node is touched. Running v2.5 binaries does not by itself change how a channel behaves. Application channel capability levels are a separate step that comes after every binary in the network is on v2.5, and a v2.5 network can run without changing any capability. That separation gives your team a window to validate the new binaries under real traffic before anyone commits a channel to new behavior, which is the point where the change becomes hard to reverse.
Before you approve the plan, decide who owns the rollout across member organizations. Each organization operates its own orderers and peers, so the schedule, the maintenance windows and the rollback criteria need agreement from every member, not only the team that runs the core infrastructure. Ask your Fabric partner or internal team to document the exact binary versions, the YAML changes for each node type and the order of operations in writing. Your operations and security reviewers will also want to see where the backups are stored and how they were verified, because those backups are the recovery path if a node upgrade fails partway through.
What changes between v2.2 and v2.5
This table compares what v2.5 adds over the v2.2 LTS release and what each change means for your network, peers and client applications. Read each row against your current operating model to decide which items need planning and which only need awareness. The main takeaway is that the binary upgrade is simple, while channel administration, snapshot-based peer joins and client changes need deliberate decisions.
| Change | Impact | Action needed |
|---|---|---|
| Channels without a system channel | Channels can be created and managed through the channel participation API without a system channel, which changes how new channels are set up on orderers. | Confirm whether your current orderers still rely on a system channel, and decide with consortium members whether new channels will follow the newer model. |
| Ledger snapshots for joining peers | Peers can join a channel from a ledger snapshot instead of replaying the full block history, which affects how new or recovered peers catch up. | Plan where snapshots are taken and stored, and test joining a peer from a snapshot in a non-production network before relying on it. |
| Fabric Gateway and new client libraries | The Fabric Gateway simplifies how client applications submit transactions and query the ledger through newer client libraries. | Inventory existing client applications and decide whether to move them to the Gateway API, then test them against a v2.5 peer. |
| Gateway client API compatibility | The Gateway client API is compatible with both v2.5 and v3.0, so client applications can be upgraded separately from the network. | Schedule client application upgrades on their own timeline, and confirm the exact client library versions your applications need. |
| Optional V2_5 application capability | Enabling the V2_5 capability turns on v2.5 channel behavior, such as private data purging, and it cannot be reversed once enabled. | Upgrade every orderer and peer binary first, then decide with channel members whether to enable V2_5 or stay on the current capability level. |
| Binary upgrade path | The prior v2.2 LTS to v2.5 move is a simple in-place upgrade, and the upgrade guide describes rolling orderer and peer upgrades. | Take ledger and MSP backups first, upgrade orderers before peers, and move one node at a time. |
What v2.5 adds and what you can adopt later
Upgrading binaries from v2.2 to v2.5 does not switch on the new features in v2.5. Three additions matter most for planning: the ability to manage channels without a system channel, ledger snapshots for joining peers, and the Fabric Gateway with its new client libraries. Each one is available once the orderers and peers run v2.5, but each one changes how you run the network, so adopting it is a separate decision. Your team should decide which of these to use based on the operational problems they solve for your network, not because the upgrade made them available.
The channel-without-system-channel model changes how new channels are created and administered. Ordering nodes manage channel membership directly, so a network that adopts it will rely on the orderer administration tooling and the channel participation workflow rather than on the legacy system channel. Snapshots let a new peer join a channel from a ledger snapshot instead of replaying every block, which affects how you handle backup, storage and onboarding procedures. The Fabric Gateway gives client applications a simpler way to submit transactions and query state. Client applications can often move to the Gateway on their own schedule, so confirm with your application teams which client library versions they need and how they will test them.
Adoption also depends on what your member organizations agree to. Changes to channel administration, snapshot handling and client connectivity touch every organization on a channel, so record each decision in your change process and confirm the required procedures in the upgrade documentation before you start. The optional V2_5 application capability is a different kind of decision: it changes channel behavior for all members and cannot be reversed, so it is covered in its own sibling topic on enabling the V2_5 application capability. Keep that decision separate from the binary upgrade and from the feature adoption choices above.
Preparing a v2.2 network before the upgrade
The upgrade itself is short, but the work that makes it safe happens beforehand. The six items below run in parallel across the network, and each one gives the team a way to recover, verify or coordinate if the upgrade goes wrong.
Back up ledgers and MSPs
Take a backup of every peer ledger and every orderer and peer MSP directory before any binary changes. Store copies outside the nodes being upgraded and confirm that a restore works on a scratch host. Include the TLS material and the configuration files, because a rollback depends on them. Ask each member organization to confirm its own backups, since no single operator holds every key.
Upgrade guideInventory chaincode and channels
List every channel, its member organizations, the chaincode definitions committed to each channel, and the endorsement policies in use. Record the sequence numbers and package IDs so you can confirm them after the upgrade. Confirm that no channel still depends on the legacy v1.x lifecycle, because that path must be cleared before the 3.x line.
Record orderer and peer configuration
Capture the ordering service type, consenter set, orderer endpoints, peer configuration files and the channel configuration blocks for each channel. Note which settings come from environment variables and which come from YAML files, since some keys change between releases. Keep these records with the backups so the team can compare the network before and after the change.
Build a mirror test network
Stand up a non-production network that matches production in peer and orderer versions, channel layout, chaincode definitions and TLS setup. Run the upgrade steps there first and record the commands, errors and timings. Use the test run to find YAML changes and any client behavior that differs from production. A rehearsal that skips the real chaincode definitions does not prove much.
Check client applications
Inventory every application that submits transactions or queries the ledger, including its SDK or client library and the Fabric Gateway settings it uses. Test each one against the mirror network. Applications built on the Gateway client API can be upgraded separately from the network, so confirm the version each application uses before the change window opens.
Agree a change window
Schedule the upgrade with every member organization, including the orderer operators, peer operators and application owners. Agree who approves each step, who can halt the rollout, and how the team will communicate status during the work. Decide in advance what counts as a failed node and which rollback steps the group accepts. Write these decisions down before the window opens.
The upgrade sequence and rollback points
The sequence moves a v2.2 LTS network to v2.5 one node at a time, with a checked rollback point after each stage, so the network keeps ordering and endorsing transactions throughout and capability changes come only after every binary is upgraded.
Back up the ledger and MSPs first
Each organization backs up its peer ledgers, the orderer data directories and the MSP material for its peers, orderers and admin identities, stored outside the nodes being changed. The operator confirms the backups can be read and that the copies cover every node that will be upgraded. This is the first rollback point: if a later step fails, the network can be restored from these copies. Ask your team to confirm the restore procedure has been rehearsed, since a backup that has never been restored is an untested assumption.
Confirm baseline health on every node
Before touching any binary, the operator queries the operations service on each peer and orderer. The /healthz endpoint should report all components healthy, /version should show the current v2.2 binary, and /metrics should be reachable from the monitoring stack. Channel height and consenter status should be checked on each orderer so the team has a reference point for comparison after each upgrade. Record these outputs in the change record. If any node is unhealthy, stop here and resolve it, because a failure during the rolling upgrade is harder to attribute.
Upgrade one orderer at a time
Each orderer is stopped, its binary is replaced with the v2.5 release, its configuration is checked against the v2.5 sample file, and it is restarted. Orderers are upgraded one at a time so the Raft cluster keeps a majority of consenters available throughout. After each restart, the operator confirms /version reports the v2.5 binary, /healthz is healthy, and the orderer has rejoined its channels and is following the latest block. Do not start the next orderer until these checks pass. The rollback point is the state after each orderer, where the previous binary can still be restored on that node.
Upgrade one peer at a time
Once every orderer runs v2.5, each peer is upgraded in turn using the same stop, replace, check and restart pattern. Peers are changed one at a time so each organization keeps endorsing capacity and the channel stays available. After each peer restarts, the operator confirms /version, /healthz and the peer's block height, and checks that it catches up with other peers on each channel. Chaincode containers should be verified as running. Keep the rollback point for each peer until all peers are complete, then record the state in the change log.
Verify the network on v2.5 binaries
With all orderers and peers upgraded, the operator runs an end-to-end check that does not depend on any single node. This usually means submitting a test transaction through a client application on each channel, confirming endorsement and commit across organizations, and reviewing logs and Prometheus metrics for errors or unexpected restarts. The output is a documented check showing the network processes transactions on v2.5 binaries while channel capability levels remain unchanged. This is the last point at which the network can be returned to v2.2 binaries without changing capability settings, so the team should confirm it before proceeding.
Update channel capabilities last
Only after every binary is upgraded, the channel capability levels are updated through channel configuration updates, approved by the required organizations. Capability changes are the point of no return for that channel, because older binaries can no longer process the channel once a capability is enabled. Because the v2.5 upgrade does not require enabling a new capability, the team should decide whether to enable the optional V2_5 capability separately and only after reviewing its prerequisites. Each channel update is verified by reading the channel configuration and confirming the expected capability values, and by checking that peers still commit blocks.
Close the change and retain the rollback evidence
The operator records the final state of every node, including /version output, health results, block heights and the capability values on each channel. The backups from the first step are kept until the team agrees the upgrade is stable under normal load. Ask your team or DeployOpen to confirm the retention period and the exact conditions for releasing the backups, since this depends on your change policy. Closing the change with this evidence gives auditors and internal reviewers a clear record of what was upgraded, when each rollback point existed, and when capabilities were changed.
Rollback stays available until the capability step
The diagram starts with a backup of the ledger and MSPs, then moves through a rolling upgrade of orderers and peers. Each node is checked with the operations service health endpoint before the next node changes. Any failed check leads to restoring from the backup, so every rollback point sits before the capability decision. Only after all binaries are upgraded and healthy does the team decide whether to update the application channel capability levels. Confirm each check against your own environment before moving on.
Upgrade phases with rollback branches that close before the capability update.
Verifying the network and client applications after v2.5
Verification after the v2.5 binaries are running has two halves: confirming each peer and orderer is healthy and reporting the expected version, and confirming that the applications that depend on the network still connect. Start with the operations service on every peer and orderer. Its /healthz endpoint reports component health, /version confirms the binary each node is actually running, and /logspec lets you check or temporarily change log levels without restarting the node. Check every node in both the orderer and peer tiers, not a sample, because a rolling upgrade can leave a node on an old binary that still looks healthy from its neighbors. Because the operations service is secured with mutual TLS client certificates, your monitoring and scripts need a client certificate that the node trusts. Confirm that before the check runs, or the probes will fail for reasons unrelated to the upgrade.
Next, point your Prometheus scraper at the /metrics endpoint, or configure StatsD push if that is how your monitoring is built, and record a baseline for block height, endorsement and ordering activity, and error counts. Compare those values after the upgrade with the figures from the week before. Watch for ordering nodes that fall behind on block height and for peers whose height stops advancing, since either can indicate a consenter or gossip problem that the version check alone will not show. Confirm the expected behavior of the operations endpoints with your monitoring vendor and your own environment, because metric names and scrape configuration should be checked against the running version rather than assumed from an earlier release.
Client applications are a separate check. The Fabric Gateway client API is compatible with both v2.5 and v3.0, so an application built on the Gateway can keep running after the network is on v2.5, and it does not have to move in the same change window. Run a representative set of transactions from each application, including a read, a submit and a commit-status check, and confirm that each application still resolves the peers it expects. Decide on client upgrades separately: move to a newer client library when you need a fix or feature it carries, when a security advisory applies, or when a planned v3.x network change makes it necessary, and test each client on its own schedule. Confirm the current client library versions and their support status with the Fabric documentation before you commit to a date.
What makes a v2.2 to v2.5 upgrade take longer
This table lists the factors that stretch a Fabric v2.2 to v2.5 upgrade and the steps that shorten each one. Read each row against your own network, because the number of organizations, the chaincode you run and the length of your change window usually matter more than the binary swap itself.
| Driver | Why it matters | How to reduce it |
|---|---|---|
| Organizations and nodes | Every orderer and peer is upgraded one at a time in a rolling fashion, and each organization must schedule its own restarts, so the count of nodes sets the number of steps. | Inventory every orderer and peer and their owners before starting, then agree one upgrade order across organizations in writing. |
| Custom chaincode and external chaincode services | Chaincode must keep running correctly on the upgraded peers, and external chaincode services need their own testing and version checks. | Run the existing chaincode test suite against a v2.5 test network first, and confirm external chaincode builds and connections before the change window. |
| CouchDB state databases | Peers using CouchDB need the database reachable and healthy through each restart, and index and version checks add verification work. | Confirm CouchDB health and backup status on every peer, and rehearse peer restarts against a copy of the production state. |
| Ledger size and backup time | The upgrade guide starts with a backup of the ledger and MSPs, so larger ledgers lengthen the backup and restore window. | Measure current ledger size per peer, test backup and restore speed in a non-production copy, and schedule backups ahead of the change window. |
| Custom Docker images or HSM-backed MSP keys | Custom images must be rebuilt against the v2.5 base, and HSM-backed MSP keys depend on PKCS#11 support in the custom image, which the prebuilt images do not provide. | Inventory every image and HSM setup, rebuild and test custom images early, and confirm HSM connectivity on each node after the binary change. |
| Fabric CA and client application count | Certificate authorities and every client application that connects to the network may need checks, and each client team adds coordination work. | List every CA server and client application, confirm CA backups and enrollment checks, and plan client testing in parallel with the network upgrade. |
| Availability window across member organizations | Rolling upgrades need every member organization to agree on timing, and each one may have its own approval and freeze periods. | Agree a calendar with all members early, set rollback criteria per node, and keep a documented fallback path for each organization. |
Questions buyers ask before upgrading Fabric v2.2
Is upgrading Hyperledger Fabric from v2.2 to v2.5 a simple in-place upgrade?
Yes, the Fabric what's new documentation describes a simple in-place upgrade from the prior v2.2 LTS release to v2.5, and it encourages users of earlier versions to move to v2.5 for fixes and security updates. In-place does not mean unplanned, though. You still back up the ledger and MSPs, replace binaries node by node, and then decide when to change channel capability levels. Confirm with your own environment whether custom images, YAML files, CouchDB versions or chaincode runtimes need changes before you start.
How much time and effort does a v2.2 to v2.5 upgrade take?
No duration is published here, so treat any number you see elsewhere with caution. The effort is driven by the number of organizations, orderers and peers, the number of channels, how much custom tooling sits around the network, and how many environments (development, test, production) must be upgraded in sequence. Ask for a schedule that lists each node, the backup and rollback steps, the verification after each node, and the change window that member organizations must approve.
What does the upgrade need from our internal team?
Your team needs people who can operate the orderers and peers, access to the container or host platform, and authority to coordinate with every member organization, because the network moves only as fast as its slowest member. Expect to provide change approvals, a named owner for each node, access to backups, and someone who can read peer and orderer logs and the operations service endpoints. Confirm these roles early, since gaps in coordination cause more delay than technical problems.
Can our own team perform the upgrade without an implementation partner?
Often yes, if your team already runs Fabric in production and has tested runbooks for its environment. The upgrade guide is short, but the work that tends to fail is environment specific: image pinning, configuration drift, Kubernetes manifests, and cross-organization timing. A partner adds value when your team lacks recent Fabric operations experience or needs a rehearsed rollback plan. DeployOpen plans, implements and documents this work inside your infrastructure under a written, fixed scope, and you can compare that with your own capacity.
Should we stay on v2.2 or move to v2.5 LTS, and what about 3.x?
Staying on v2.2 keeps today's behavior but leaves you without the fixes and security updates that users of prior versions are encouraged to take. The Fabric documentation identifies v2.5 as the long-term support release for production users, and the 2.5 and 3.x lines both receive patch releases in parallel. Moving to v2.5 first is a smaller step than jumping to 3.x, which removes Solo, Kafka and the v1.x legacy lifecycle. Confirm your chaincode, ordering type and governance needs before choosing a target line.
Do we have to enable new channel capabilities after the upgrade?
Binary upgrades and capability levels are separate steps. The upgrade guide ends with updating application channel capability levels after every orderer and peer runs the new binaries, and that change is a channel configuration update. Features such as channels without a system channel or snapshots for joining peers depend on your binaries, not on a capability switch, so confirm which features you plan to use. Enabling a capability is typically hard to reverse, so decide that step separately, with each member organization, and record the decision.
What should we back up and verify before starting?
Back up the ledger and the MSP material for every node before any binary changes, and store copies somewhere the upgrade cannot touch. Then confirm that the backups restore in a test environment, record current binary and image versions, and capture channel configuration and chaincode definitions. Verify health after each node using the operations service endpoints such as /healthz and /version, and keep a documented rollback path for each step.
Testing and rollback for a Fabric network upgrade
Before any production binary changes, rehearse the whole upgrade on a staging network that mirrors production topology: the same number of orderers and peers, the same consenter layout, the same organizations, the same channels and chaincode definitions, and the same Docker or Kubernetes deployment method. The rehearsal should follow the four steps in the Fabric upgrade docs: back up the ledger and MSPs, upgrade orderer binaries one node at a time, upgrade peer binaries one node at a time, then update channel capability levels. Record how long each node took, which YAML keys you had to port, and which operations endpoints (/healthz, /version) you checked after each restart. Confirm the exact sequence and timings with your own team, since they depend on your environment rather than on any figure published for this upgrade.
Validate behavior, not just process. After each rehearsal step, invoke representative chaincode transactions and queries on each channel, submit transactions through the client path your applications actually use, and confirm that the Fabric Gateway client connects and endorses as expected. Check that peers on every organization still reach the orderers and that blocks keep committing. Test failure too: stop one orderer or peer at a time in staging and confirm the network still makes progress, which a five node Raft cluster tolerating two lost nodes would let you verify directly. Keep the list of checks and their results in the upgrade record so the change board can sign off on evidence.
Write the rollback plan before the change window, and tie every step to a backup you have verified can be restored. Because a v2.5 binary can be replaced by the v2.2 binary on a node that has not yet had its capability level changed, rollback is simplest while the network is still at the old capability levels; in that state each node can be reverted independently. Once an application channel capability level has been updated, the network is no longer a simple binary swap, so the capability step should wait until every orderer and peer runs the v2.5 binary and the checks above have passed. Ask your DeployOpen or internal team to document who authorizes a rollback, which node is reverted first, and how the restored ledger is compared against the backup.
How DeployOpen scopes and delivers a Fabric upgrade
DeployOpen approaches the move from Hyperledger Fabric v2.2 to v2.5 as a written, fixed-scope change to a network that other organizations depend on. We start from your current binaries, channel capability levels and member organizations, then agree in writing what the upgrade covers, how it is tested and who signs off each step.
How we scope
- We inventory every peer, orderer, channel and member organization in the network before agreeing any scope.
- We confirm which channels still rely on the v2.2 capability levels and which changes each one needs.
- The written scope names the environments, nodes, backups, rollback points and test evidence included in the engagement.
How we build
- We rehearse the upgrade in a non-production copy of your network using the same binaries and configuration files.
- We back up the ledger and MSP material on every node, then upgrade orderers and peers one node at a time.
- We update channel capability levels only after every binary is confirmed running, and we record each step as it happens.
How we hand over
- You receive a runbook with the exact sequence, commands, checks and rollback steps used for your network.
- Documentation covers which configuration changes were made, which optional v2.5 features were adopted and which were deliberately left off.
- We walk your operators and member organization contacts through the change and the post-upgrade health checks.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after the upgrade is complete.
- A retainer can cover patch releases on the 2.5 LTS line and reviews of any later decision to move to the 3.x line.
- Scope for any follow-on work is agreed in writing, and a quote follows from that written scope.

