Thanks for the replies, I’ve gone through the steps again meticulously and I’m at a loss.
Only part I believe may be the issue is I have ‘/media/pi/storjnew/storage’ which then contains another folder ‘storage’ so ‘/media/pi/storjnew/storage/storage’. I may just delete the ‘storjnew’ folder and start again as it only took 7 or so hrs if it is the issue.
Each node is on it’s own HDD as I’m migrating from an old HDD to new one.
Old hard drive I’m replacing
HDD1: ‘storj’
Dir: ‘/media/pi/storj’
Disk used by Storj: 600GB
New hard drive I have attempted to migrate to
HDD2: ‘storjnew’
Dir: ‘/media/pi/storjnew’
2TB HDD 1.8TB available.
After the transfer I can see it has gone from 1.8TB to 1.2TB which seems right.
You can see the structure of the folders below along with space avl and used on the new directory.
These are the commands I used throughout the process. I have a funny feeling though I made a mistake on this part below the first attempt and that’s why I have 2x storage folders in the new directory.
Source: https://documentation.storj.io/resources/faq/migrate-my-node
" Please, note - we intentionally specified /mnt/storagenode-new
as the data source in the --mount
parameter and not /mnt/storagenode-new/storage
because the storagenode
docker container will add a subfolder called /storage
to the path automatically. So please, make sure that your data folder contains a storage
subfolder with all the data inside ( blobs
folder, database files, etc.), otherwise the node will start from scratch since it can’t find the data in the right subfolder and will be disqualified in a few hours."
// Copy the identity
sudo rsync -aP /media/pi/storj/identity/storagenode /media/pi/storjnew/identity
// Copy the data
sudo rsync -aP /media/pi/storj/storage /media/pi/storjnew/storage
// Repeat above running the data copying command (step 4.) a few more times until the difference would be negligible, then
// Once done with above stop the node
sudo docker stop -t 300 storagenode
// Remove the existing container
sudo docker rm storagenode
// Run the copying command with a --delete parameter to remove deleted files from the destination
sudo rsync -aP --delete /media/pi/storj/storage /media/pi/storjnew/storage
Then I run the new command below.
I also ran the below command to check there are files there. I’m a bit of a n00b with Rasp Pi / Linux so hoping I have made a simple mistake.