update Storage Node from V2 (Newton) to V3 (Galileo)

a little bit of information about your node's update!

πŸ“‹ Prerequisites

Before using setup_zgs.sh, make sure the following conditions are met:

  1. You have previously run a ZGS node and have the following directory structure:

$HOME/0g-storage-node/
β”œβ”€β”€ target/release/zgs_node         # binary executable
└── run/                            # runtime data folder
  1. Your systemd service was named zgs.service, e.g.:

sudo systemctl status zgs
  1. You are okay with resetting your configuration and database. The script will permanently delete the following:

$HOME/0g-storage-node/run/db/
$HOME/0g-storage-node/run/config.toml
  1. You have a valid miner_key ready (and this wallet has a balance ). The script will prompt for this key and automatically insert it into config.toml.

  2. Your machine is connected to the internet to fetch the updated config file from:

https://raw.githubusercontent.com/bwoogmy/0g-storage-v3/main/config.toml

⚠️ Important

This script will:

  • stop and remove the existing zgs systemd service

  • delete the local database and config file

  • download a fresh config

  • inject your provided miner_key

  • create a new systemd unit file for zgs

  • start the service and begin log tailing

Only run this script if you are sure you want to reset your node.

If all good - lets go!

Last updated