Sparse files cause the appearance of high disk usage


Recommended Posts

I stumbled on a problem with how free disk space is presented by Unraid on the main tab. I recently added a new disk to my array. It appears as there is already 1.77 TB of data on it. However I know in reality there is much much less data.

 

image.png.d2ddfe487cb25688b3d156a7ba8c151e.png

 

Using rclone I accidently created a bunch of "large" sparse files that use 0 bytes of storage.

 

The actual size of all files on that drive is under 20 GB.

 

On a smb share I see the sparse files as having size zero.

 

Using ls -l   I get 0 size for the sparse files.

Using ls -s I get the large size that uses no actual disk space. 

 

From what I understand, this looks like a bug.

Link to comment

df reports the same usage yeah. I made more sparse files so now the reported total size is 2.2TB

 

root@Antec:~# df -h /dev/md7
Filesystem      Size  Used Avail Use% Mounted on
/dev/md7        9.1T  2.2T  7.0T  24% /mnt/disk7

 

This is what the QDirStat docker shows when I look at folders that only contain those sparse files:

image.thumb.png.89558785a33a2d7f20e0ecb68cb54068.png

 

Link to comment

For anyone reading this in the future:

 

There is a rclone option that prevents the creation of zero size sparse files when there is Google drive error when you try to sync from Google drive to local unraid array.

disable multi-thread downloads with 

--multi-thread-streams 0

stops sparse files from being created.

For me the --local-no-sparse does not fix the problem

 

https://rclone.org/docs/

 

Edited by frank-unr
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.