Hi everyone,
I’m using syncthing to sync some folders on my main (manjaro) PC to other PCs. I noticed today that the sync has stopped because syncthing reports
Error on folder "Sync" (drrcm-cbcjy): insufficient space on disk for database (/home/andreas/.config/syncthing/index-v0.14.0.db
Running df on my home directory gives me the following:
Sorry for the german language setting, I hope it’s clear… 861G size, 815G used, yet only 2,8G are reported available and 100% are reported used? Something seems off here…
I’m running Manjaro on stable branch, all updates applied, kernel 5.15.7-1-MANJARO.
Does anyone have an idea what could be going on here?
“Deleting the filename doesn’t actually delete the file. Some other process is holding the file open, causing it to not be deleted; restart or kill that process to release the file.”
Thanks for the answers! The percentage problem is explained then, but why the discrepancy between what’s available on the disk (861G) and what’s free (815G) and what’s reported free? I ran lsof and also did a reboot and there are no processes holding any large files open… also I didn’t delete anything big recently.
Also, technically speaking, a file uses more space on a drive than its actual size: storage is divided by sectors (up to of a few KB each), and those sectors cannot be shared by multiple files. So, by taking multiple files into account, they overall use more storage than the mere sum of their sizes.
That might explain it actually… there’s a lot of files on my home drive. So they could take up considerably more space than they are actually in size.
Doesn’t explain the syncthing problem though… I now set minimum available disk space in syncthing to 0kb and deleted a few GB off my home drive, and still I get the error about insufficient space.
Also keep in mind that a ext filesystem reserves space for a specific user and group.It us usually root. This space can only be used by this special user and/or group.
This results in a full drive from a normal user perspective, but the filesystem is not really full. Check with tune2fs the filesystems settings.
I solved the syncthing problem… syncthing has several places where you can set the minimum required disk space, globally, per folder, per device… it’s a mess. It was set to 1% free disk space, I set it to 0 everywhere, now it’s synching correctly. That was not at all easy to figure out
Reserved blocks are useful on a root filesystem. But to reserve 5 % on a non root filesystem (like /home ) is no necessary. It is often a good idea to reduce it.
I see your point. However I am only synching a couple of text files and pdfs/odts and such in the order of a couple hundred MB (my notes and documents collection), so I think I can afford to go a bit lower than my last 1% storage space on an 860GB drive. Eventually though you are right, I will have to clean up or (more likely) buy a bigger drive