<aside> 💡
Read the sharding AIP here:
https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-97.md
</aside>
Storage sharding is managed through your local node configuration. Since the new storage format is incompatible with the previous one, a full DB wipe is required to proceed.
<aside> 💡
Aptos node version required for sharding upgrade: aptos-node-v1.21.2 or higher
</aside>
Flag to start the format migration:
storage:
rocksdb_configs:
enable_storage_sharding: true
/opt/aptos/data/db/consensus_db
/opt/aptos/data/secure-data.json
v1/info
 endpoint, you should be able to see "new_storage_format":true
Here is a list of flags (and examples) that might require attention during the migration.
Sync mode
state_sync:
state_sync_driver:
bootstrapping_mode: DownloadLatestStates
continuous_syncing_mode: ExecuteTransactionsOrApplyOutputs
Specify peer(s)
# Note: Replace the address with the upstream you want to use.
seeds:
D717AF1761645FFACFE5A455FB021052AC0FEFBC1B97FC3681BA61423C043D23:
addresses:
- /dns4/pfn0.backup.cloud-a.mainnet.aptoslabs.com/tcp/6182/noise-ik/D717AF1761645FFACFE5A455FB021052AC0FEFBC1B97FC3681BA61423C043D23/handshake/0
role: Upstream
storage:
db_path_overrides:
ledger_db_path: "/disk0/db"
state_kv_db_path:
metadata_path: "/disk0/db"
shard_paths:
- shards: "1-3,7"
path: "/disk1/db"
- shards: "11-12,15"
path: "/disk2/db"
state_merkle_db_path:
metadata_path: "/disk0/db"
shard_paths:
- shards: "0-7"
path: "/disk3/db"
- shards: "8-15"
path: "/disk4/db"