A device with a btrfs storage pool died and now I’m unable to delete the storage pool.
user@t620:~$ lxc storage delete backup
Error: The storage pool is currently in use
When I try to empty the storage pool so it can be deleted I get this:
user@t620:~$ lxc delete bkp-bazarr
Error: The instance is currently running, stop it first or pass --force
user@t620:~$ lxc delete bkp-bazarr --force
Error: Stopping the instance failed: The instance is already stopped
user@t620:~$ lxc delete bkp-bazarr
Error: The instance is currently running, stop it first or pass --force
How can I fix this?
edit:
I’ve deleted all the containers from that storage pool in /var/snap/lxd/common/lxd/containers and now they show up as “stopped” in lxc list.
I’m still not able to delete them tho’
@t620:/var/snap/lxd/common/lxd/containers# lxc delete bkp-bazarr
Error: lstat /var/snap/lxd/common/lxd/storage-pools/backup/containers/bkp-bazarr: input/output error