Pruning Geth on your Rocket Pool node

dkderek
2 min readAug 24, 2021

--

A quick guide to help you configure your node to run a Geth pruning script

  1. Please first see Rocket Pool documentation on this topic here: https://docs.rocketpool.net/guides/node/geth-pruning.html
  2. Ensure your system is up to date. Run sudo apt update and then sudo apt dist-upgrade to install any updates. More info here.
  3. If not installed already, we’ll need to install ZSH. You can check if it is installed with zsh — version If not installed, go ahead and issue the following command sudo apt-get install zsh
  4. To create the script file, start by opening your text editor and paste in the sample script provided in the Rocket Pool documentation. In screenshot 1 below we’re using Midnight Commander (you can install with sudo apt-get install mc). Note, the documentation states that the script only works on ARM devices. It will work for X86 if ZSH is installed, which we did above. Paste in the sample script from the Rocket Pool documentation
  5. Update the script if necessary, such as adjusting your disk path. The script should work for most as-is
  6. Save the script — this will create our file. We’re using the path and title as suggested in the Rocket Pool documentation in example screenshot 2 below. Exit your text editor
  7. Run the script using the zsh command followed by the path and filename of the script we created. In our example this is zsh ~/prune-geth.sh
  8. Confirm the path is correct and script will run. The time to run this script will vary depending on how long your node has been running and time since your last pruned. It can take as little as 20 minutes or as much as 5–10 hours. My suggestion is to run this script on a regular basis, such as quarterly
Screenshot 1
Screenshot 2

--

--

dkderek
dkderek

Written by dkderek

Digital customer experience fanatic, tech & crypto enthusiast, small scale farmer. Constantly curious and striving to improve while maintaining balance.

No responses yet