Is there a way to tell the validator node to store db/full/parachains
on a different partition/location. Or is it safe to rsync it to a folder on another partition and then simlink it for a live validator?
-
This would be a good feature request on cumulus, but will eventually be solved by github.com/paritytech/cumulus/issues/483– NukeCommented Apr 12, 2022 at 16:25
2 Answers
The db/full/parachains
will currently will be always put under the path of the main db. So, you could run your collator with collator -- -d /some/path/for/db
. And then the parachains db will end in /some/path/for/db/.../full/parachains
.
However, you can also do the symlink "trick" you mentioned.
You can move the parachain or relaychain database to another partition, and then make a soft symlink pointing to the new location in the original directory. This is a widely used trick in Khala mining community.