You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had several Volumes in a Dir backed Pool. For some reason the Directory for the Pool (and hence the Volumes) went away (I only rebooted the host; maybe it was deleted long ago by a coworker, but lxc hold to the Dir?). Then I tried to destroy the Volumes both via terraform and lxc storage volume delete command. Both reported the Volumes were deleted, but listing them with lxc storage volume list still showed them.
I started looking around and found the Pool Dir was missing. I created the Pool and Volume Dirs with sudo mkdir -pv /var/snap/lxd/common/lxd/storage-pools/local/custom/CWDC-CLDN-0{1,2,3,4,5,6}-cloudian00{1,2,3,4} and run again lxc storage volume delete on them and it worked.
Steps to reproduce
Create some empty Volumes on a Dir backed Pool
Remove the Pool Dir.
Delete the Volume
List Volumes.
The text was updated successfully, but these errors were encountered:
We've replaced that logic in recent LXD releases so things should error more consistently now.
For those that do have volumes that are missing on disk, manually re-creating them is indeed the way to make LXD happy with deleting them for good.
I would expect lxc storage volume delete to fail now as our error handling logic is much more comprehensive and tested.
Closing as this should have been sorted now. Also because this issue was filed against the wrong repository.
lxc-start --version
: 3.0.3Issue description
I had several Volumes in a Dir backed Pool. For some reason the Directory for the Pool (and hence the Volumes) went away (I only rebooted the host; maybe it was deleted long ago by a coworker, but
lxc
hold to the Dir?). Then I tried to destroy the Volumes both viaterraform
andlxc storage volume delete
command. Both reported the Volumes were deleted, but listing them withlxc storage volume list
still showed them.I started looking around and found the Pool Dir was missing. I created the Pool and Volume Dirs with
sudo mkdir -pv /var/snap/lxd/common/lxd/storage-pools/local/custom/CWDC-CLDN-0{1,2,3,4,5,6}-cloudian00{1,2,3,4}
and run againlxc storage volume delete
on them and it worked.Steps to reproduce
The text was updated successfully, but these errors were encountered: