Our production container crashed because its LXC storage pool is out of space.
Here is dh -h
from inside the container:
Filesystem Size Used Avail Use% Mounted on
/dev/loop0 82G 78G 2.0G 98% /
Here the same mount from the host system:
/dev/loop0 82G 78G 2.0G 98% /var/lib/lxd/storage-pools/default
I remember a year ago when I was setting this up, it asked me if 80GB for something that sounded unfamiliar would be enough, and because it did not say "container disk size" and said something else, I just thought I better trust the default option. Now I know it is the disk space limit. How can I increase this limit now?
At the moment, I just cleaned some space urgently. The host machine actually has terabytes of disk space.
P.S. Sorry for complaining but documentation for LXC is one of the worst I've ever seen. It just does not make sense for a user like me.
P.P.S. I forgot that I actually use LXD, doh. The fact that I type lxc
to do anything confused me.
UPDATE: Intuitively, I figured this command could resize the storage pool:
# lxc storage set default size 200GB
But it fails with:
Error: The [size] properties cannot be changed for "btrfs" storage pools
Any ideas?