Yesterday I migrated a node from one siteI have to another site via WAN. To sync the data it took about 2 days (about 900GB transferred).
Everything was ok with the Rsync. The last steps I performed were:
- shutdown the source node by doing “docker stop -t 300 storagenode”
- issue the last Rsync (however I forgot to put the --delete). It took 10 min to sync the last data.
Then I started the node in the new place and i realized that, even the node was starting I was not showing properly. Then I checked the logs and saw that the database was malformed.
I restarted the node three or four times, just to see if this could fix the issue, but nothing.
Then I checked 2 things:
- How to properly migrate a node (and realize about the --delete parameter)
- How to fix “the database is malformed”, which is a nightmare.
I’d tried for issuing the rsync again but with --delete parameter now. After doing that, the node started well and all the information apparently was ok, showing all my data and so on.
My question is, being about 2 minutes or 3 in each try with the database malformed, can damage my node?
And the second question is, if after issuing the rsync with the --delete parameter it worked properly (even considering that the previous tries weren’t correct) this means that everything is ok or do i have to worry for something?
Just to clarify, it happened something similar to that:
Thanks!!