The Ethereum Mainnet archive node has a size of 3.1TB on September 11th, 2024
Setup production Erigon
This guide covers the installation ofErigon, an implementation of Ethereum (execution layer), on the efficiency frontier, Archive Node by default, and Lighthouse(with historical blobs required for most L2 chains), as a Consensus Layer.
sudosystemctldaemon-reload#refresh systemd configuration when changes madesudosystemctlenableerigon.service#enable erigon service at system startupsudosystemctlstarterigon.service#start erigonsudonano/etc/systemd/system/erigon.service#make changes in erigon.service file
Build Lighthouse
Go to the Releases page and select the latest release:
cd/root/mkdirlighthouse_datamkdirlighthouse&&cdlighthousewgethttps://github.com/sigp/lighthouse/releases/download/v5.3.0/lighthouse-v5.3.0-x86_64-unknown-linux-gnu.tar.gztar-xzflighthouse-v5.3.0-x86_64-unknown-linux-gnu.tar.gz#Extract the tar.gz archivechmod+x/root/lighthouse/#Grant execute permissions to the files in the directory
Create systemd file for Lighthouse
sudonano/etc/systemd/system/lighthouse.service
Paste the configs and save by entering ctrl+X and Y+ENTER:
sudosystemctldaemon-reload#refresh systemd configuration when changes madesudosystemctlenablelighthouse.service#enable Lighthouse service at system startupsudosystemctlstartlighthouse.service#start Lighthousesudonano/etc/systemd/system/lighthouse.service#make changes in lighthouse.service file
Monitor the logs for errors
journalctl-uerigon.service-f-n100#follow logs of erigon.servicejournalctl-ulighthouse-f-n100#follow logs of lighthouse.service
During the synchonization, you are expected to get following log messages fromerigon:
Sep 06 01:05:36.659 INFO New block received root: 0x9bf6a56781caf6b6e57cb6a0cead5e9ada0c417a36d4dd3d6924d07e5993935b, slot: 9896726
Sep 06 01:05:41.000 WARN Head is optimistic execution_block_hash: 0x613050be274505439dda4867d07840bd2e2e6e9ba0cddd96aada49449861bbb2, info: chain not fully verified, block and attestation production disabled until execution engine syncs, service: slot_notifier
Run curl command in the terminal to check the status of your node
curl -H "Content-type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}' http://localhost:8545