Bitcoin database needs to rebuild every time after defrag or reboot

1

I'm running Windows 10 technical preview 10049 and I'm running bitcoin-qt from my data hard drive with 1.17TB available disk space. It is a striped volume and due to much data writing and deleting it needs to be defragmented from time to time. Every time I have done this and I start Bitcoin-QT again it gives an error that the database needs to be rebuild what takes ages.

Joost de Bruijne

Posted 2015-04-04T13:49:07.183

Reputation: 11

1That's very odd. Unless your defragmentation program is changing the data it operates on, it shouldn't cause Bitcoin to need to reindex.Nick ODell 2015-04-04T22:25:33.580

Answers

1

Shutdown Bitcoin-QT cleanly and no reindexing is needed.

The reindexing of bitcoind database is only needed if the application did not have time to properly shut itself down and write all information in its memory to disk.

Mikko Ohtamaa

Posted 2015-04-04T13:49:07.183

Reputation: 2 417

1It probably the shutdown procedure of Windows 10. With Windows 7 I also ran defraggler with an automated shutdown when finished and never had a problem. It now forces to shutdown every program but it is to fast to let bitcoin shutdown correct what causes the problem. In short, no automated shutdown after defrag is done or close bitcoin before leaving computer.Joost de Bruijne 2015-04-05T09:36:30.297

@JoostdeBruijne make this an answer!Wizard Of Ozzie 2015-04-06T03:22:21.927