Migrating a Hyperledger Fabric ordering service from Raft to SmartBFT

Moving a live Fabric channel from Raft to SmartBFT is an in-place, all-channels maintenance event that needs v3.0 binaries, the V3_0 capability and a 3f + 1 node layout before the window opens. This page explains what maps, what cannot change and how a team plans the window.

On this page

What a Raft to SmartBFT migration involves in Fabric

A consortium running Raft ordering that wants Byzantine fault tolerance should treat the change as a planned, in-place maintenance event with strict prerequisites, not a rebuild. The ordering service keeps its channels, its ledgers and its member organizations, but every channel on the targeted ordering nodes changes consensus type inside one window, and the window cannot be reopened halfway. Before any work starts, confirm that every ordering node and peer already runs Fabric v3.0.0 or later and that each channel carries the V3_0 capability. Those two checks decide whether the migration is a scheduling exercise or a prerequisite project of its own, so run them first against every organization in the consortium.

The effort is driven by four things: the number of channels on the ordering nodes, the consenter count, the current state of peers and binaries, and how many organizations must sign off on the window. Each channel must move together, so a larger channel count widens the test and rollback plan. The consenter count must satisfy 3f + 1, which may mean adding ordering nodes before the migration starts, and the consenter set cannot be added to, removed from or changed during the migration. Lagging peers and mixed binary versions add risk because the backup point must stay ahead of every peer ledger. DeployOpen plans the window from a written scope that lists channels, nodes, organizations and the rollback position, and the reader should ask for that scope to name each of these inputs explicitly.

Which Raft settings carry over to SmartBFT and which change

This table compares the current Raft ordering setup with the SmartBFT target across consenter set, node count, capabilities, certificates, endpoints, storage and client applications. Read each row as a checklist: items marked as confirm must be verified against the Fabric Raft to BFT migration documentation before the change window is planned.

SettingCurrent Raft orderingSmartBFT target and what to confirm
Consenter setRaft consenters are listed in the channel configuration and can be changed through normal config updates.Consenters cannot be added, removed or changed during the migration window. Confirm the final consenter list before the window opens.
Node count ruleRaft tolerates crash failures while a majority of nodes is available, so a five node cluster tolerates two failures.SmartBFT requires a node count of 3f + 1 to tolerate f Byzantine faults. Confirm whether your current count must be adjusted before migration, since this may need changes outside the window.
Channel capabilitiesChannels run at their existing application and orderer capability levels.Channels must have the V3_0 capability before migration starts. Confirm the exact capability keys in the migration docs and the update sequence.
Fabric versionOrderers and peers run the version already in production.All ordering nodes and peers must run Fabric v3.0.0 or later. Confirm that every node in the network, including peers outside your organization, meets this requirement.
Maintenance modeChannels accept normal transactions and config updates at all times.During maintenance mode, normal transactions, unrelated config updates and peer Deliver requests are rejected. Plan the backup point so orderer state is not behind peer ledgers.
TLS and certificate materialExisting orderer TLS and MSP certificates are in use and can be rotated under standard procedures.Certificates cannot be changed during the migration window. Confirm which certificates must be in place beforehand and rotate any expiring material before the window.
EndpointsOrderer addresses are published in channel configuration and used by peers and clients.Confirm whether endpoint values change as part of the consenter mapping and whether peers need updated addresses before or after the switch.
Storage and ledger backupOrderer ledgers are stored on each node and backed up under your current routine.Take a backup of ledgers and MSPs before maintenance mode. Confirm the restore procedure and the expected storage impact on each orderer.
Gateway client applicationsApplications use the Fabric Gateway client API or legacy SDKs against the current network.The Fabric Gateway client API is compatible with both v2.5 and v3.0, so client upgrades can proceed separately. Confirm any client-side changes needed for BFT endpoints.

Documented paths the migration uses

A Raft to SmartBFT conversion runs on four documented paths: the migration guide, the upgrade guide, the operations service and the Fabric CA guide. The page does not supply a separate import tool, so the exact commands must be taken from the migration guide for the version in use. Work from those sources and confirm each step against your own network before the window opens.

Raft to BFT migration guide

This is the controlling document for the conversion. It sets the prerequisites: all ordering nodes and peers on Fabric v3.0.0 or later, channels at the V3_0 capability, and node counts of 3f + 1. It also states that every channel on a targeted ordering node migrates in the same maintenance window and that consenters or certificates cannot change during the window. Confirm the exact commands against the guide for your version, not against older blog posts or this page.

Migration guide

Upgrade guide for backups and rollouts

