Want to move external hdd 1TB from docker synoloy to pc server linux ubuntu

hello, I would like some advise :

i have a 1TB external HDD USB on my NAS synology docker (DS720+).
here is my docker command:
sudo docker run --rm -e SETUP=“true” --mount type=bind,source=“/volumeUSB2/usbshare/storj/identity”,destination=/app/identity --mount type=bind,source=“/volumeUSB2/usbshare/storj/data”,destination=/app/config --name storagenode storjlabs/storagenode:latest

sudo docker run -d --restart unless-stopped --stop-timeout 300
-p 28967:28967/tcp
-p 28967:28967/udp
-p 14002:14002
-e WALLET=“0x0000000000000000000000000”
-e EMAIL="pxxx@xxx.com"
-e ADDRESS=“pxxxxx.xxx.com:28967
-e STORAGE=“900GB”
–mount type=bind,source=“/volumeUSB2/usbshare/storj/identity”,destination=/app/identity
–mount type=bind,source=“/volumeUSB2/usbshare/storj/data”,destination=/app/config
–name storagenode storjlabs/storagenode:latest
–operator.wallet-features=zksync

I want to move it on a PC with UBUNTU Server 22.04, on an USB port.

on this PC server i already have 2 SATA HDD

first one “storagenode1” on : /mnt/hdd1

docker run --rm -e SETUP=“true” --mount type=bind,source=“/mnt/hdd1/identity”,destination=/app/identity --mount type=bind,source=“/mnt/hdd1/data”,destination=/app/config --name storagenode1 storjlabs/storagenode:latest

docker run -d --restart unless-stopped --stop-timeout 300
-p 28968:28967/tcp
-p 28968:28967/udp
-p 14003:14002
-e WALLET=“0x000000000000000000000000”
-e EMAIL="pxxxxxxxxx@xxxxxx.com"
-e ADDRESS=“pxxxxxx.xxxxxxxx.com:28968
-e STORAGE=“3.60TB”
–mount type=bind,source=“/mnt/hdd1/identity”,destination=/app/identity
–mount type=bind,source=“/mnt/hdd1/data”,destination=/app/config
–name storagenode1 storjlabs/storagenode:latest

second “storagenode2” on /mnt/hdd2

sudo docker run --rm --mount type=bind,source=“/mnt/hdd2/identity”,destination=/app/identity --mount type=bind,source=“/mnt/hdd2/data”,destination=/app/config --name storagenode2 storjlabs/storagenode:latest

sudo docker run -d --restart unless-stopped --stop-timeout 300
-p 28969:28967/tcp
-p 28969:28967/udp
-p 14004:14002
-e WALLET=“0xxxxxxxxxxxxxxxxxxxxxxxxxxxx”
-e EMAIL="pxxxxxxxxxx@xxxxxxxxx.com"
-e ADDRESS=“xxxxxxxxxxxxxxxxxxxx.xxx:28969”
-e STORAGE=“3.60TB”
–mount type=bind,source=“/mnt/hdd2/identity”,destination=/app/identity
–mount type=bind,source=“/mnt/hdd2/data”,destination=/app/config
–name storagenode2 storjlabs/storagenode:latest
–operator.wallet-features=zksync

To resume : there will be 2 SATA HDD (4TB) 28968, 28969 & 1 external HDD USB (1TB) 28967

Could you help me to add my existing “storagenode” ext HDD USB to my other machine ?
I do not want to make mistakes to my 1 year old storagenode

thank you :slight_smile:

Hello @philippe456 ,
You just have to mount the new HDD (you can mount it to /mnt/hdd3 or any mount point you want)

Then simply execute the same command you used on the NAS, adapting the paths, to run the node:
docker run -d --restart unless-stopped --stop-timeout 300
-p 28967:28967/tcp
-p 28967:28967/udp
-p 14002:14002
-e WALLET=“0x000000000000000000000000”
-e EMAIL="pxxxxxxxxx@xxxxxx.com"
-e ADDRESS=“pxxxxxx.xxxxxxxx.com:28968
-e STORAGE=“900GB”
–mount type=bind,source=“/mnt/hdd3/identity”,destination=/app/identity
–mount type=bind,source=“/mnt/hdd3/data”,destination=/app/config
–name storagenode storjlabs/storagenode:latest

Don’t forget to redirect port 28967 to your linux server instead of the NAS.

You must never run this command for the worked node, you may destroy it! This command should be executed only once for the same identity.

Should be corrected also to use a different port,

-p 28967:28967/tcp \
-p 28967:28967/udp \
-p 14002:14002 \
-e WALLET="0x000000000000000000000000" \
-e EMAIL="pxxxxxxxxx@xxxxxx.com" \
-e ADDRESS="pxxxxxx.xxxxxxxx.com:28967" \

Also as @labooll suggested, do not forget to forward this port on your router.

1 Like

allright , i will do that tomorrow & tell you how it goes

Thanks a lot.

1 Like