Hi,
learning coding… my first script for today is for node software upgrade. Enjoy it!
download
wget https://raw.githubusercontent.com/Alexd1985/node_software_upgrade_script/main/software_upgrade.sh
or
curl https://raw.githubusercontent.com/Alexd1985/node_software_upgrade_script/main/software_upgrade.sh > software_upgrade.sh
make executable:
chmod +x software_upgrade.sh
run
./software_upgrade.sh
I added support for current version check
Added menu for version select, the latest 10 versions are shown
Contributors: Alex (CHARITY Pool), George (APEX Pool) and Trey (CHAOS Pool) !
Thank you,
22 Likes
Do we use the wget into the scripts folder?
1 Like
doesn’t matter … use it on folder where u will want to save… I saved it on scripts folder for example,
2 Likes
Everything worked good for me. Thanks for making this!
2 Likes
updated to 1.33.0 with your script, nice.
As per iohk note below, it took me about 2 hours to sync, be aware and patient.
Breaking Changes
With this version, the ledger state will need to be replayed from the genesis block , meaning that the initial synchronisation may be slow. Users should account for this when deploying the node.
4 Likes
Everything looking good. Thanks for the script!
1 Like
upgrading with no backup using your script. if my servers break we know who to blame (myself)
also if you can add the 2 steps with the upgrade / version. I know its in the terminal image, but helpful for dummies like myself.
1 Like
Which steps? I don’t understand…
PS: the upgrade should work like a charm
Where it ask if you want to upgrade Linux and what version.
Ok, where should I add these steps?
My block became a relay, anything to worry about?
Nope, it will show relay while the node is starting… be patient because it will take more hours to start (ledger had few changes)
1 Like
Great job Alex. Started the upgrade with your script
Just to add my experience with upgrade.
First relay took around 2hrs 50mins, ah.
Created a db.tar.gz compressed copy of the DB folder in relay1 and transferred it to my other relay & BP(took 30mins, parallel copy using cyber duck).
For 2nd relay & BP commented the below part in Alex script and started the upgrade in parallel.
sudo systemctl start cnode
sleep 10
echo “The node has been started… opening gLiveView!”
sleep 3
cd $CNODE_HOME/scripts
./gLiveView.sh
Once node upgrade completed. Moved the existing DB folder to other directory(~/tmp) and uncompressed the db file created in step2.
Started the cnode service and it took around 30mins for both 2nd relay & BP to sync.
overall we saved good amount of weekend time
2 Likes
Alex,
Great job, once again. Already upgraded 3 relays and currentñy finishing with the BP, no issues at all, flawless!
Thanks so much for your consistent contribution to this community.
Rgds,
Albert. URSA SPO
2 Likes
Great script! Works fine without any problems.
Saving a lot of time with this, thank you
2 Likes
Seshat
13 January 2022 03:55
#20
Worked great on the first relay and starting the producer…
THANKS
1 Like