The 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 channel capability levels. The backup step matters most here, because maintenance mode rejects Deliver requests from peers and the orderer backup point must stay ahead of peer ledgers. Record which backup belongs to which node before the window opens.

Upgrade guide

Operations service endpoints

Each peer and orderer exposes /healthz, /logspec, /version and a Prometheus /metrics endpoint or StatsD push, secured with mutual TLS client certificates. Use /version to confirm every node runs the expected binary before and after each step, /healthz to confirm node availability, and /metrics to watch consenter behavior during and after the change. Confirm that your monitoring client holds a certificate the operations service accepts before the window.

Operations service docs

Ordering service design reference

The ordering service page explains the Raft and BFT consensus models, including how fault tolerance depends on node count. Use it to confirm the fault tolerance you will have after conversion, since BFT tolerates failures of up to, but not including, one third of ordering nodes. Check that the consenter set you plan to keep matches your governance expectations, because consenters cannot change during the migration itself.

Ordering service docs

Fabric CA guide for new identities

If the BFT layout needs new ordering node identities, the Fabric CA user guide covers issuing enrollment certificates, renewal and revocation. Plan certificate issuance and TLS material for any new node before the maintenance window, so that the window covers only the consensus change. Confirm which CA issues each identity and that revocation for retired certificates is handled, since certificate changes are not permitted during the migration.

Fabric CA guide

Version and release tracking

The Fabric releases page lists current patch releases for the 3.x and 2.5 LTS lines, which receive patch releases in parallel. Pin the exact Fabric version your migration guide describes, and confirm that the binaries you deploy match it on every ordering node and peer. Check the What's new page for changes that affect the version you target, and record the version in your change ticket.

Fabric releases

Why the 3f + 1 node count sets the size of the change

The 3f + 1 rule means a SmartBFT channel needs more ordering nodes than most teams expect from a Raft cluster, and that count drives every other piece of the migration. SmartBFT tolerates failures of up to, but not including, one third of the ordering nodes, so the consenter set must follow the 3f + 1 pattern, where f is the number of faulty nodes you intend to tolerate. Before you plan hosts, confirm the exact required count for your version and topology in the Fabric migration guide, because the guide is the source that governs the migration window.

A Raft cluster is crash fault tolerant: it keeps ordering while a majority of its nodes are available, so a five node cluster tolerates the loss of two nodes. SmartBFT is designed for a different threat, where an ordering node may behave arbitrarily, so it needs a larger set and more agreement traffic per block. The practical effect is that the consenter count you move to is usually larger than the one you had. Each new consenter needs its own host or pod, its own TLS identity, its own orderer endpoint published in channel configuration, and an owner who can keep it patched and backed up. As an illustrative example only, moving from a cluster of three Raft nodes to a BFT set requires you to size and staff new nodes, not just reconfigure existing ones.

Treat the node count as a cost and risk decision that you make before the maintenance window is scheduled. Ask your team to list, for each planned consenter, the host, the operating organization, the TLS certificate source, the endpoint address and the on-call owner. Confirm with the migration guide whether any of these can be prepared ahead of the window, since consenters and certificates cannot be added, removed or changed while the migration runs. Any consenter you cannot staff with an owner and a tested backup is a reason to delay the change, not to shrink the set.

How the migration window is sequenced from inventory to decommission

