Starchiver
- Run Starchiver 2025 to refresh all snapshots (Deletes old snapshots)
- Run Starchive cleanup only process
- Automate Starchiver process so your node runs efficiently. (DOCUMENT IN PROGRESS)
Run Starchiver 2025 to refresh all snapshots (Deletes old snapshots)
NOTE! It is very important your node is not running on the layer 0 cluster at any time during this process.
Disable auto-restart
sudo nodectl configure -e -d -cb
Press R to turn off Auto Restart, then Q to quit.
Leave the Layer 1/0 cluster
sudo nodectl leave -p dag-l1
sudo nodectl leave -p dag-l0
Download the latest script in the /tmp folder
cd /tmp
sudo curl -o starchiverT3-ext.sh https://raw.githubusercontent.com/StardustCollective/Starchive-Extractor/main/starchiverT3-ext.sh
Make the script executable
sudo chmod +x starchiverT3-ext.sh
Run Starchiver 2025 with the delete switch to wipe and refresh everything
sudo ./starchiverT3-ext.sh -d
• Choose MainNet,
• Select the option for the snapshot data path (dag-l0),
Obsolete hashes At the end, you may see an option to Scan to Cleanup Obsolete Hash files:
• Count of obsolete hash files,
• Disk space they used,
• Option to reclaim space
Once done do the following
Clear out java process so it starts fresh.
sudo kill -9 $(ps aux | grep '[j]ava' | awk '{print $2}')
Restart your node
sudo nodectl restart -p all
Expect some DIP so let that finish up and confirm when the status reads Ready. Once Ready start L1
and re-enable Auto-Start
Run Starchive cleanup only process
This is an assumption you saved the starchiverT3-ext.sh to /tmp. If its in a different directory please cd /yaddayadda
cd /tmp
sudo ./starchiverT3-ext.sh --onlycleanup --data-path /var/tessellation/dag-l0/data
Automate Starchiver process so your node runs efficiently. (DOCUMENT IN PROGRESS)
Create the folder and place script in it
- You need a permanent place to put the script so do the following
- mkdir /scripts (This makes the directory)
- chown nodeadmin:nodeadmin /scripts (This changes the owner to the nodeadmin account)
- chmod 770 (This allows the Root/Nodeadmin account to Read/Write/Execute)
- cp /tmp/<starchive script.sh> /scripts (This copies the script from the /tmp directory to /scripts
Crontab - Crontab is scheduler so you can launch scripts hourly/daily/weekly/monthly.
- type "sudo crontab -e" (Edit the crontab)
- Pick 1. nano unless you like other editors.
Add the following to the bottom of the crontab to run the script at 10AM Sunday
0 10 0 /scripts/<starchiver script> -options
It should look like this...