Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Purging old data from geth/free up disk space, purge specific data #93

Closed
Code0x2 opened this issue Feb 27, 2021 · 5 comments
Closed

Purging old data from geth/free up disk space, purge specific data #93

Code0x2 opened this issue Feb 27, 2021 · 5 comments

Comments

@Code0x2
Copy link

Code0x2 commented Feb 27, 2021

Hello BSC devs, I have been running a BSC node from a few weeks ago, and I have noticed that the disk usage is rapidly increasing. Upon initial sync, geth only used up ~50gb of disk space. Today it is using over 125gb of disk space. This could be a problem if it continues expanding at this rate. Is there a way to limit this usage or purge off unneeded data?

I've also noticed lately there has been loads of CHI Gastokens being minted at ~1 gwei gas price and filling up a lot of blocks. Is there a way to make my node purge all the data at a specific contract to free up space?

@profforg
Copy link

profforg commented Mar 2, 2021

Same problem :(
I've tried to apply this solution (ethereum/go-ethereum#15797 (comment)), to have fresh and clean data dir, but it's not working:

WARN [03-02|23:39:57.068] Synchronisation failed, dropping peer    peer=local err="retrieved hash chain is invalid"
WARN [03-02|23:39:57.068] Downloader wants to drop peer, but peerdrop-function is not set peer=local

@Code0x2
Copy link
Author

Code0x2 commented Mar 3, 2021

Same problem :(
I've tried to apply this solution (ethereum/go-ethereum#15797 (comment)), to have fresh and clean data dir, but it's not working:

WARN [03-02|23:39:57.068] Synchronisation failed, dropping peer    peer=local err="retrieved hash chain is invalid"
WARN [03-02|23:39:57.068] Downloader wants to drop peer, but peerdrop-function is not set peer=local

That stuff is for geth 1.8/1.9. bsc-geth likely doesnt have that yet

@djtjc
Copy link

djtjc commented Apr 4, 2021

Same problem. I tried setting --datadir.ancient but my node directory is still filling up rapidly with hundreds of thousands of ldb files (I'm assuming one for each block)?

All I want to use the node for is seeing incoming pending transactions, so I really don't need to have all these files stored.

@luucasbruno
Copy link

can I get the same effect manually somehow? I'd like to shrink ancient data too.

@unclezoro
Copy link
Collaborator

The latest bsc version already support prune data, will kindly close this.

galaio pushed a commit to galaio/bsc that referenced this issue Jul 31, 2024
miner,eth: latest block as pending block on rollup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants