Some of my containers have all their snapshots that are not deleted automatically after their expiration date (possible to delete manually). I am using
/snap/bin/lxd.lxc config set c1 snapshots.expiry "7d" to make my snapshots in a bash script.
The expiry dates for each container are mentioned in the column “EXPIRES AT”. The command
lxc config get c1 snapshots.expiry also shows me the correct expiration date.
The strange thing is that on another server that hosts LXD of the same version, there is no such problem.
Also note that there is a snapshot of a container that I can’t delete manually with
lxc delete c1/c1-09-04-2022. Here is the error:
Error: Failed setting subvolume writable “/var/snap/lxd/common/lxd/storage-pools/default/containers-snapshots/c1/c1-09-04-2022”: Failed to run: btrfs property set -ts /var/snap/lxd/common/lxd/storage-pools/default/containers-snapshots/c1/c1-09-04-2022 ro false: ERROR: Could not set subvolume flags: Read-only file system
Thank you in advance for your help.
LXD version (snap) : 5.0.0
Host OS : Debian 10
Containers OS : Debian 10/11