Tip: If you don't have enough space for the blockchain in your SSD and keep it in HDD, you can still speed up Bitcoin Core a lot
Not sure if this is well known or relevant, but thought I'd leave a tip for newbie Bitcoin Core users.
I had all data in a slow hard drive because I didn't have space in my fast nvme but then figured out that you can move just the Chainstate folder (every spendable coin, who owns it, and how much it is worth) to the fast drive (it's only about 4gb or so instead of 270gb+) and leave the whole Block history in the HD.
In my case I moved it to a very fast nvme and left the rest in a super slow external HD and now Core starts/indexes and shuts down A LOT faster (I sometimes have that machine off for a day or so and needs resynch 24h+ on startup).
There's no option for separate folders in the UI tho (?), so you need to move the folder manually and then create symbolic links. Doesn't take much work and totally worth it, saved me $ for some sats. :)
How-to:
- With Core closed, move the Chainstate folder from the slow drive to the fast drive (leave the Blocks folder in the original spot)
- In Windows, open a Command Prompt (as administrator) and then use the command "mklink" (command to create a hard link pointing to a directory) - Core will look for the Chainstate folder in the usual place, but it will actually be reading from the destination where you moved it.
Command syntax is as following example (where H: represents the slow drive and C: the fast one)
mklink /j "H:\BTCchain\chainstate" "C:\FastBTCchainstate"
When you open Core again, it will index from the new fast location, but still read the blocks from the HD. That link will persist after reboots. This page explains it better.
If not Windows, use "ln -s" as u/whitslack suggested.
Edit: Assuming this probably also helps if you're doing the initial synch from the genesis block. I'm not a Core expert in general, so if anyone has better ideas/corrections, I'll edit this.
Posted Jan 23, 2020, 12:17 PM UTC · edited