How to move DB’s to SSD on Docker

Is this supposed to move the trash across as well?

no, and it likely may make it worse or could not work at all, because pieces moved to the trash using the OS functions, in case of the same drive it’s just update a pointer on filesystem, in case of different drives it will be forced to copy the piece to the destination, then delete it from the source, so much more I/O.

Well, the trash directory is in the storage directory. And this post mentions nothing of that. How can I work around this?

no good way. Only databases can be moved.
There are tricks, but symlinks doesn’t work. I would not help you to destroy your node, sorry :slight_smile:

2 Likes

So should I just manually copy over the db files to my SSD and leave the trash?

You may follow the guide from the top message, it’s working.

I moved all the db* files and it’s working. The guide need more details in my opinion. Thank you.

You can mention those details so someone else can find them useful.

2 Likes

How can I put this in docker run command?

storage2.database-dir: "dbs"

I don’t want to use the config anymore, just the docker run command. It’s more convenient. Thanks!

1 Like

You linked the thread were we are right now! :unamused:
I read the first post, but didn’t answeared my question.
Found it:
https://forum.storj.io/t/how-to-move-db-s-to-ssd-on-docker/7064/35?u=snorkel

Yes, that’s why you have to read the whole thread not just the first post :slight_smile:

3 Likes

I was on lazy mode :rofl:

2 Likes