After reading this How long will the Deleted Container under ZFS permenantly removed
I am unsure what do to:
- How to recover space
- Set it so that containers can use all the available storage?
Thanks.
lxc --version
3.0.3
lxc profile show default
config: {}
description: Default LXD profile
devices:
eth0:
name: eth0
nictype: bridged
parent: lxdbr0
type: nic
root:
path: /
pool: default
size: 200GB
type: disk
name: default
used_by:
lxc storage list
+---------+-------------+--------+--------------------------+---------+
| NAME | DESCRIPTION | DRIVER | SOURCE | USED BY |
+---------+-------------+--------+--------------------------+---------+
| default | | zfs | zpoolnvme0n1p4/lxd-space | 6 |
zfs list -t all
NAME USED AVAIL REFER MOUNTPOINT
zpoolnvme0n1p4 263G 87,8G 96K /zpoolnvme0n1p4
zpoolnvme0n1p4/lxd-space 262G 87,8G 96K none
zpoolnvme0n1p4/lxd-space/containers 163G 87,8G 96K none
zpoolnvme0n1p4/lxd-space/containers/gl-base 1,11G 87,8G 1,72G /var/lib/lxd/storage-pools/default/containers/gl-base
zpoolnvme0n1p4/lxd-space/containers/gl-d2 161G 34,1G 57,7G /var/lib/lxd/storage-pools/default/containers/gl-d2
zpoolnvme0n1p4/lxd-space/containers/gl-d2@snapshot-backup 98,5G - 104G -
zpoolnvme0n1p4/lxd-space/containers/gl-d2@snapshot-auto-backup 10,4G - 16,3G -
zpoolnvme0n1p4/lxd-space/containers/gl-d1 500M 87,8G 5,76G /var/lib/lxd/storage-pools/default/containers/gl-d1
zpoolnvme0n1p4/lxd-space/custom 96K 87,8G 96K none
zpoolnvme0n1p4/lxd-space/deleted 99,3G 87,8G 96K none
zpoolnvme0n1p4/lxd-space/deleted/containers 98,0G 87,8G 96K none
zpoolnvme0n1p4/lxd-space/deleted/containers/652fffb6-f545-4132-890f-ea172c4029af 93,1G 0B 93,1G none
zpoolnvme0n1p4/lxd-space/deleted/containers/652fffb6-f545-4132-890f-ea172c4029af@copy-e06a30f9-19ec-44f4-a37d-dc41a947d7f7 328K - 93,1G -
zpoolnvme0n1p4/lxd-space/deleted/containers/ab6761fe-230b-43e4-8dc9-3582f08ce829 18,8M 87,8G 5,49G none
zpoolnvme0n1p4/lxd-space/deleted/containers/ab6761fe-230b-43e4-8dc9-3582f08ce829@copy-c2c5e3f8-6e9c-4487-8385-a2c576d8f44b 8K - 5,49G -
zpoolnvme0n1p4/lxd-space/deleted/containers/e65b4a13-fa2f-42a7-afd5-2951252cb8c8 4,88G 41,7G 5,49G none
zpoolnvme0n1p4/lxd-space/deleted/containers/e65b4a13-fa2f-42a7-afd5-2951252cb8c8@copy-3670f026-328e-4418-9c4f-6f107d62358e 8K - 5,49G -
zpoolnvme0n1p4/lxd-space/deleted/images 1,27G 87,8G 96K none
zpoolnvme0n1p4/lxd-space/deleted/images/43305e00159a91fa26fc2ee5f07a43f153ac53046fcf703c2255affd92c21aae 650M 87,8G 650M none
zpoolnvme0n1p4/lxd-space/deleted/images/43305e00159a91fa26fc2ee5f07a43f153ac53046fcf703c2255affd92c21aae@readonly 0B - 650M -
zpoolnvme0n1p4/lxd-space/deleted/images/bd2ffb937c95633a28091e6efc42d6c7b1474ad8eea80d6ed8df800e44c6bfdd 649M 87,8G 649M none
zpoolnvme0n1p4/lxd-space/deleted/images/bd2ffb937c95633a28091e6efc42d6c7b1474ad8eea80d6ed8df800e44c6bfdd@readonly 0B - 649M -
zpoolnvme0n1p4/lxd-space/images 96K 87,8G 96K none
zpoolnvme0n1p4/lxd-space/snapshots 192K 87,8G 96K none
zpoolnvme0n1p4/lxd-space/snapshots/gl-d2 96K 87,8G 96K none
zpoolnvme0n1p4/var-lib-lxd 1,87M 87,8G 1,87M /var/lib/lxd
Is the CORRECT solution to export these to tar; Then delete the containers. then reimport it? (Like this example? Backup the container and install it on another server - #2 by stgraber)