-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Migrating from leveldb to pebbledb. How to enable pebble db backend? #2647
Comments
@qezz could you provide the arguments of how to run your node? |
@zzzckck here are the args we use
|
To clarify, before restart with the new datadir I switched the binary to the "latest stable release", which is 1.4.13 |
|
1
2
|
I tried many times locally, not find the same issue
|
if no other people report the same issue, this issue will be closed 3 days later (08/23) |
I'm OOO for 2 days, will check back a bit later. |
By any chance, is there a flag to force the db backend to be the pebbledb? So we don't need to guess if it's applied properly or not |
I am afraid there is no such flag, the database will be determined since genesis block and can not be changed after that. |
@zzzckck just to clarify then, what is this option? |
this option try to use PebbleDB, and it will report error if the underlying database format is LevelDB. It can not covert the database, but indicate user wanna use PebbleDB, but it is not the case, it will fail. |
That's exactly what I need, thanks. |
It seems to help or whatever.
UPD:
|
We were running
v1.4.10
on hash+leveldb.Following the https://forum.bnbchain.org/t/faq-pbss-pebbledb/2260
I fetched the snapshot from https://github.com/48Club/bsc-snapshots?tab=readme-ov-file#geth-full-node-with-pbss, replaced the previous data dir with this one.
I didnt change any args, as it says in the https://forum.bnbchain.org/t/faq-pbss-pebbledb/2260
After I started the node, I see
Moreover the database dir (chaindata) was automatically wiped by the process, and it's now trying to fetch data from 4y ago.
What am I doing wrong?
The text was updated successfully, but these errors were encountered: