Skip to content
This repository has been archived by the owner on Mar 2, 2020. It is now read-only.

Copy Data From Healthy Node to Slashed Node

Nick Yeates edited this page Jan 11, 2019 · 1 revision

All brackets [ ] are not to be used in command lines.

All of this is done in Root su - to get to Root.

  • Shutdown #TomoChain on your Healthy Node
    tmn stop
  • SSH to your Slashed Node from the Healthy Node.
    ssh -v root@[Your IP address for Slashed Node]
  • Shutdown #TomoChain on your Slashed Node
    tmn stop
  • Remove all data in your Docker Container
    rm -rf /var/lib/docker/volumes/[Your MN Name for Slashed Node]_chaindata/_data/data/tomo/chaindata
  • Next Command Line will take near to 30 minutes if in same server area of the world. This is the secure copy portion.
    scp -r root@[IP for Healthy Node]:/var/lib/docker/volumes/[Name of Healthy Node]_chaindata/_data/data/tomo/chaindata /var/lib/docker/volumes/[Name of Slashed Node]_chaindata/_data/data/tomo/chaindata
  • Reboot Slashed Node by putting command after script stops
    reboot
  • The SSH to Slashed Node will close out and you are back in Healthy Node. Now Start Healthy MasterNode back up.
    tmn start
  • Login to Slashed MasterNode via SSH directly and Start MasterNode.
    tmn start

Sync for about an epoch worth of blocks and await the process of coming back to full MasterNode which is near to 2 hours.