Testnet Networks
Galileo
Storage Node Upgrade

1. Stop node and update dependencies

sudo systemctl stop zgs
sudo apt-get update
sudo apt-get openssl libssl-dev pkg-config

2. Remove old data & Backup config file

cd $HOME
rm -rf $HOME/0g-storage-node/run/db
mv $HOME/0g-storage-node/run/config-testnet-turbo.toml $HOME/config-testnet-turbo_backup.toml

3. Clone and build new binary

cd $HOME/0g-storage-node
git fetch --all --tags
git checkout v0.8.7
git submodule update --init
cargo build --release

4. Move config file back

mv $HOME/config-testnet-turbo_backup.toml $HOME/0g-storage-node/run/config-testnet-turbo.toml

5. Restart node

sudo systemctl restart zgs && sudo systemctl status zgs

Use snapshot:

You can use J-NODE snapshot to sync faster

Stop Storage node

sudo systemctl stop zgs

Install tool

sudo apt-get update
sudo apt-get install wget lz4 aria2 pv -y

Download snapshot

LogSyncHeight 3748425 | Size: 8.0G
cd $HOME
rm storage_0gchain_snapshot.lz4
aria2c -x 16 -s 16 -k 1M https://josephtran.co/storage_0gchain_snapshot.lz4

Extract data:

rm -rf $HOME/0g-storage-node/run/db
lz4 -c -d storage_0gchain_snapshot.lz4 | pv | tar -x -C $HOME/0g-storage-node/run

Restart node

sudo systemctl restart zgs && tail -f ~/0g-storage-node/run/log/zgs.log.$(TZ=UTC date +%Y-%m-%d)