Device built-in storage almost full

I am seeing a message relating to my internal storage being full.
I realise this is due to the /DATA directory being marked as full, however I had already migrated all three of the areas marked as “migratable” to my RAID pool when I initially set the system up.


Is there anything I can do to have the /DATA area show the disk free size of it’s real location? or is this not actually migrated?

The version number I am running is V1.5.0

Thanks

Didn’t the amount of free space in the /DATA directory change before and after the migration?

Not that I noticed, it has been on 1.5.0 since it was released, I think this timing relates to switching on the Search Index, but could be coincidence. Within the /DATA folder itself I can’t see anything using this volume of space.

The Search Index was a red herring. I’ve found the issue, the backup service had been setup to to send data to an external HDD via a USB interface. The drive was disconnected after a backup, but it appears the backup drive structure was recreated under the /DATA folder.

The backup appears to have been trying to run, but instead of failing due to the USB drive not being in place it filled up the /DATA instead.

A bug I imagine, as I don’t think that is desired functionality?

2 Likes

Would you be able to walk through the commands and syntax used to figure that out? I’m only asking because ZimaOS don’t have ncdu or any other viable tool I could think of.

This does seem to be a problem. I gave feedback to the relevant colleagues to see if I could deal with this situation.

I would see a lot of value in a visual tool such as TreeSizeFree or WinDirStat that would give the user the ability to quickly pinpoint what’s consuming disk space. Just food for thought there :slight_smile:

1 Like

Great inspiration

2 Likes

From a SSH session I used this command:

    sudo du -x -h --max-depth=1 /DATA 2>/dev/null | sort -hr

You could substitute /DATA for wherever you want to search, sorted by size.

2 Likes

Thank you, that has worked like a charm.

I have a similar problem — the disk filled up in the .docker directory.
I had backups set up on my NAS.
NAS was turned off for a few days.
What should I do? Should I delete the .docker directory?

root@ZimaOS:/DATA/.docker/containers/cdb8eac113e31ca4968c9c890c1f3ee1d0379a95c9a9f47646cb00960bfb624f# ls -lh /DATA/.docker/containers/cdb8eac113e31ca4968c9c890c1f3ee1d0379a95c9a9f47646cb00960bfb624f
total 519G
-rw-r----- 1 root root 519G Oct 20 18:55 cdb8eac113e31ca4968c9c890c1f3ee1d0379a95c9a9f47646cb00960bfb624f-json.log
drwx------ 2 root root 4.0K Oct 5 12:19 checkpoints
-rw------- 1 root root 5.3K Oct 19 19:45 config.v2.json
-rw------- 1 root root 1.5K Oct 19 19:46 hostconfig.json
-rw-r–r-- 1 root root 7 Oct 19 19:45 hostname
-rw-r–r-- 1 root root 37 Oct 19 19:45 hosts
drwx–x— 2 root root 4.0K Oct 5 12:19 mounts
-rw-r–r-- 1 root root 232 Oct 19 19:45 resolv.conf
-rw-r–r-- 1 root root 71 Oct 19 19:45 resolv.conf.hash

It was Home Assistant that took all this, place. Home Assistant was not even used. I do not know what was error, but I remove container and get free space.

We will launch the application cache cleaning function in the next version, at present, you can enter the command line as root, use docker image prune -a to clean up images that are not used by containers, you can also learn about some parameters of this command to see if this command meets your expectations

2 Likes

Whats the ETA for the next version?

It is estimated that it will be until the beta version of 1.5.2, which is expected to be 11.14

1 Like

Perfect, so you’ll kill two birds with one stone then? Nice!

https://community.zimaspace.com/t/ability-to-prune-clear-old-unused-images-and-volumes/6230

1 Like

Portainer is useful for clearing up unused images and volumes. It highlights these with a label so you can clearly identify them.

“It’s been 5 days and the problem has recurred. I don’t know what it is, but the 1000GB drive is full again. As far as I know, I have about 200GB of my own data in Immich, and the rest is generated by ZimaOS. It was supposed to be nice and easy, a simple system for an amateur like me. And yet, it turns out that within two weeks of installing the system on a mini PC, I have to take action twice using the console, about which I have no idea. Am I doing something wrong, or is this just how it is with self-hosting? Or do I simply have to find a different system solution?

Thanks for your feedback, I need to understand the previous disk situation, after you cleaned the disk 5 days ago, how much space is left on the disk at that time, is it expected (1000-200=800G), and at the same time, some command line return information is needed to help us locate your specific problem faster
du -sh /media/yourstoragename/*
du -sh /media/yourstoragename/.*

After last cleaning with command docker image prune -a, it was like 500-600G left.

Grzegorz@ZimaOS:~ ➜ $ sudo du -sh /DATA/*
Password:
225G /DATA/AppData
4.0K /DATA/Backup
20G /DATA/Documents
4.0K /DATA/Downloads
125G /DATA/Gallery
16K /DATA/lost+found
16K /DATA/Media
108G /DATA/New_Immich
Grzegorz@ZimaOS:~ ➜ $ sudo du -sh /DATA/.*
4.0K /DATA/.bash_profile
8.0K /DATA/.bashrc
284K /DATA/.bluetooth
251M /DATA/.casaos
3.5G /DATA/.docker
138M /DATA/.extensions
4.1M /DATA/.icewhale
108K /DATA/.libvirt
642M /DATA/.log
409G /DATA/.media
1.4M /DATA/.opt
8.0K /DATA/.ota
6.5G /DATA/.swapfile
11G /DATA/.trash
4.0K /DATA/.wgetrc