Nextcloud 10 shows wrong storage usage

Hey everyone! So I just installed nextcloud and the data directory is /mnt/data where the /dev/sdb drive is mounted.

On nextcloud, fresh installation it shows 775GB being used.

So, I ran df -h to check on the server.

On server it says only 1% is used.

Also, sorting the files does not shows any big files.

I have tried following commands
docker exec -it nextcloud-aio-nextcloud bash -c "sudo -u www-data php occ versions:cleanup"

docker exec -it nextcloud-aio-nextcloud bash -c "sudo -u www-data php occ trashbin:cleanup --all-users"

yet no results

from the screenshot your Nextcloud is accessing /mnt/ncdata- not sure it is the same as your /mnt/datayou are looking at. size is similar likely the same but just to be sure. it is expected different tools show different space usage e.g. some commands ignore hidden files and maybe FS overhead, which seems to be the case for your df -h - total size of 16T, 161MB and 1% usage don’t really match 15T free.

to have better overview of the effective storage I would recommend using du -hs command (there are also option to shown how deep it should go)

Hello, I have the same problem. NextCloud tells me I only have 5 GB of storage, even though it should be 1 TB. I recently updated, so maybe that has something to do with it? I should also mention, though: I know nothing about IT. I just want to get away from iCloud, and I was recommended Hetzner Storage Share. And now, after just a few days, nothing works anymore…

You can use the ncdu command to find out which folder is eating up your storage:

sudo apt install ncdu
cd /
ncdu

Hii,

The /mnt/data is mounted to internal docker of /mnt/ncdata

here is du -hs

Also I want to mention that I have nextcloud AIO. Sorry for not mentioning before.

Here is how the directory mounted.

you are aware that (modern) filesystems require metadata? i think the default for ext4 ist ~5% which seems about right for the fs on sdb.
you can reduce that percentage at fs-creation at the price of less fs-resilience. unless you are really hard-pressed for space i wouldn’t recommend it., though.
GOOD LUCK!

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.