Hi all,
My environment:
incux 6.0.1
Storage: btrfs
Debian bookworm
I have been testing to limit root size on containers.
First create a root disk with:
incus config device add <container_name> root disk pool=default path=/
And the limit with:
incus config device set <container_name> root size 3GB
I can view the limit with:
incus config device get <container_name> root size
If I then create dummy files in container to fill disk up, it works all fine and when you run out of disk you get the message:
Disk quota exceeded
If more disk is needed after running out of disk, just update the size of the disk:
incus config device set <container_name> root size 10GB
and disk can be filled again with more data.
This is all fine and work as expected.
My idea though is to limit disks on containers and monitor that the disk limit is not exceeded and if possible increase size of disk, to keep usage under control.
If limit is set to 3GB and if I look at the size of disk with:
incus info <container_name>
...
Disk usage:
root: 2.45GiB
...
The size of the root disk is: 2.45GiB
So my question is, how can I detect that disk has reached the limit with incus client tool without entering the container?
Many thanks in advance!!