The sequence turns an existing Raft network into a SmartBFT network with every prerequisite verified, a rehearsed cutover, a recovery point in hand, and the old layout retired only after the new one proves healthy.

  1. Inventory channels, consenters and versions

    Record every channel, its consenter set and orderer endpoints, the Fabric version on each ordering node and peer, and the application capability level set on each channel. Include the ordering organizations, the TLS and signing certificates each consenter uses, and any peer that cannot be upgraded on the planned schedule. The output is a written inventory that lists every gap against the prerequisites, and the owner of each gap signs off on it before any binary changes.

  2. Upgrade all ordering nodes and peers to v3.0.0 or later

    Each ordering organization and peer operator upgrades binaries to Fabric v3.0.0 or later in a rolling fashion, following the upgrade guide, and confirms the running version through the operations service. Ordering nodes and peers both need to be on the 3.x line before the BFT migration starts. The check is that every node reports a version at or above v3.0.0 and that all channels still process transactions normally. Confirm the final patch level against the Fabric releases page, since the 3.x line receives patch releases.

  3. Set the V3_0 channel capability

    The channel administrators update each application channel's capability level to V3_0 through a channel configuration update, after all binaries are upgraded. The channel's organizations must approve the update under the channel's policies, and the change is applied on every channel that will migrate. The check is that each channel's configuration reports the V3_0 capability and that a sample transaction endorses and commits on each channel. Treat this as a one-way step for planning purposes, and confirm the exact behavior with the upgrade documentation before proceeding.

  4. Build the 3f + 1 layout in a test network

    In a staging network that mirrors production channels, consenter count, and certificates, build the target SmartBFT layout with a node count of 3f + 1 for the tolerated number of faulty nodes f. Run the migration there first, then exercise transactions, peer Deliver behavior, and orderer restarts. The check is a documented target layout, a recorded consenter map from the old Raft nodes to the new BFT nodes, and a clean run of the test migration. Parallel running in staging lets the team compare the two layouts before touching production.

  5. Rehearse the maintenance window

    Run the full maintenance sequence in staging with the same people, runbooks, and timing expectations that production will use. Rehearse the entry into maintenance mode, the submission of migration config updates across all channels on the targeted ordering nodes, the restart on the new layout, the rollback path, and the checks at each stage. Record each command, its output, and the points where a human decision is needed. The check is a signed rehearsal report that names any step that failed or ran long and the fix that was made before the production date.

  6. Take the backup point before maintenance mode

    Back up the ledger and MSP material of every ordering node in the window, and confirm the orderer backup point is at or ahead of every peer's ledger height. Maintenance mode rejects normal transactions, unrelated config updates, and Deliver requests from peers, so the orderer backup must not fall behind the peers. Store copies outside the ordering nodes and verify that they can be restored. The output is a recorded backup inventory with block heights per channel and a restore test result.

  7. Run the maintenance window across all channels

    Put the targeted ordering nodes into maintenance mode, then migrate every channel on those nodes within the same window. Consenters and certificates cannot be added, removed, or changed during the migration, so the consenter set stays fixed until the migration completes. The check is that each channel reports the new BFT consensus type, every ordering node reports the expected consenter set, and no channel is left partly migrated. If any channel cannot complete, stop and follow the rollback path rehearsed earlier.

  8. Verify health and transactions, then retire the old layout

    Confirm each ordering node through the /healthz endpoint and the operations metrics, then submit test transactions on every channel and confirm peers receive the blocks. Only after a defined period of stable operation, which the team sets in its own runbook, retire the old Raft nodes and remove their certificates and endpoints from configuration. The output is a verification record for each channel and a decommission record that shows which nodes were removed and when.

How the window moves from preparation to a verified BFT ordering service

The window starts with a prerequisite check covering Fabric versions, the V3_0 channel capability and the 3f + 1 node count. Only when those pass does the team take backups of ledgers and MSPs, with the orderer backup point kept ahead of peer ledgers. Each targeted ordering node then enters maintenance mode with every channel on it, consenters and certificates stay fixed while the migration runs, and the operations endpoints verify the result. The last step is a go or rollback decision, and rollback depends on the backup taken earlier.

Phased path from prerequisite checks to a go or rollback decision.

What drives the effort and the quote for a Raft to BFT window

This table lists the factors that move the effort of a Raft to SmartBFT window up or down, with what to request in a quote and whether each cost is one-time or recurring. Read it before asking for a fixed-scope proposal, because the first three rows set the size of the work and the later rows set how much rehearsal and evidence the window needs.

DriverEffect on effort and costWhat to ask for in a quote and cost type
Channels that must migrate togetherEvery channel on a targeted ordering node moves in the same window, so more channels mean more config updates, more validation and a larger rollback point. Effort rises with channel count and with differences between channels.Ask for a per-channel inventory and the migration plan for each channel. One-time.
Ordering organizations and nodes to reach 3f + 1Adding consenters to reach 3f + 1 requires new ordering nodes, certificates and channel config changes. Consenters cannot be added or changed during the migration itself, so this preparation happens beforehand. Effort rises with each organization that must add nodes.Ask who provisions each new node, what hardware or cloud capacity is included and how node identities are issued. One-time for setup, recurring for the larger ordering footprint.
Peer and orderer version stateMigration requires all ordering nodes and peers on Fabric v3.0.0 or later and channels at the V3_0 capability. Each component still on an older release adds an upgrade cycle, and channels not yet at the required capability add config work.Ask for a version inventory of every orderer and peer and a list of the upgrades needed first. One-time.
Custom images for PKCS#11 HSM keysPrebuilt Fabric Docker images are not built with PKCS#11, so HSM-protected peer and orderer MSP keys need custom images. TLS keys must stay file-based. Effort rises with the number of HSM-backed nodes and with the image build and test pipeline.Ask who builds, signs and tests the custom images and how they are rebuilt for later patch releases. One-time build, recurring rebuild and retest.
Certificate and TLS readinessCertificates for ordering nodes, peers and admins must be valid through the window and must match the consenter mapping. Certificate problems discovered during maintenance mode extend the window. Effort rises with the number of CAs, identity types and expiring certificates.Ask for a certificate inventory with expiry dates and a plan for renewals before the window opens. One-time, with renewal work recurring.
Client application changesClient applications connect to ordering and peers, and their connection and endorsement settings must stay valid through the window. Applications on legacy SDKs or with hard-coded endpoints need testing and updates. Effort rises with the number of applications and integrations.Ask for a list of client applications, their connection methods and the test cases each owner will sign off. One-time for changes, recurring if clients are updated later.
Size of the test environmentA test network that mirrors channel count, node count, HSM use and client traffic gives evidence before production. A smaller test network lowers setup cost but leaves more risk for the live window.Ask whether the test environment matches production topology and what data volumes it uses. One-time build, recurring if kept for later upgrades.
Number of rehearsalsEach rehearsal runs the backup, maintenance mode, migration and rollback steps. More rehearsals cost more time from engineers and infrastructure, but they reduce surprises in the live window.Ask how many rehearsals are included in the fixed scope, what each one must prove and how failed rehearsals are handled. One-time.

