6

I did the blockchain sync from scratch via geth in command line. The current size of the chaindata folder is 68 GB. Is this normal or am I missing something. Also there is a .ethash folder with 66 GB created. I will soon run out of space if this continues. Any suggestions?

0

1 Answer 1

9

I believe that Geth is planning to have a pruning function eventually, but it isn't available yet. If you resync from scratch using --fast it should reduce the size to around 11GiB. The .ethash folder is used for mining, and it can be deleted if you are not mining. It will be recreated if it is ever needed.

See also How to reduce chaindata database size?

Update: Geth v1.5.0 includes an option for a light client. This will take your chain data down to under 200MB. Just start geth with the --light option. You can then optionally delete the main chain data.

4
  • 1
    @VijayNarayanan - To remove your old chain data you can use geth removedb. To fast sync, geth --cache=1024 --fast console - if you have enough memory. geth has been crashing on my virtual server with 4 Gb ram and 4 Gb swap - had to switch to parity. Commented Oct 16, 2016 at 1:56
  • 1
    Thanks both of you. I did geth --cache=1024 --fast. I deleted the chaindata folder first and then did the above. Commented Oct 16, 2016 at 13:36
  • 1
    @JordanMack, some stats and observations on the --light syncing at ethereum.stackexchange.com/a/11295/1268 . Commented Jan 25, 2017 at 8:54
  • I did geth removedb && getch --fast cache=2048, but I no benifit, still same amount of data Commented Oct 27, 2017 at 13:42

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