# Node Thrashing Disk all the time

**URL:** <https://forum.storj.io/t/node-thrashing-disk-all-the-time/23117>\
**Category:** troubleshooting\
**Tags:** hardware\
**Created:** [July 1, 2023, 9:41am UTC](https://forum.storj.io/t/node-thrashing-disk-all-the-time/23117 "2023-07-01T09:41:50Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [July 3, 2023, 3:01am UTC](https://forum.storj.io/t/node-thrashing-disk-all-the-time/23117/19 "2023-07-03T03:01:54Z")

</div>

Yes, the vacuum could help sometimes, but it contains a bandwidth history, see

> [@"Action": "GET\_AUDIT", "error": "usedserialsdb error: database is locked",](https://forum.storj.io/t/action-get-audit-error-usedserialsdb-error-database-is-locked/6424/6):
>
> I’m running a docker version on Debian GNU/Linux. Here’s the procedure I use to vacuum and check the databases: Stop the node Vacuum the dbs integrity\_check the dbs Restart the node Here’s a bash check which should do that for you. Please change the database directory to reflect where yours are on your system. docker stop -t 300 storagenode && dbs=$(ls /opt/storj/storage/\*.db) c1="VACUUM;" c2="PRAGMA integrity\_check;" for i in $dbs do sqlite3 $i "$c1" done for i in $dbs do sqlite3 $i "…

And read also

> [@Is the vacuum necessary?](https://forum.storj.io/t/is-the-vacuum-necessary/7086):
>
> I cannot help but wonder if vaccuming the database is a good or a bad thing… people on here has been talking about that a lot lately, most sort of just go… oh look at this thing… and then i do this and it’s smaller after i’m done… and on harddrives smaller is better… so must be right… vacuuming is better… i don’t really know a lot about database management, i’ve worked with a few here and there…pretty simple stuff at first… you and like rows and columns of information, that you basically can se…

Yes, you may re-create it using the instruction [https://support.storj.io/hc/en-us/articles/4403032417044-How-to-fix-database-file-is-not-a-database-error](https://support.storj.io/hc/en-us/articles/4403032417044-How-to-fix-database-file-is-not-a-database-error), but the usage history will be lost.

---

_[View the full topic](https://forum.storj.io/t/node-thrashing-disk-all-the-time/23117)._
