Skip to content
Monpediaby Unity Nodes
Monad Docsnode ops › upgrade instructions › page storage mip 8 migration

MIP-8 Activation and Page Storage Migration

From docs.monad.xyz/node-ops/upgrade-instructions/page-storage-mip-8-migrationUpdated Nov 19, 2026read Nov 19, 2026

Contents18 sections

Introduction

This document covers the operational side of activating MIP-8: migrating a node's database from slot to page encoding, live and without resyncing from genesis. Each node dual-writes both encodings until the fork flips the network to page-encoded database, then drops the old slot-encoded database.

Background

MIP-8

MIP-8 reorganizes the EVM state trie to be page-aware: storage slots are grouped into 4 KB pages instead of being scattered independently across disk by hashing. For node operators, what matters is that this changes the on-disk trie layout — which is why a migration is required.

TrieDB timelines

A timeline is a full copy of the trie state on disk, built by writing every committed block into it in a given encoding. A node can run one or two timelines at once, each in its own encoding:

  • Slot-encoded timeline uses the current trie layout, where each storage slot's disk location is determined independently by hashing. This is the pre-MIP-8 format.
  • Page-encoded timeline uses the MIP-8 layout, where slots are packed into pages of 128 consecutive slots. This is the post-MIP-8 format.

Dual mode is a transitional state where a node runs both encodings at once, as two timelines on disk, and writes every committed block to both. A node stays in dual mode for the whole window between activating the page timeline and decommissioning the slot timeline.

Primary and secondary just label the two timelines on disk. They have no effect on execution or consensus. Over the course of the migration, primary and secondary swap, then the secondary is dropped (see Migration plan).

State machine kinds

The node's database tooling (monad-mpt, monad-cli) refers to slot and page encoding as state-machine kinds:

Kind on CLI Encoding
ethereum slot
monad page

What matters for execution is which timeline is canonical versus shadow. The canonical timeline is the one whose state_root is used for blocks on the canonical chain; the shadow timeline computes the same blocks on the other encoding in parallel, without its state_root being used anywhere.

MIP-8 activation is exactly the flip between the two:

  • before activation, ethereum (slot) is canonical and monad (page) is the shadow
  • this swaps at the hard fork, monad (page) becomes canonical and ethereum (slot) becomes the shadow.

This is why activation happens by network-wide consensus.

Migration plan

The migration runs in three phases: two operator actions and one hard fork. Phase A activates the page timeline on each node. Phase B is the MIP-8 hard fork: at a fixed timestamp, the canonical chain switches from the slot timeline to the page timeline. Phase C decommissions the now-legacy slot timeline.

1. Initial

DB mode is Legacy/Slot — a single slot timeline. Execution is Pre MIP-8 Activation.

2. Phase A — Page activation

Operators activate the page secondary, bringing DB mode to Dual. Execution is still Pre MIP-8 Activation — nothing changes at the execution level yet.

3. Phase B — Hard fork

At the fork timestamp, MIP-8 activates network-wide: the page timeline becomes canonical and the slot timeline becomes its shadow. The node stays in Dual mode.

4. Phase C — Slot decommission (Final)

Operators promote the page timeline as primary, and decommission the now secondary slot timeline. DB mode flips to Page — a single page timeline. The node is now fully migrated.

Operations

Network status

Network Phase Hard fork timestamp MIP-8 activated
Testnet Complete 1786545000 (2026-08-12 14:30 UTC) Yes
Mainnet Phase-C 1788359400 (2026-09-02 14:30 UTC) Yes

Get the current status

Check a node's current on-disk state directly with monad-mpt:

monad-mpt --storage /dev/triedb

Legacy/Slot — migration not started:

Active timelines:
     Primary:
        State machine kind: ethereum

Dual — migration in progress:

Active timelines:
     Primary:
        State machine kind: ethereum
     Secondary:
        State machine kind: monad

Page — migration complete:

Active timelines:
     Primary:
        State machine kind: monad

Prometheus Metrics

You can monitor the dual-DB migration phase via the Prometheus metric monad_triedb_migration_phase:

  • 0: slot-encoded (expected value during Init phase)
  • 1: dual-mode (expected value during Phase A and Phase B)
  • 2: page-encoded (expected value during Phase C)

Monad Status

The monad-status script has been updated to reflect the TrieDB mode, e.g.:

triedb:
  model: SAMSUNG MZQL21T9HCJR-00A07
  device: nvme0n1p1
  mode: dual-timeline
  timelines:
    primary: ethereum
    secondary: monad

Hard reset a node

The hard reset process itself doesn't change — still follow the Hard Reset Instructions. The DB mode logic below happens automatically inside that same restore-from-snapshot step; there's no new manual procedure to learn.

A hard reset doesn't migrate your existing database — it wipes it and rebuilds from a snapshot. That means the reset tooling can't look at your node's prior on-disk state to decide what to rebuild (the reset truncates the DB before anything else runs), so it picks the target DB mode with this logic:

  • If the MIP-8 hard fork has already passed, it creates a page timeline only, and imports the snapshot into it.
  • If the fork hasn't passed yet and it can also create a page timeline, the result is Dual mode, with the snapshot imported into both timelines.
  • If the fork hasn't passed yet and it can't create a page timeline, the result is Legacy/Slot, with the snapshot imported into the slot timeline only.
MIP-8 Activation timestamp Page timeline creation supported Resulting DB mode
MIP-8 Active — Page
Inactive Yes Dual
Inactive No Legacy/Slot

The first row is deliberate: once MIP-8 is active on the network, there's no reason to stand up a slot timeline just to decommission it again in the very next phase — a reset node goes straight to page-only.

Migration tasks

This applies to both full nodes and validators. The migration runs in three phases. Phases A and C are actions you take on each node; phase B is a network-wide hard fork that happens on a schedule.

Phase A - Page activation

Do not run this procedure. Wait for the official Monad Foundation announcement.

Validators migration will occur in cohorts. Ensure you know which cohort you are in, and only action these steps when your cohort is announced. Deployment dates and cohorts will be communicated via official channels.

This process is supported starting from 0.15.2. This step uses the new monad-mpt and monad-cli binaries starting from this version.

Stop the monad services:

sudo systemctl stop monad-bft monad-execution monad-rpc

The snapshot dump will open many file descriptors (8 per shard). If your system's open-file limit is at the default 1024, the dump will crash.

Raise the limit before running:

ulimit -n 65536

Prepare the snapshot folder and clean up any pre-existing secondary timeline:

SNAP_DIR="/home/monad/monad-bft/snapshots/page-migration"
rm -rf "$SNAP_DIR" && mkdir -p "$SNAP_DIR"
monad-mpt --storage /dev/triedb --deactivate-secondary || true

Activate the secondary timeline:

monad-mpt --storage /dev/triedb --repair
monad-mpt --storage /dev/triedb --activate-secondary --state-machine monad

Expected output: Activated secondary timeline; stamped state-machine kind to monad.

Dump a snapshot of the current primary:

monad-cli --db /dev/triedb --version latest_finalized --dump-binary-snapshot "$SNAP_DIR"

Expected output: snapshot dump success=true. Takes approximately 5 minutes.

Load the snapshot into the page secondary:

monad-cli --db /dev/triedb --version latest_finalized --load-binary-snapshot "$SNAP_DIR" --secondary

Expected output: load_to_secondary=true. Takes approximately 3 minutes.

Clean up the snapshot:

rm -rf "$SNAP_DIR"

Verify the status of TrieDB:

monad-mpt --storage /dev/triedb

The command should print output similar to the following:

Active timelines:
     Primary:
        State machine kind: ethereum
        History: 19513 versions, earliest is 47516671, latest is 47536183
        Auto expire version: 47516671
     Secondary:
        State machine kind: monad
        History: 256 versions, earliest is 47535928, latest is 47536183
        Auto expire version: 47535929

Verify that the latest values for both timelines are close (47536183 in this example):

  • Primary: latest is 47536183
  • Secondary: latest is 47536183

A difference of a few blocks (up to ~10) is normal.

Start the Monad services:

sudo systemctl start monad-bft monad-execution monad-rpc
sudo systemctl status monad-bft monad-execution monad-rpc --no-pager -l

All services should show Active: active (running). Confirm the node rejoins and advances blocks.

Once complete, the node is in dual-write mode — it will commit every new block to both timelines on next start. The monad-execution logs would print state_root primary=<slot root> secondary=<page root>, both timelines should appear for each block.

Run this on every node to bring the node into dual mode. Every node must complete this phase before the MIP-8 hard fork timestamp.

Phase B - MIP-8 Hardfork

MIP-8 activation

Phase B is a scheduled protocol upgrade, not an operator action. Its timestamp is encoded in a chain-wide release and is identical for every node — it only ships once the whole network has completed phase A.

At that timestamp, MIP-8 activates at the execution level and the canonical state_root flips from the slot timeline to the page timeline, network-wide, in the same block:

  • Before the fork — the slot timeline is canonical; the page timeline shadows it.
  • At and after the fork — the page timeline is canonical; the slot timeline shadows it.

Which timeline is on-disk primary is independent of which one is canonical.

Phase C - Slot decommission

This phase will decommission the slot timeline in the TrieDB. This action can be done only after the MIP-8 activation hard fork timestamp.

Validators migration will occur in cohorts. Ensure you know which cohort you are in, and only action these steps when your cohort is announced. Deployment dates and cohorts will be communicated via official channels.

State Archive nodes

State Archive nodes do not run this phase — see State Archive nodes.

Also note that nodes that performed a hard reset after the MIP-8 activation timestamp would have been restored with a Page timeline only, and would not need to decommission any timelines.

Verify the node needs this phase:

monad-mpt --storage /dev/triedb

Expected output:

Active timelines:
     Primary:
        State machine kind: ethereum
     Secondary:
        State machine kind: monad

Only proceed if Primary is ethereum (slot) and Secondary is monad (page). Any other combination means the node should not run this phase.

Stop the monad services:

sudo systemctl stop monad-bft monad-execution monad-rpc

Promote the page secondary to primary:

monad-mpt --promote-secondary --storage /dev/triedb

Deactivate the now-stale slot timeline, reclaiming its disk space:

monad-mpt --deactivate-secondary --storage /dev/triedb

Verify the status of TrieDB:

monad-mpt --storage /dev/triedb

The command should print output similar to the following:

Active timelines:
     Primary:
        State machine kind: monad

Only a single Primary timeline with state machine kind monad should remain — the slot timeline is now gone.

Start the Monad services:

sudo systemctl start monad-bft monad-execution monad-rpc
sudo systemctl status monad-bft monad-execution monad-rpc --no-pager -l

All services should show Active: active (running). Confirm the node rejoins and advances blocks. It's now a single page timeline.

Future releases of Monad will enforce having the slot-encoded timeline decommissioned.

State Archive nodes

A State Archive node (also called a historical full node) stores every block since genesis in its local TrieDB database, rather than pruning old state. This makes it a special case in the MIP-8 migration:

  • Phase A — no difference. State Archive nodes upgrade and run the Dual-DB migration the same way as any other node.
  • Phase B — at the hard fork timestamp, re-run the Phase A procedure on State Archive nodes. This re-seeds the secondary timeline at the primary timeline's current position — a special case that only applies to State Archive nodes.
  • Phase C — State Archive nodes do not run slot decommission. Skip this phase: the slot-encoded timeline stays active permanently so the node keeps its full history.

Further reading