I'm using LXD 3.4 installed from snap on Ubuntu 18.04.

I'm trying to publish a ~100 GB container snapshot; unfortunately, it ends with "no space left on device":


# time lxc publish mysql-prod-slave/2018-09-13-15h-08m-58s-daily --alias db-testcontainer Error: Failed to copy file content: write /var/snap/lxd/common/lxd/images/lxd_build_309046357/lxd_build_tar_011920719: no space left on device

real    1m14.851s
user    0m0.052s
sys     0m0.036s


My default and only storage has over 1.7 TB free:

# lxc storage list
+---------+-------------+--------+-----------+---------+
|  NAME   | DESCRIPTION | DRIVER |  SOURCE   | USED BY |
+---------+-------------+--------+-----------+---------+
| default |             | btrfs  | /data/lxd | 12      |
+---------+-------------+--------+-----------+---------+

# btrfs fi usage /data/lxd
Overall:
    Device size:                   5.18TiB
    Device allocated:              1.98TiB
    Device unallocated:            3.20TiB
    Device missing:                  0.00B
    Used:                          1.64TiB
    Free (estimated):              1.76TiB      (min: 1.76TiB)
    Data ratio:                       2.00
    Metadata ratio:                   2.00
    Global reserve:              512.00MiB      (used: 0.00B)
(...)


My root (/) partition is only 20 GB in size, which is why the process fails.



Why isn't LXD using "default" storage for images? Is there a way to persuade LXD to use the default storage also for temporary files when publishing the images (/var/snap/lxd/common/lxd/images/)?



Tomasz Chmielewski
https://lxadm.com
_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to