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:
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 folderYour systemd service was named
zgs.service, e.g.:
sudo systemctl status zgsYou 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.tomlYou have a valid
miner_keyready (and this wallet has abalance). The script will prompt for this key and automatically insert it intoconfig.toml.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
zgssystemd servicedelete the local database and config file
download a fresh config
inject your provided
miner_keycreate a new systemd unit file for
zgsstart 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