Dealing with Storage Issues on the Execution Client

It is currently recommended to use a minimum 1TB hard disk.

Kudos to angyts for this contribution.

After running the execution client for a while, you will notice that it will start to fill up the hard disk. The following steps might be helpful for you.

Since Geth 1.10x version, the blockchain data can be regularly pruned to reduce it's size.

Reference: https://gist.github.com/yorickdowne/3323759b4cbf2022e191ab058a4276b2

You will need to upgrade Geth to at least 1.10x. Other prerequisites are a fully synced execution engine and that a snapshot has been created.

Stop your execution engine

sudo systemctl stop execution

Prune the blockchain data

sudo -u execution geth --datadir /var/lib/geth snapshot prune-state

Restart execution engine

sudo systemctl start execution