Delete non excisting snapshot

Hi all,

I restored a lxc container. however there was an excisting snapshot that does not excist anymore. is there some way to delete the non excisting snapshot?

now i got a error

Error: lstat /var/snap/lxd/common/lxd/storage-pools/lxd/containers-snapshots/kopano/kopano/: no such file or directory

if i create the directory it still does not find it?

What storage driver is that?


nsenter --mount=/run/snapd/ns/lxd.mnt mkdir -p /var/snap/lxd/common/lxd/storage-pools/lxd/containers-snapshots/kopano

nsenter --mount=/run/snapd/ns/lxd.mnt /snap/lxd/current/bin/btrfs subvol create /var/snap/lxd/common/lxd/storage-pools/lxd/containers-snapshots/kopano/kopano/

thank you this works.

thank you for you help multiple times!

No problem. Sorry about that. You obviously shouldn’t ever get into such a state, we’re hoping or new storage layer will avoid any such issues from happening and that the errors you got are effectively remnants from the old implementation.

No problem.

Indeed i reinstalled my system and got rid of loopback that i had.

I am happy with lxd👍 Not that i dont have loopback devices everything feels much faster.

Keep up the good work​:+1::+1::+1: