# Disk usage discrepancy?

**URL:** <https://forum.storj.io/t/disk-usage-discrepancy/24715>\
**Category:** troubleshooting\
**Tags:** storage, xfs, btrfs, ntfs, zfs\
**Created:** [December 19, 2023, 6:18pm UTC](https://forum.storj.io/t/disk-usage-discrepancy/24715 "2023-12-19T18:18:00Z")\
**Posts on this page:** 20\
**Page:** 44

<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 4, 2024, 4:45am UTC](https://forum.storj.io/t/disk-usage-discrepancy/24715/927 "2024-07-04T04:45:31Z")

</div>

> [@mr.Viking](#):
>
> If once upon a time the database was on hdd and there were many errors related to the locked database, downloaded files that did not get into the database are added after the filewalker completed?

If you have a “database is locked” errors, then the usage will be wrong. You need either optimize the filesystem or move databases to the different less loaded disk/SSD.

---

<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 4, 2024, 4:50am UTC](https://forum.storj.io/t/disk-usage-discrepancy/24715/928 "2024-07-04T04:50:49Z")

</div>

> [@bdg0296](#):
>
> I also had 30tb allotted

This is mean that the cluster size is 8KiB, if the total disk size is less than 32TiB and 16KiB if it’s greater or equal 32TiB see [hard drive - Get the default cluster size for NTFS - Super User](https://superuser.com/a/1823641).

---

<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 4, 2024, 4:55am UTC](https://forum.storj.io/t/disk-usage-discrepancy/24715/929 "2024-07-04T04:55:48Z")

</div>

> [@TWH](#):
>
> I am seeing the same thing on my node, its about 40TB and running v1.105.4. I see " ERROR lazyfilewalker.used-space-filewalker failed to start subprocess {“Process”: “storagenode”, “satelliteID”: “\*\*\*”, “error”: “context canceled”}", only one of the satellite has finished.

Then you need either optimize your filesystem or disable the lazy mode and restart the node.

> [@TWH](#):
>
> EDIT: If i include the config and identity directory options in the command, it executes successfully.
> 
> ![Untitled2](https://storj-s3.bcdn.literatehosting.net/original/3X/2/e/2ebb898ad32adb20d6deb5ca54a1babdd406751c.png)

as designed.

---

<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 4, 2024, 4:57am UTC](https://forum.storj.io/t/disk-usage-discrepancy/24715/930 "2024-07-04T04:57:26Z")

</div>

Yes, because it would be updated by scan on startup, or likely the updates for databases before restart were lost. Did you have “database is locked” errors in the logs?

---

<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 4, 2024, 4:59am UTC](https://forum.storj.io/t/disk-usage-discrepancy/24715/931 "2024-07-04T04:59:27Z")

</div>

> [@CtrlAltDefeat](#):
>
> I started my node with both:  
> storage2.piece-scan-on-startup=true  
> pieces.enable-lazy-filewalker=true

In that case you may track its progress in logs. Only when the lazy mode is off you need to use an alternative methods, because non-lazy filewalkers are much less verbose.

---

<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 4, 2024, 5:15am UTC](https://forum.storj.io/t/disk-usage-discrepancy/24715/932 "2024-07-04T05:15:32Z")

</div>

> [@digitalfrank](#):
>
> Windows VMs on ESXI

This is already confirmed by many as a worst performant setup. Either no VM or use Linux.

---

<div class="post-metadata">

**Author:** ![digitalfrank](https://storj.bcdn.literatehosting.com/letter_avatar/digitalfrank/32/6_449c533f586939b6e5f246632a46421f.png) [@digitalfrank](https://forum.storj.io/u/digitalfrank)\
**Post date:** [July 4, 2024, 7:33am UTC](https://forum.storj.io/t/disk-usage-discrepancy/24715/933 "2024-07-04T07:33:21Z")

</div>

I’ve never had lazy fw enabled. Because I wanted the operation to end quickly. The disks are all NTFS obviously. Without any cache or anything.

---

<div class="post-metadata">

**Author:** ![digitalfrank](https://storj.bcdn.literatehosting.com/letter_avatar/digitalfrank/32/6_449c533f586939b6e5f246632a46421f.png) [@digitalfrank](https://forum.storj.io/u/digitalfrank)\
**Post date:** [July 4, 2024, 7:38am UTC](https://forum.storj.io/t/disk-usage-discrepancy/24715/934 "2024-07-04T07:38:17Z")

</div>

> [@digitalfrank](#):
>
> I know this isn’t the best setup for managing nodes

In fact, I had already indicated that the configuration is not optimal but I already have the infrastructure, so I took advantage of it.

---

<div class="post-metadata">

**Author:** ![Vadim](https://storj.bcdn.literatehosting.com/letter_avatar/vadim/32/6_449c533f586939b6e5f246632a46421f.png) [@Vadim](https://forum.storj.io/u/Vadim)\
**Post date:** [July 4, 2024, 7:42am UTC](https://forum.storj.io/t/disk-usage-discrepancy/24715/935 "2024-07-04T07:42:31Z")

</div>

if I remember true, that Lazy filewalker is default today, so if you not made is false, then you using it.

---

<div class="post-metadata">

**Author:** ![digitalfrank](https://storj.bcdn.literatehosting.com/letter_avatar/digitalfrank/32/6_449c533f586939b6e5f246632a46421f.png) [@digitalfrank](https://forum.storj.io/u/digitalfrank)\
**Post date:** [July 4, 2024, 8:14am UTC](https://forum.storj.io/t/disk-usage-discrepancy/24715/936 "2024-07-04T08:14:23Z")

</div>

Maybe I expressed myself badly. In the sense that I never enabled it but because I inserted the configuration line in each node:

pieces.enable-lazy-filewalker: false

---

<div class="post-metadata">

**Author:** ![Shahzada](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/shahzada/32/1128_2.png) [@Shahzada](https://forum.storj.io/u/Shahzada)\
**Post date:** [July 4, 2024, 9:44am UTC](https://forum.storj.io/t/disk-usage-discrepancy/24715/937 "2024-07-04T09:44:59Z")

</div>

i have not changed anything related to that and i think its enabled.  
Is thr a way i can i check if its running

---

<div class="post-metadata">

**Author:** ![HGPlays](https://storj.bcdn.literatehosting.com/letter_avatar/hgplays/32/6_449c533f586939b6e5f246632a46421f.png) [@HGPlays](https://forum.storj.io/u/HGPlays)\
**Post date:** [July 4, 2024, 9:46am UTC](https://forum.storj.io/t/disk-usage-discrepancy/24715/938 "2024-07-04T09:46:23Z")

</div>

I understand all the talk going around (i Think) old nodes who Never do file Walker, wrong file systems, corrupted dB and so on.

But HOW is this happening on a node that is 1,5 weeks old! Anyone with new nodes seeing this?

---

<div class="post-metadata">

**Author:** ![zip](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/zip/32/7813_2.png) [@zip](https://forum.storj.io/u/zip)\
**Post date:** [July 4, 2024, 10:22am UTC](https://forum.storj.io/t/disk-usage-discrepancy/24715/939 "2024-07-04T10:22:59Z")

</div>

Might to have something with NTFS cluster size, where if it is set to be too big, small files are taking more drive space than actually needed.  
But not sure, not running any Windows node, but I believe it was discussed here on the forum as well.

---

<div class="post-metadata">

**Author:** ![littleskunk](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/littleskunk/32/63_2.png) [@littleskunk](https://forum.storj.io/u/littleskunk)\
**Post date:** [July 4, 2024, 10:56am UTC](https://forum.storj.io/t/disk-usage-discrepancy/24715/940 "2024-07-04T10:56:13Z")

</div>

Yea it does sound like a windows problem. I have no issues on ZFS. I noticed some differences between old and new nodes in terms of average piece size but everything within expectation.

---

<div class="post-metadata">

**Author:** ![mr.Viking](https://storj.bcdn.literatehosting.com/letter_avatar/mr.viking/32/6_449c533f586939b6e5f246632a46421f.png) [@mr.Viking](https://forum.storj.io/u/mr.Viking)\
**Post date:** [July 4, 2024, 11:28am UTC](https://forum.storj.io/t/disk-usage-discrepancy/24715/941 "2024-07-04T11:28:04Z")

</div>

DB’s has long been on SSD. I am interested in what with the files that were with errors “database is locked”? Will they be added by the filewalker to DB? Or will they be ignored and stored on disk for free forever?

---

<div class="post-metadata">

**Author:** ![HGPlays](https://storj.bcdn.literatehosting.com/letter_avatar/hgplays/32/6_449c533f586939b6e5f246632a46421f.png) [@HGPlays](https://forum.storj.io/u/HGPlays)\
**Post date:** [July 4, 2024, 2:28pm UTC](https://forum.storj.io/t/disk-usage-discrepancy/24715/942 "2024-07-04T14:28:05Z")

</div>

maybe - but then storj should look for a solution for this (there might be one) i dont know if i can adjust the cluster size on a running node. no clue.

---

<div class="post-metadata">

**Author:** ![HGPlays](https://storj.bcdn.literatehosting.com/letter_avatar/hgplays/32/6_449c533f586939b6e5f246632a46421f.png) [@HGPlays](https://forum.storj.io/u/HGPlays)\
**Post date:** [July 4, 2024, 2:30pm UTC](https://forum.storj.io/t/disk-usage-discrepancy/24715/943 "2024-07-04T14:30:04Z")

</div>

windows problem - maybe and thats fine. im just looking for a solution because its getting out of hand and not making any sense. its alot of wasted space that should be put to use. and this should not be SO apparent on a BRAND new node - i understand if there is a few % of discepancy - but this is insane (if the numbers are to be belived in dashboard).

---

<div class="post-metadata">

**Author:** ![zip](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/zip/32/7813_2.png) [@zip](https://forum.storj.io/u/zip)\
**Post date:** [July 4, 2024, 2:43pm UTC](https://forum.storj.io/t/disk-usage-discrepancy/24715/944 "2024-07-04T14:43:27Z")

</div>

This is when you format the drive, you can select the size. Not sure if it can be changed on the fly, or even without reformatting the drive again.  
But can you check the current cluster size? In CMD you can do `fsutil fsinfo ntfsinfo C:` for C drive for example, to see if this might be the problem.

---

<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 5, 2024, 6:59am UTC](https://forum.storj.io/t/disk-usage-discrepancy/24715/945 "2024-07-05T06:59:58Z")

</div>

Yes, check the logs:

> [@Filewalker status](https://forum.storj.io/t/topic/25325/5):
>
> Logs should be at least info level Used space filewalker Task: Calculates disk usage by scanning all pieces and updates the local node databases afterwards with these values docker logs storagenode -f 2\>&1 | grep "used-space-filewalker" | grep -E "started|finished" GC filewalker Task: Based on a [Bloom filter](https://forum.storj.io/t/how-bloom-filters-work/12104/2) it marks pieces as expired for removal by the retain process docker logs storagenode -f 2\>&1 | grep "gc-filewalker" | grep -E "started|finished" Trash-cleanup filewalker Task: Deletes p…

> [@Storagenode.exe stopping for too long, for 10h+](https://forum.storj.io/t/topic/25316/12):
>
> Windows/PowerShell Logs should be at least info level Used space filewalker Regulated by the parameter in the config.yaml file or as a command line argument (add -- before the parameter, remove :, place it after the image name in your docker run command): # if set to true, all pieces disk usage is recalculated on startup (default true) storage2.piece-scan-on-startup: true to watch for a progress: cat "C:\Program Files\Storj\Storage Node\*.log" -Wait | sls "used-space-filewalker" | sls "sta…

---

<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 5, 2024, 7:01am UTC](https://forum.storj.io/t/disk-usage-discrepancy/24715/946 "2024-07-05T07:01:45Z")

</div>

> [@mr.Viking](#):
>
> Will they be added by the filewalker to DB?

They would try. However, if they would have a “database is locked” when they finished scan and wanted to update the database, then unfortunately not.

[Previous page](https://forum.storj.io/t/disk-usage-discrepancy/24715.md?page=43)

[Next page](https://forum.storj.io/t/disk-usage-discrepancy/24715.md?page=45)
