2

I'm planning to create a Raspberry Pi Cluster in order to run several bitcoin nodes. Can I share parts of the ~/.bitcoin/ folder in order to not have to store the entire hundreds of GB for each of the nodes? My idea would be that one of the nodes has an external hard drive with the bulk data and the others make use of it over nfs or smb.

Any ideas or even experience on this?

2

I don't think this is possible; you'd have multiple node instances trying to read/write a single data directory. This is not the intended operation, you'd likely end up with corrupt data.

If you must run multiple independent nodes and are worried about storage requirements, I'd recommend looking into 'pruning mode', it will limit the storage requirements for each node instance.

Note that you can copy the data directory folder of a synced node, so that you will not need to run through the initial block download and sync for each individual node (lots of savings in time and computation here). Just be sure to stop bitcoind before copying the data directory, and then start it up again once the copy is complete. This will help avoid potential data corruption/loss.

  • Thanks for the explanation. I agree, a node should be independent. A shared disk would be a single point of failure for such a cluster. With my question I had in mind that there's a lot of redundancy at the price of hard disks, but redundancy IS actually good for the network. – Michael Sep 29 at 8:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.