Second storagenode on same machine

I am trying to setup the second storj node on my machine.
Is the structure of identity fine?


I see in the identity folder the next file: revocations.db
Is this linked to first node ? (storagenode)
Will storagenode2 try to create this (revocations.db) file again and rewrite the first one?


Yes its fine.

1 Like

Just to say that there is some advice to keep a copy of the identity with the storagenode data that belongs to it. This is so if you lose /root you still have your identity with the data disk.


I have these commands, are they fine for running two nodes (storagenode and storagenode2) on the same machine?

docker run -d --restart unless-stopped --stop-timeout 300 \
    -p 28967:28967 \
    -p \
    -e WALLET="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
    -e EMAIL="" \
    -e ADDRESS="xxxxxxxxxxxxxx:28967" \
    -e STORAGE="1.2TB" \
    --mount type=bind,source="/root/.local/share/storj/identity/storagenode",destination=/app/identity \
    --mount type=bind,source="/data/storj",destination=/app/config \
    --name storagenode storjlabs/storagenode:latest
docker run -d --restart unless-stopped --stop-timeout 300 \
    -p 28968:28967 \
    -p \
    -e WALLET="xxxxxxxxxxxxxxxxxxxxxxx" \
    -e EMAIL="" \
    -e ADDRESS="xxxxxxxxxxxxxx:28968" \
    -e STORAGE="1.9TB" \
    --mount type=bind,source="/root/.local/share/storj/identity/storagenode2",destination=/app/identity \
    --mount type=bind,source="/storj2",destination=/app/config \
    --name storagenode2 storjlabs/storagenode:latest
1 Like

Looks like OK.
If the directories set actually exist with the good rights, they should run properly.

I would like to suggest you to move data inside subfolder on the mounted drive - in case if mount fail the node will not start and would not be disqualified for lost data.