What is the 'default' storage pool used for?

Hi.

In the new lxd container, I got an error that the package could not be installed due to lack of space.
I’m using /dev/loop0 as a storage pool.
53GB out of 64GB is used, what is it used for? can’t I clear it?

% df -h
Filesystem             Size  Used Avail Use% Mounted on
devtmpfs               4.0M     0  4.0M   0% /dev
tmpfs                  3.9G   12K  3.9G   1% /dev/shm
tmpfs                  1.6G  9.2M  1.6G   1% /run
/dev/mapper/main-root  457G  216G  218G  50% /
tmpfs                  3.9G  8.0K  3.9G   1% /tmp
/dev/sda1              356M  162M  195M  46% /boot
tmpfs                  783M   44K  783M   1% /run/user/120
tmpfs                  100K     0  100K   0% /var/lib/lxd/shmounts
tmpfs                  100K     0  100K   0% /var/lib/lxd/devlxd
tmpfs                  783M   28K  783M   1% /run/user/1337
/dev/loop0              64G   53G  8.6G  86% /var/lib/lxd/storage-pools/default

no image.

% sudo lxc image list
+-------+-------------+--------+-------------+--------------+------+------+-------------+
| ALIAS | FINGERPRINT | PUBLIC | DESCRIPTION | ARCHITECTURE | TYPE | SIZE | UPLOAD DATE |
+-------+-------------+--------+-------------+--------------+------+------+-------------+

one storage pool. name default

% sudo lxc storage list
+---------+--------+--------------------------------------+-------------+---------+---------+
|  NAME   | DRIVER |                SOURCE                | DESCRIPTION | USED BY |  STATE  |
+---------+--------+--------------------------------------+-------------+---------+---------+
| default | btrfs  | f7bba9af-297c-4e88-952d-06f960ccb4bc |             | 1       | CREATED |
+---------+--------+--------------------------------------+-------------+---------+---------+

detail.

% sudo lxc storage show default
config:
  source: f7bba9af-297c-4e88-952d-06f960ccb4bc
  volatile.initial_source: /dev/loop0
description: ""
name: default
driver: btrfs
used_by:
- /1.0/profiles/default
status: Created
locations:
- none
% sudo lxc storage info default
info:
  description: ""
  driver: btrfs
  name: default
  space used: 52.16GiB
  total space: 64.00GiB
used by:
  profiles:
  - default

The LXD project is no longer part of the LinuxContainers community, following Canonical’s take over of project ownership.

Please see https://linuxcontainers.org/lxd for links to the appropriate support forum.

1 Like