What usually goes wrong in the window and how to prevent it

Most failed Raft to SmartBFT conversions fail on preparation or sequencing, not on the consensus change itself. The cards below cover the failure points that recur in the window, each with the prevention step and the check that proves it before the window closes.

A channel missed from the window

Migration applies per channel on a targeted ordering node, and every channel on that node must move in the same maintenance window. A channel left on Raft when its peers expect BFT leaves the node in a mixed state that is hard to reason about. Build a complete channel inventory from each ordering node before the window and reconcile it against the change plan. Check that every channel on each node reports the BFT consensus type after the window. Confirm the inventory with the channel participation API output, not with memory.

Raft to BFT docs

Consenter changes made mid-window

Consenters and their certificates cannot be added, removed or changed during the migration. If a certificate is rotated or a node is replaced while the window is open, the altered node may be unable to join the consenter set that the migration expects. Freeze certificate and consenter changes in the change ticket for the whole window, and schedule any TLS renewal outside it. Check the consenter list and certificate fingerprints against the pre-window snapshot before starting and again before closing.

Unrelated config updates rejected

In maintenance mode, normal transactions, unrelated config updates and Deliver requests from peers are rejected. Any routine channel change, such as an organization update or a chaincode definition approval scheduled during the window, will fail and may block the team's other work. Put a hold on administrative changes for the affected channels and tell application owners that transactions will not be accepted. Check that no pending config update is queued for these channels before maintenance mode is entered.

Backup taken too late

The orderer backup must be the point that peers can catch up from. Because Deliver requests are rejected in maintenance mode, a backup that trails peer ledgers leaves blocks that peers hold but the orderer cannot reproduce. Take the orderer backup after maintenance mode is entered, so no new blocks are created afterward, and record the block height on every orderer and peer. Check that each peer's ledger height does not exceed the orderer backup height before any node is restarted.

Nodes still below v3.0

The migration requires all ordering nodes and peers to run Fabric v3.0.0 or later, and channels must carry the V3_0 capability. A single peer or orderer still on an earlier binary can turn a planned window into a rollback decision. Inventory the running version of every component before scheduling, and treat the upgrade of binaries and capability levels as a prerequisite, not part of the window. Check the version output on every orderer and peer and the capability setting on every channel.

Upgrade docs

Client applications that stop working

Applications that submit transactions or subscribe to events depend on the orderer endpoints and the network's current consenter set. If an application caches orderer addresses or relies on a connection profile that no longer matches the network, its submissions fail after the window closes even though the network is healthy. Inventory client applications and their connection configuration, and confirm that Fabric Gateway clients, which work with both v2.5 and v3.0, reconnect cleanly. Check that a test transaction and an event subscription succeed from each client application before the window is declared closed.

Questions teams ask before moving Raft channels to SmartBFT

What drives the cost and effort of a Raft to SmartBFT migration?

The largest drivers are how many channels and ordering nodes are in scope, how far the existing network is from the required version and capability prerequisites, and how many organizations must coordinate their maintenance windows. Fabric v3.0.0 or later is required on all ordering nodes and peers, channels must have the V3_0 capability, and node counts must follow 3f + 1, so any gap in those areas adds upgrade work before the consensus change itself. Costs are split between internal staff time for change approvals, backup verification and peer coordination, and any partner effort for scoping, rehearsal and execution. Most of this work is one-time. Ask any quote to itemize prerequisite upgrades, rehearsal environments, backup and restore testing, and post-migration verification separately.

