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

bitcoin core must be stopped during access to leveldb #2

Open
oliver-zehentleitner opened this issue Feb 28, 2019 · 2 comments
Open

Comments

@oliver-zehentleitner
Copy link
Member

use snapshot of leveldb to get paralel access with bitcoin or write a process manager that stops and start bitcoind

@oliver-zehentleitner oliver-zehentleitner changed the title Bitcoin must be shutdown during access to leveldb bitcoin core must be stopped during access to leveldb Feb 28, 2019
@oliver-zehentleitner
Copy link
Member Author

oliver-zehentleitner commented Mar 1, 2019

an other idea is to make a "snapshot" of leveldb and utxodump takes it instead of the original db which is in use of bitcoind (http://www.linux-magazin.de/ausgaben/2004/09/unwetterzentrale/3/)

@oliver-zehentleitner
Copy link
Member Author

"A good approach would be to close the DB, then hard link all the sst files (cp -l) and copy all the non-sst files. This way you only actually copy a small amount of data (size of your log, 4MB by default). Then you can open the DB again.

You do have to block while this happens, but hopefully it should be quick."

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

1 participant