Pruning the execution client to free up disk space

Execution clients (formerly known as eth1 nodes) grow quickly. Run this process to prune the blockchain and free up space.

Quick steps guide

The following steps align with our mainnet guide. You may need to adjust file names and directory locations where appropriate. The core concepts remain the same.

🗡️ Why do I want to prune my execution client?

  • Free up gigs of precious disk space. Typically 200gb or more is common.

🤖 Pre-requisites

  • Works with geth currently. Erigon and Besu prune automatically.

  • Ensure at least 50+ GB of free disk space is available otherwise database corruption may occur.

🚧 How to prune execution client

Ensure adequate failover or backup execution clients are configured for use with your beacon-chain node before proceeding. geth is offline and unavailable during this process.

1. Note how much disk space is currently used and stop the execution client

df
sudo service eth1 stop

2. Start the pruning process and monitor it's process.

/usr/bin/geth snapshot prune-state --datadir $HOME/.ethereum

3. Once the pruning is finished, restart the execution client service.

sudo service eth1 restart

4. Compare the disk space of the node after pruning.

df

🤖 Start staking by building a validator

Visit here for our Mainnet guide