Upgrade Storage Node
1. Stop node and update dependencies
Section titled “1. Stop node and update dependencies”sudo systemctl stop zgs
sudo apt-get updatesudo apt-get install openssl libssl-dev pkg-config
2. Remove old data & Backup config file
Section titled “2. Remove old data & Backup config file”cd $HOMErm -rf $HOME/0g-storage-node/run/dbmv $HOME/0g-storage-node/run/config-testnet-turbo.toml $HOME/config-testnet-turbo_backup.toml
3. Clone and build new binary
Section titled “3. Clone and build new binary”cd $HOME/0g-storage-nodegit fetch --all --tagsgit checkout v0.8.7git submodule update --initcargo build --release
⚠️ Important: Always verify you are using the correct version tag when checking out the new version.
4. Move config file back
Section titled “4. Move config file back”mv $HOME/config-testnet-turbo_backup.toml $HOME/0g-storage-node/run/config-testnet-turbo.toml
5. Restart node
Section titled “5. Restart node”sudo systemctl restart zgs && sudo systemctl status zgs