Storage of LXD container is full, whereas that of Host OS is available

,

Hello Community!

Thanks for your support last time.

However, we’ve come across with another issue this time of storage being completely full inside LXD Container, whereas there’s still storage space available in the Host OS.

Image attached below:

Hi Gurung,
Could you post the other details, lxc config show aqua-stage --expanded and
lxc storage ls
Maybe you limited the root size of the container.
Thanks.

Fixed the issue temporarily by removing unused LXD Containers, which freed up some space.

The output of lxc config show aqua-stage --expanded and
lxc storage ls is attached below:

Looks like your using the default ZFS pool which will have a limited size, a basic script to see what you have available and what instances are taking up the space would be;

#!/usr/bin/env bash
#set -ex

echo "Default storage pool space: "

lxc storage info default | grep -E "space used:|total space: "
# Assuming one project and not clustered
HOSTS=($(lxc list -c n --format csv))

echo ""

for HOST in "${HOSTS[@]}"
do
  # Be aware offline instances report nothing here
  echo "${HOST} root disk size is " . `lxc info  ${HOST} | grep "root: "`
done

You could expand the ZFS image or setup another storage pool (DIR pointing somewhere on /dev/xda5 might work but it comes with performance problems)

Thank You :slightly_smiling_face: