# Moving a storagenode be sure to run the final rsync with delete step

**URL:** <https://forum.storj.io/t/moving-a-storagenode-be-sure-to-run-the-final-rsync-with-delete-step/8216>\
**Category:** troubleshooting\
**Tags:** offline\
**Created:** [July 20, 2020, 12:43pm UTC](https://forum.storj.io/t/moving-a-storagenode-be-sure-to-run-the-final-rsync-with-delete-step/8216 "2020-07-20T12:43:22Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrew2.hart](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/andrew2.hart/32/6415_2.png) [@andrew2.hart](https://forum.storj.io/u/andrew2.hart)\
**Post date:** [July 20, 2020, 12:43pm UTC](https://forum.storj.io/t/moving-a-storagenode-be-sure-to-run-the-final-rsync-with-delete-step/8216/1 "2020-07-20T12:43:22Z")

</div>

I just moved a storagenode from 64bit ubuntu onto 32bit raspian and on start up the storagenode would not go online.  
It seems the db are not compatible.

Just a note of caution 😉

Edit to say changed title as it is suspected that 32bit is not the problem

---

<div class="post-metadata">

**Author:** ![donald.m.motsinger](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/donald.m.motsinger/32/71_2.png) [@donald.m.motsinger](https://forum.storj.io/u/donald.m.motsinger)\
**Post date:** [July 20, 2020, 1:51pm UTC](https://forum.storj.io/t/moving-a-storagenode-be-sure-to-run-the-final-rsync-with-delete-step/8216/2 "2020-07-20T13:51:59Z")

</div>

I really doubt it, but wait for an answer from someone who knows for sure.

It’s maybe more a permission problem.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [July 20, 2020, 8:17pm UTC](https://forum.storj.io/t/moving-a-storagenode-be-sure-to-run-the-final-rsync-with-delete-step/8216/3 "2020-07-20T20:17:13Z")

</div>

Is it starting?  
If so, then use a standard Offline troubleshooting:

> [@My Node is OFFLINE for 2 hours](https://forum.storj.io/t/736/2):
>
> It should connect in seconds. There are a few things you should check. Start with checking the port. On [https://www.yougetsignal.com/tools/open-ports/?port=28967](https://www.yougetsignal.com/tools/open-ports/?port=28967) you can fill in the domain or IP you are using in the run command. Then check the port. If it’s closed, it could still be several things. Make sure the WAN IP you see in your router settings matches the IP shown on the above page. Make sure your port forward is set up correctly. That means no filter on incoming IPs, forwarding to th…

---

<div class="post-metadata">

**Author:** ![andrew2.hart](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/andrew2.hart/32/6415_2.png) [@andrew2.hart](https://forum.storj.io/u/andrew2.hart)\
**Post date:** [July 21, 2020, 6:52am UTC](https://forum.storj.io/t/moving-a-storagenode-be-sure-to-run-the-final-rsync-with-delete-step/8216/4 "2020-07-21T06:52:31Z")

</div>

Could the db be corrupted if I missed the last rsync --delete step  
i.e. if odd db.shm are still around?

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [July 21, 2020, 7:22am UTC](https://forum.storj.io/t/moving-a-storagenode-be-sure-to-run-the-final-rsync-with-delete-step/8216/5 "2020-07-21T07:22:00Z")

</div>

Then you will see an error in the logs.  
Do you see them?  
Is the container restarting?

---

<div class="post-metadata">

**Author:** ![kevink](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/kevink/32/6077_2.png) [@kevink](https://forum.storj.io/u/kevink)\
**Post date:** [July 21, 2020, 7:31am UTC](https://forum.storj.io/t/moving-a-storagenode-be-sure-to-run-the-final-rsync-with-delete-step/8216/6 "2020-07-21T07:31:48Z")

</div>

Most of the time when I was moving databases it was either that I missed the --delete option or they simply corrupted. Copying them again fixed the issue most of the time.  
On a different occasion I had to vacuum all dbs which fixed the issue.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [July 21, 2020, 8:36am UTC](https://forum.storj.io/t/moving-a-storagenode-be-sure-to-run-the-final-rsync-with-delete-step/8216/7 "2020-07-21T08:36:00Z")

</div>

I would like to suggest to check all databases if you are not sure

> **[How to fix a "database disk image is malformed"](https://support.storj.io/hc/en-us/articles/360029309111)**
>
> Problem
> Sometimes a Storage Node Operator may encounter the "database disk image is malformed" error in their log. This could happen during unplanned shutdown or reboot. The error indicat...

---

<div class="post-metadata">

**Author:** ![SGC](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/sgc/32/1132_2.png) [@SGC](https://forum.storj.io/u/SGC)\
**Post date:** [July 21, 2020, 8:46am UTC](https://forum.storj.io/t/moving-a-storagenode-be-sure-to-run-the-final-rsync-with-delete-step/8216/8 "2020-07-21T08:46:31Z")

</div>

but if you don’t do the delete step wouldn’t you end up with zombie data if the node has been running while doing the rsync…

the only thing the -delete step does is make sure the two folders are exactly the same… which it usually does and if there is something to much in the new folder the it will delete it.

usually one can go from 32 to 64 no trouble, however going back can usually be a problem… yet the storj image atleast in docker is what is running… so that shouldn’t be a problem

and well the data and the database… well that should really be the same… in the case of docker tho i would make sure you pulled the newest image and the correct arm32 image…

why do you think it’s 32bit anyways… do they even make 32bit cpus anymore…  
the arm64 or amd64 can be easily interchanged… so make sure you a pulling the right one… amd32 or arm32 whatever…

this seems to be the last true 32bit arm cpu… announched in 2011, so yeah… you sure its a 32bit… because if you can do 64bit you want to do 64bit, some things are like 10 times faster

> **[ARM architecture | Armv8-A](https://en.wikipedia.org/wiki/ARM_architecture#Armv8-A)**
>
> Announced in October 2011, Armv8-A (often called Armv8 while the Armv8-R is also available) represents a fundamental change to the Arm architecture. It adds an optional 64-bit architecture (e.g. Cortex-A32 is a 32-bit Armv8-A CPU while most Armv8-A CPUs support 64-bit, unlike all Armv8-R), named "AArch64", and the associated new "A64" instruction set. AArch64 provides user-space compatibility with Armv7-A, the 32-bit architecture, therein referred to as "AArch32" and the old 32-bit instru To both...

---

<div class="post-metadata">

**Author:** ![BrightSilence](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/brightsilence/32/6048_2.png) [@BrightSilence](https://forum.storj.io/u/BrightSilence)\
**Post date:** [July 21, 2020, 12:05pm UTC](https://forum.storj.io/t/moving-a-storagenode-be-sure-to-run-the-final-rsync-with-delete-step/8216/9 "2020-07-21T12:05:59Z")

</div>

> [@andrew2.hart](#):
>
> Could the db be corrupted if I missed the last rsync --delete step  
> i.e. if odd db.shm are still around?

Yes, if the old db-wal files are still there you have duplicate data, these wal files are merged into the db files then the node is stopped. The `--delete` parameter on the last run while the node is stopped is not optional for this reason. So if you omitted it, that is likely what caused the corruption. If your node hasn’t run since, I recommend copying the db files manually, with the node stopped of course. That should fix it.

---

<div class="post-metadata">

**Author:** ![andrew2.hart](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/andrew2.hart/32/6415_2.png) [@andrew2.hart](https://forum.storj.io/u/andrew2.hart)\
**Post date:** [July 21, 2020, 4:49pm UTC](https://forum.storj.io/t/moving-a-storagenode-be-sure-to-run-the-final-rsync-with-delete-step/8216/10 "2020-07-21T16:49:18Z")

</div>

I updated the title as it now seemed misleading.

I’ve lost the bandwidth db but it is only 5$ missing in the dashboard as far as I can tell.  
It’s still passing audits.

---

<div class="post-metadata">

**Author:** ![SGC](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/sgc/32/1132_2.png) [@SGC](https://forum.storj.io/u/SGC)\
**Post date:** [July 21, 2020, 7:14pm UTC](https://forum.storj.io/t/moving-a-storagenode-be-sure-to-run-the-final-rsync-with-delete-step/8216/11 "2020-07-21T19:14:20Z")

</div>

will most likely take time to update, from what i understand most of the data related to that is actually gotten from the satellites, so should correct itself…

lately my earned have been going backwards every time i reboot the node…  
also the dashboard earning estimation is also still very new, so take it with a grain of salt…

don’t worry, be happy… 😃