How long does the migration window take, and what determines it?

The window length depends on the environment, so no duration should be assumed from this page. The factors that matter most are the number of channels that must move together, the time needed to take and verify the orderer backup, the number of peers and organizations that must confirm readiness, and how quickly each ordering node restarts and reaches a consistent state. All channels on a targeted ordering node must migrate in the same maintenance window, which makes channel count a direct schedule constraint. Ask your team or a partner to measure these steps in a non-production copy of the network before committing to a date.

What does the internal team need to supply for this work?

The internal team needs ordering service owners who can change consenter sets and endpoints, peer administrators who can confirm ledger heights and upgrade binaries, and someone who owns the backup and restore process. Each consortium member must agree to the maintenance window, because peers and clients are affected while the ordering service is in maintenance mode. Your team should also hold current TLS and MSP material, know where those certificates are stored, and be able to run health and version checks through the operations service. Confirm these responsibilities in writing before the migration plan is approved.

Can our own team run the Raft to SmartBFT migration alone?

A capable Fabric team can run the migration alone if it has experience with ordering service administration, the Fabric upgrade sequence and rolling binary upgrades, and it has time to rehearse. The questions to answer honestly are whether the team has rehearsed a backup restore, whether it can coordinate multiple consortium members on one window, and whether it has a rollback plan that has been tested. Teams without this experience often engage a partner for planning, rehearsal and execution support, and keep the decisions and approvals in-house. Under a fixed-scope engagement, DeployOpen agrees scope, deliverables and timelines in writing before work starts.

Can we reverse a Raft to SmartBFT migration after cutover?

Plan on the migration being one-way for the channels in the window, so the rollback path is the backup taken before maintenance mode starts. The Fabric migration documentation states that all channels on a targeted ordering node must migrate together and that consenters or certificates cannot be added, removed or changed during the migration. In maintenance mode, normal transactions and Deliver requests from peers are rejected, so the orderer backup point must stay ahead of peer ledgers. Confirm with the Fabric migration documentation exactly which restore steps are supported before you commit, and rehearse them in a test network.

Can the number of ordering nodes change during the migration window?

No. Consenters or certificates cannot be added, removed or changed during the migration, so node membership must be settled before the window opens. The target node count must follow 3f + 1, which means any consenter changes needed to reach that count belong in a separate, earlier change. Plan these changes with the ordering service owners and confirm that the result passes the prerequisite checks before scheduling the maintenance window. Changing membership in the middle of the window is outside what the migration supports.

How does this migration relate to earlier Kafka, legacy lifecycle and system channel work?

Those earlier migrations are prerequisites on the path to Fabric v3.x. Fabric v3.0 removed Solo and Kafka consensus and the v1.x legacy chaincode lifecycle, so Kafka ordering must already be on Raft and all channels must already use the v2.x lifecycle. The system channel to channel participation API migration also needs to be complete, because it changes how ordering nodes are managed per channel. Raft to SmartBFT comes after those steps, and it still requires the V3_0 channel capability and Fabric v3.0.0 or later on all nodes and peers. Review each prerequisite against the current network before setting the SmartBFT window.

How DeployOpen works on this

DeployOpen approaches a Raft to SmartBFT migration as a fixed-scope engagement that starts with a written inventory of your Fabric version, channel capabilities, consenter layout and backup position. The work is rehearsed on a non-production copy of your network before any production channel enters maintenance mode.

How we scope

  • Inventory every ordering node, peer and channel, including the Fabric version and channel capability level each one runs today.
  • Confirm that all nodes can reach v3.0 or later and that the node count plan matches 3f + 1 before any change is scheduled.
  • Agree in writing which channels, organizations and ordering nodes are in the maintenance window and what is explicitly out of scope.

How we build

  • Rehearse the full sequence on a staging copy of the network, including the consenter mapping and the rolling restart order.
  • Verify the backup of ordering nodes and peer ledgers and record the restore procedure with timings measured in your environment.
  • Prepare the configuration updates, TLS and certificate material and rollback steps, and test each one against the rehearsal network.

How we hand over

  • Deliver a runbook that lists each command, the expected output, the checkpoint and the owner for every step in the window.
  • Document the freeze rules for the window, including which transactions, config updates and peer deliver requests are blocked.
  • Walk your operations team through post-migration health checks, including operations service endpoints secured with mutual TLS.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after the migration is complete.
  • Plan follow-up work for Fabric patch releases on both the 3.x and 2.5 LTS lines, scoped in writing.
  • Confirm with your team which support hours, escalation contacts and response expectations apply before the retainer starts.

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.