Seconde time a that lxd snap 3.23 full my root partition!

Hi this morning, again my / partition got full !!!

/var/snap/lxd/common/lxd/images is the bad !!!

du * -sh
4.0K 2cfc5a5567b8d74c0986f3d8a77a2a78e58fe22ea9abd2693112031f85afa1a1
180M 2cfc5a5567b8d74c0986f3d8a77a2a78e58fe22ea9abd2693112031f85afa1a1.rootfs
4.0K b2eb08cbfada3ea1301a9ee973fba91aef8a588fee56fb70d084b6306cb741a0
95M b2eb08cbfada3ea1301a9ee973fba91aef8a588fee56fb70d084b6306cb741a0.rootfs
159G lxd_build_479507499

Is it safe to delete lxd_build_479507499 ?

Ok smart people, I know I should have put /var in another partition… my bad

:frowning:

Ok I know what happen: the lxc publish is using the file in the export of my container when i do backup at night …

Is it possible to change the default location of this file ?

You can use the storage.images_volume and storage.backups_volume keys to store the backups/ and images/ directories in a volume on your storage pool rather than directly on your system’s main partition.

1 Like

Hi,
I am using zfs has the backend,
I have created 2 new pool and then 2 new volume

lxc storage create bkp_pool zfs source=tank/bkp_pool
lxc storage create img_pool zfs source=tank/img_pool
lxc storage volume create bkp_pool bkp_vol
lxc storage volume create img_pool img_vol

lxc config set storage.backups_volume bkp_pool/bkp_vol
Error: Storage volume “bkp_pool/bkp_vol” isn’t empty

lxc config set storage.images_volume img_pool/img_vol
Error: Storage volume “img_pool/img_vol” isn’t empty

Is this a new bug or am I missing something.

I could use type dir to a zfs volume, but why should I ?

That might help !!!

tank/bkp_pool                                                                               264K  2.17T       24K  none
tank/bkp_pool/containers                                                                     24K  2.17T       24K  none
tank/bkp_pool/custom                                                                         48K  2.17T       24K  none
tank/bkp_pool/custom/default_bkp_vol                                                         24K  2.17T       24K  /var/snap/lxd/common/lxd/storage-pools/bkp_pool/custom/default_bkp_vol
tank/bkp_pool/deleted                                                                       120K  2.17T       24K  none
tank/bkp_pool/deleted/containers                                                             24K  2.17T       24K  none
tank/bkp_pool/deleted/custom                                                                 24K  2.17T       24K  none
tank/bkp_pool/deleted/images                                                                 24K  2.17T       24K  none
tank/bkp_pool/deleted/virtual-machines                                                       24K  2.17T       24K  none
tank/bkp_pool/images                                                                         24K  2.17T       24K  none
tank/bkp_pool/virtual-machines                                                               24K  2.17T       24K  none
tank/img_pool                                                                               264K  2.17T       24K  none
tank/img_pool/containers                                                                     24K  2.17T       24K  none
tank/img_pool/custom                                                                         48K  2.17T       24K  none
tank/img_pool/custom/default_img_vol                                                         24K  2.17T       24K  /var/snap/lxd/common/lxd/storage-pools/img_pool/custom/default_img_vol
tank/img_pool/deleted                                                                       120K  2.17T       24K  none
tank/img_pool/deleted/containers                                                             24K  2.17T       24K  none
tank/img_pool/deleted/custom                                                                 24K  2.17T       24K  none
tank/img_pool/deleted/images                                                                 24K  2.17T       24K  none
tank/img_pool/deleted/virtual-machines                                                       24K  2.17T       24K  none
tank/img_pool/images                                                                         24K  2.17T       24K  none
tank/img_pool/virtual-machines                                                               24K  2.17T       24K  none
tank/lxd2                                                                                   155G  2.17T       24K  none
tank/lxd2/containers                                                                        154G  2.17T       24K  none
tank/lxd2/containers/bkp-graylog2                                                          8.22G  2.17T     6.84G  /var/snap/lxd/common/lxd/storage-pools/local/containers/bkp-graylog2
tank/lxd2/containers/bkp-gui1804                                                            120G  2.17T     9.77G  /var/snap/lxd/common/lxd/storage-pools/local/containers/bkp-gui1804
tank/lxd2/containers/bkp-ns2                                                               1.29G  2.17T      778M  /var/snap/lxd/common/lxd/storage-pools/local/containers/bkp-ns2
tank/lxd2/containers/checkmk                                                               2.85G  2.17T     2.85G  /var/snap/lxd/common/lxd/storage-pools/local/containers/checkmk
tank/lxd2/containers/graylog3                                                              9.36G  2.17T     9.61G  /var/snap/lxd/common/lxd/storage-pools/local/containers/graylog3
tank/lxd2/containers/ns1                                                                    574M  2.17T      828M  /var/snap/lxd/common/lxd/storage-pools/local/containers/ns1
tank/lxd2/containers/plex                                                                  8.13G  2.17T     8.13G  /var/snap/lxd/common/lxd/storage-pools/local/containers/plex
tank/lxd2/containers/unify                                                                 2.18G  2.17T     2.18G  /var/snap/lxd/common/lxd/storage-pools/local/containers/unify
tank/lxd2/containers/xwiki                                                                 1.67G  2.17T     1.67G  /var/snap/lxd/common/lxd/storage-pools/local/containers/xwiki
tank/lxd2/custom                                                                             24K  2.17T       24K  none
tank/lxd2/custom-snapshots                                                                   24K  2.17T       24K  none
tank/lxd2/deleted                                                                           684M  2.17T       24K  none
tank/lxd2/deleted/containers                                                                 24K  2.17T       24K  none
tank/lxd2/deleted/custom                                                                     24K  2.17T       24K  none
tank/lxd2/deleted/images                                                                    684M  2.17T       24K  none
tank/lxd2/deleted/images/979ff60086ca9fb1c93d3131f8eca291820a524f0bd0b7d621a3c2f5f41ef185   342M  2.17T      342M  /var/snap/lxd/common/lxd/storage-pools/local/images/979ff60086ca9fb1c93d3131f8eca291820a524f0bd0b7d621a3c2f5f41ef185
tank/lxd2/deleted/images/9e7158fc0683d41f7f692ce8b17598716d7eee925c6a593432df59488bf4131f   342M  2.17T      342M  /var/snap/lxd/common/lxd/storage-pools/local/images/9e7158fc0683d41f7f692ce8b17598716d7eee925c6a593432df59488bf4131f
tank/lxd2/deleted/virtual-machines                                                           24K  2.17T       24K  none
tank/lxd2/images                                                                             24K  2.17T       24K  none
tank/lxd2/snapshots                                                                          24K  2.17T       24K  none
tank/lxd2/virtual-machines                                                                   24K  2.17T       24K  none

That certainly does feel like a bug

Running 3.23 !

Please let me know if you want me to test or give you more information or even upgrade to 4.0 ?

Tx

I don’t know why 4.0 would be any different but at the same time I’ve not been able to reproduce your issue here on 4.0 with zfs, so who knows :slight_smile:

ok i Will attemps upgrade on the weekend and let you know

Do you have snapdir enabled globally or something like that?

Yes !

Try turning it off on those particular datasets see if that fixes it?

It work ! :frowning: sorry for that