I deleted the container ‘focaltest’ a few weeks ago, but recently discovered that its storage volume is still hanging around:
$ lxc storage volume list lxd-partition
+-----------+------------------------------------------------------------------+-------------+--------------+---------+
| TYPE | NAME | DESCRIPTION | CONTENT-TYPE | USED BY |
+-----------+------------------------------------------------------------------+-------------+--------------+---------+
....
+-----------+------------------------------------------------------------------+-------------+--------------+---------+
| container | focaltest | | filesystem | 1 |
I tried to delete it but can’t:
$ lxc storage volume delete lxd-partition focaltest
Error: not found
The host is Ubuntu 20.04 using LXD from Snap. The storage is on a BTRFS partition that’s only used for LXD.
$ snap list
Name Version Rev Tracking Publisher Notes
lxd 4.11 19389 latest/stable canonical✓ -
How can I get rid of this orphaned storage volume and free up the space it’s taking?