# On restart - reverting back to 3GB storage

**URL:** <https://forum.storj.io/t/on-restart-reverting-back-to-3gb-storage/29278>\
**Category:** troubleshooting\
**Created:** [February 14, 2025, 10:10am UTC](https://forum.storj.io/t/on-restart-reverting-back-to-3gb-storage/29278 "2025-02-14T10:10:05Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![ItsHass](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/itshass/32/1122_2.png) [@ItsHass](https://forum.storj.io/u/ItsHass)\
**Post date:** [February 14, 2025, 10:10am UTC](https://forum.storj.io/t/on-restart-reverting-back-to-3gb-storage/29278/1 "2025-02-14T10:10:05Z")

</div>

Hi all,

I have a new hard drive / new node - But it keeps reverting back to 3GB storage after restart… Do you know how I fix this?

Here are the DB list

```auto
-rwxrwxrwx 1 root root 36K Feb 14 10:01 bandwidth.db
-rwxrwxrwx 1 root root 32K Feb 14 10:02 bandwidth.db-shm
-rwxrwxrwx 1 root root 0 Feb 14 10:02 bandwidth.db-wal
-rwxrwxrwx 1 root root 24K Feb 14 10:01 garbage_collection_filewalker_progress.db
-rwxrwxrwx 1 root root 32K Feb 14 10:01 heldamount.db
-rwxrwxrwx 1 root root 16K Feb 14 10:01 info.db
-rwxrwxrwx 1 root root 24K Feb 14 10:01 notifications.db
drwxrwxrwx 4 root root 4.0K Feb 10 14:44 orders
-rwxrwxrwx 1 root root 32K Feb 14 10:01 orders.db
-rwxrwxrwx 1 root root 28K Feb 14 10:01 piece_expiration.db
drwxrwxrwx 5 root root 4.0K Feb 10 19:19 piece_expirations
-rwxrwxrwx 1 root root 24K Feb 14 10:01 piece_spaced_used.db
-rwxrwxrwx 1 root root 24K Feb 14 10:01 pieceinfo.db
-rwxrwxrwx 1 root root 24K Feb 14 10:01 pricing.db
-rwxrwxrwx 1 root root 32K Feb 14 10:02 pricing.db-shm
-rwxrwxrwx 1 root root 0 Feb 14 10:02 pricing.db-wal
-rwxrwxrwx 1 root root 24K Feb 14 10:01 reputation.db
-rwxrwxrwx 1 root root 32K Feb 14 10:02 reputation.db-shm
-rwxrwxrwx 1 root root 0 Feb 14 10:02 reputation.db-wal
-rwxrwxrwx 1 root root 32K Feb 14 09:31 satellites.db
-rwxrwxrwx 1 root root 32K Feb 14 09:31 satellites.db-shm
-rwxrwxrwx 1 root root 41K Feb 14 09:31 satellites.db-wal
-rwxrwxrwx 1 root root 24K Feb 14 10:01 secret.db
-rwxrwxrwx 1 root root 24K Feb 14 10:01 storage_usage.db
-rwxrwxrwx 1 root root 32K Feb 14 10:02 storage_usage.db-shm
-rwxrwxrwx 1 root root 0 Feb 14 10:02 storage_usage.db-wal
-rwxrwxrwx 1 root root 20K Feb 14 10:01 used_serial.db
-rwxrwxrwx 1 root root 400K Feb 14 10:01 used_space_per_prefix.db

```

blob storage showing:  
 ![image](https://storj-s3.bcdn.literatehosting.net/original/3X/c/9/c93441d1067386c8af67739dcc0768354a0baa91.png)

directory:

 ![image](https://storj-s3.bcdn.literatehosting.net/original/3X/8/7/87439fb6d222d79e989f5117c48162247d525988.png)

I’m sure its something simple… I just can’t figure it out

---

<div class="post-metadata">

**Author:** ![nerdatwork](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nerdatwork/32/1135_2.png) [@nerdatwork](https://forum.storj.io/u/nerdatwork)\
**Post date:** [February 14, 2025, 11:56am UTC](https://forum.storj.io/t/on-restart-reverting-back-to-3gb-storage/29278/2 "2025-02-14T11:56:53Z")

</div>

What is your docker run command and value for `–storage.allocated-disk-space` in config.yaml file?

---

<div class="post-metadata">

**Author:** ![LxdrJ](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/lxdrj/32/1135_2.png) [@LxdrJ](https://forum.storj.io/u/LxdrJ)\
**Post date:** [February 14, 2025, 12:07pm UTC](https://forum.storj.io/t/on-restart-reverting-back-to-3gb-storage/29278/3 "2025-02-14T12:07:13Z")

</div>

Owner of folder is root which user runs docker?

---

<div class="post-metadata">

**Author:** ![ItsHass](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/itshass/32/1122_2.png) [@ItsHass](https://forum.storj.io/u/ItsHass)\
**Post date:** [February 14, 2025, 12:45pm UTC](https://forum.storj.io/t/on-restart-reverting-back-to-3gb-storage/29278/4 "2025-02-14T12:45:05Z")

</div>

root runs it , and can see it opening the DB files

---

<div class="post-metadata">

**Author:** ![ItsHass](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/itshass/32/1122_2.png) [@ItsHass](https://forum.storj.io/u/ItsHass)\
**Post date:** [February 14, 2025, 12:46pm UTC](https://forum.storj.io/t/on-restart-reverting-back-to-3gb-storage/29278/5 "2025-02-14T12:46:55Z")

</div>

-e STORAGE=“3.2TB” \

---

<div class="post-metadata">

**Author:** ![ItsHass](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/itshass/32/1122_2.png) [@ItsHass](https://forum.storj.io/u/ItsHass)\
**Post date:** [February 14, 2025, 12:47pm UTC](https://forum.storj.io/t/on-restart-reverting-back-to-3gb-storage/29278/6 "2025-02-14T12:47:53Z")

</div>

seems just storage space used is the issue … - all other DBs seem to be fine…

but i can see it being opened / updated last mod on the same time i start the node

---

<div class="post-metadata">

**Author:** ![nerdatwork](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nerdatwork/32/1135_2.png) [@nerdatwork](https://forum.storj.io/u/nerdatwork)\
**Post date:** [February 14, 2025, 12:50pm UTC](https://forum.storj.io/t/on-restart-reverting-back-to-3gb-storage/29278/7 "2025-02-14T12:50:10Z")

</div>

> [@ItsHass](#):
>
> -e STORAGE

Also this 👇

> [@nerdatwork](#):
>
> and value for `–storage.allocated-disk-space` in config.yaml file?

---

<div class="post-metadata">

**Author:** ![ItsHass](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/itshass/32/1122_2.png) [@ItsHass](https://forum.storj.io/u/ItsHass)\
**Post date:** [February 14, 2025, 1:14pm UTC](https://forum.storj.io/t/on-restart-reverting-back-to-3gb-storage/29278/8 "2025-02-14T13:14:19Z")

</div>

```auto
# total allocated disk space in bytes
storage.allocated-disk-space: 2.00 TB

```

I believe this is ignored if the -e STORAGE is set ? maybe

---

<div class="post-metadata">

**Author:** ![Mark](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mark/32/1128_2.png) [@Mark](https://forum.storj.io/u/Mark)\
**Post date:** [February 14, 2025, 4:25pm UTC](https://forum.storj.io/t/on-restart-reverting-back-to-3gb-storage/29278/9 "2025-02-14T16:25:07Z")

</div>

It sounds like you might be experiencing the used space file walker bug. [High Trash usage - 27 TB - no more uploads - #29 by Alexey](https://forum.storj.io/t/high-trash-usage-27-tb-no-more-uploads/28471/29)

I was just experimenting on my node and it looks like simply renaming or deleting the used\_space\_per\_prefix.db and restarting the node does the trick.

After the file walker has had time to complete, the used space numbers on the dashboard should update to the correct numbers.

For some reason the used space numbers don’t save to the database on shutdown or restart but they do save to the database hourly. Also you might have to fix the used\_space\_per\_prefix.db issued each time you restart if you want the file walker to run correctly.

---

<div class="post-metadata">

**Author:** ![ItsHass](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/itshass/32/1122_2.png) [@ItsHass](https://forum.storj.io/u/ItsHass)\
**Post date:** [February 14, 2025, 4:44pm UTC](https://forum.storj.io/t/on-restart-reverting-back-to-3gb-storage/29278/10 "2025-02-14T16:44:34Z")

</div>

> [@ItsHass](#):
>
> `-wal`

Aha …

So i did notice that i dont have a -wal , or -shm file additional in that first post of the db log.

i have removed that file - and restarted

now it looks like this

```auto
-rwxrwxrwx 1 root root 36864 Feb 14 16:39 bandwidth.db
-rwxrwxrwx 1 root root 32768 Feb 14 16:39 bandwidth.db-shm
-rwxrwxrwx 1 root root 41232 Feb 14 16:39 bandwidth.db-wal
-rwxrwxrwx 1 root root 24576 Feb 14 11:43 garbage_collection_filewalker_progress.db
-rwxrwxrwx 1 root root 32768 Feb 14 16:39 garbage_collection_filewalker_progress.db-shm
-rwxrwxrwx 1 root root 32992 Feb 14 16:39 garbage_collection_filewalker_progress.db-wal
-rwxrwxrwx 1 root root 32768 Feb 14 11:43 heldamount.db
-rwxrwxrwx 1 root root 32768 Feb 14 16:39 heldamount.db-shm
-rwxrwxrwx 1 root root 32992 Feb 14 16:39 heldamount.db-wal
-rwxrwxrwx 1 root root 16384 Feb 14 11:43 info.db
-rwxrwxrwx 1 root root 32768 Feb 14 16:39 info.db-shm
-rwxrwxrwx 1 root root 32992 Feb 14 16:39 info.db-wal
-rwxrwxrwx 1 root root 24576 Feb 14 11:43 notifications.db
-rwxrwxrwx 1 root root 32768 Feb 14 16:39 notifications.db-shm
-rwxrwxrwx 1 root root 32992 Feb 14 16:39 notifications.db-wal
drwxrwxrwx 4 root root 4096 Feb 10 14:44 orders
-rwxrwxrwx 1 root root 32768 Feb 14 11:43 orders.db
-rwxrwxrwx 1 root root 32768 Feb 14 16:39 orders.db-shm
-rwxrwxrwx 1 root root 32992 Feb 14 16:39 orders.db-wal
-rwxrwxrwx 1 root root 28672 Feb 14 11:43 piece_expiration.db
-rwxrwxrwx 1 root root 32768 Feb 14 16:39 piece_expiration.db-shm
-rwxrwxrwx 1 root root 41232 Feb 14 16:39 piece_expiration.db-wal
drwxrwxrwx 5 root root 4096 Feb 10 19:19 piece_expirations
-rwxrwxrwx 1 root root 24576 Feb 14 16:39 piece_spaced_used.db
-rwxrwxrwx 1 root root 32768 Feb 14 16:39 piece_spaced_used.db-shm
-rwxrwxrwx 1 root root 49472 Feb 14 16:39 piece_spaced_used.db-wal
-rwxrwxrwx 1 root root 24576 Feb 14 11:43 pieceinfo.db
-rwxrwxrwx 1 root root 32768 Feb 14 16:39 pieceinfo.db-shm
-rwxrwxrwx 1 root root 32992 Feb 14 16:39 pieceinfo.db-wal
-rwxrwxrwx 1 root root 24576 Feb 14 11:43 pricing.db
-rwxrwxrwx 1 root root 32768 Feb 14 16:39 pricing.db-shm
-rwxrwxrwx 1 root root 65952 Feb 14 16:39 pricing.db-wal
-rwxrwxrwx 1 root root 24576 Feb 14 15:29 reputation.db
-rwxrwxrwx 1 root root 32768 Feb 14 16:39 reputation.db-shm
-rwxrwxrwx 1 root root 32992 Feb 14 16:39 reputation.db-wal
-rwxrwxrwx 1 root root 32768 Feb 14 16:39 satellites.db
-rwxrwxrwx 1 root root 32768 Feb 14 16:39 satellites.db-shm
-rwxrwxrwx 1 root root 41232 Feb 14 16:39 satellites.db-wal
-rwxrwxrwx 1 root root 24576 Feb 14 11:43 secret.db
-rwxrwxrwx 1 root root 32768 Feb 14 16:39 secret.db-shm
-rwxrwxrwx 1 root root 32992 Feb 14 16:39 secret.db-wal
-rwxrwxrwx 1 root root 24576 Feb 14 11:43 storage_usage.db
-rwxrwxrwx 1 root root 32768 Feb 14 16:39 storage_usage.db-shm
-rwxrwxrwx 1 root root 32992 Feb 14 16:39 storage_usage.db-wal
-rwxrwxrwx 1 root root 20480 Feb 14 11:43 used_serial.db
-rwxrwxrwx 1 root root 32768 Feb 14 16:39 used_serial.db-shm
-rwxrwxrwx 1 root root 41232 Feb 14 16:39 used_serial.db-wal
-rwxrwxrwx 1 root root 397312 Feb 14 16:39 used_space_per_prefix.db
-rwxrwxrwx 1 root root 32768 Feb 14 16:39 used_space_per_prefix.db-shm
-rwxrwxrwx 1 root root 4124152 Feb 14 16:39 used_space_per_prefix.db-wal

```

---

<div class="post-metadata">

**Author:** ![Mark](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mark/32/1128_2.png) [@Mark](https://forum.storj.io/u/Mark)\
**Post date:** [February 14, 2025, 4:46pm UTC](https://forum.storj.io/t/on-restart-reverting-back-to-3gb-storage/29278/11 "2025-02-14T16:46:24Z")

</div>

So how do the numbers on your dashboard look now?

---

<div class="post-metadata">

**Author:** ![ItsHass](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/itshass/32/1122_2.png) [@ItsHass](https://forum.storj.io/u/ItsHass)\
**Post date:** [February 14, 2025, 4:47pm UTC](https://forum.storj.io/t/on-restart-reverting-back-to-3gb-storage/29278/12 "2025-02-14T16:47:42Z")

</div>

We’re ALIVE !

 ![image](https://storj-s3.bcdn.literatehosting.net/original/3X/1/e/1ef5bdf07335f59fa1f042fe4e1a58feae55584f.png)

---

<div class="post-metadata">

**Author:** ![Mark](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mark/32/1128_2.png) [@Mark](https://forum.storj.io/u/Mark)\
**Post date:** [February 14, 2025, 4:51pm UTC](https://forum.storj.io/t/on-restart-reverting-back-to-3gb-storage/29278/13 "2025-02-14T16:51:38Z")

</div>

Excellent. Unfortunately the used space resets might keep happening until they fix the bug. Disabling the file walker should prevent it, unless you want to keep deleting that used\_space\_per\_prefix.db file instead.

---

<div class="post-metadata">

**Author:** ![ItsHass](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/itshass/32/1122_2.png) [@ItsHass](https://forum.storj.io/u/ItsHass)\
**Post date:** [February 14, 2025, 5:30pm UTC](https://forum.storj.io/t/on-restart-reverting-back-to-3gb-storage/29278/14 "2025-02-14T17:30:21Z")

</div>

So, on checking another node - I think i might have the issue with orders.db - used\_serial.db and pieceinfo.db … is that part of the issue also ?

---

<div class="post-metadata">

**Author:** ![Mark](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mark/32/1128_2.png) [@Mark](https://forum.storj.io/u/Mark)\
**Post date:** [February 14, 2025, 5:33pm UTC](https://forum.storj.io/t/on-restart-reverting-back-to-3gb-storage/29278/15 "2025-02-14T17:33:41Z")

</div>

I would say no. I am not aware of any issues with those other databases.

---

<div class="post-metadata">

**Author:** ![ItsHass](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/itshass/32/1122_2.png) [@ItsHass](https://forum.storj.io/u/ItsHass)\
**Post date:** [March 1, 2025, 11:42pm UTC](https://forum.storj.io/t/on-restart-reverting-back-to-3gb-storage/29278/16 "2025-03-01T23:42:58Z")

</div>

@Alexey Do you know of any update regarding the ‘bug’ on the file walker with that db mentioned by @Mark

---

<div class="post-metadata">

**Author:** ![Mark](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mark/32/1128_2.png) [@Mark](https://forum.storj.io/u/Mark)\
**Post date:** [March 2, 2025, 12:02am UTC](https://forum.storj.io/t/on-restart-reverting-back-to-3gb-storage/29278/17 "2025-03-02T00:02:18Z")

</div>

I was looking at the code recently to try to better understand the issue and I came across this:

> <https://github.com/storj/storj/blob/1d4e57d04d237b97d490cf0f4c00e770f2355ef9/storagenode/pieces/filewalker.go#L93>

It looks like the used space file walker is programmed to not do a file walk if it has already run in the last 7 days. So now I don’t know if it’s a bug or just unexpected behavior. Either way it can cause issues at times. I haven’t tried waiting and checking to see if it runs normally after waiting 7 days.

---

<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:** [March 2, 2025, 4:21am UTC](https://forum.storj.io/t/on-restart-reverting-back-to-3gb-storage/29278/18 "2025-03-02T04:21:38Z")

</div>

You may track it

> [@Used space gets reset after restart](https://forum.storj.io/t/used-space-gets-reset-after-restart/28408/61):
>
> Ok. I was able to reproduce in storj-up. Just need to keep it running for more than 24h.

I believe @Mark is right - this is the reason. So you may also wait 7 days to check is it updated or not.
