Cannot Remove CUSTOM STORAGE VOLUME

i have two storage pools with an used_by like

“/1.0/storage-pools/ssd/volumes/custom/default”
“/1.0/storage-pools/default/volumes/custom/default”

their created_at differ, but that’s irrelevant. The latter has an empty used_by and the former has “/1.0

{
  "config": {},
  "description": "",
  "name": "default",
  "type": "custom",
  "used_by": [
    "/1.0"
  ],
  "location": "none",
  "content_type": "filesystem",
  "project": "default",
  "created_at": "****"
}

I’d like to remove the volume from the former pool (SSD), but it tells me “The storage volume is still in use” :

A) What does “/1.0” mean? Doesn’t look like it is in use to me.

B) How do I remove it from the SSD pool? Or how do I move it to the default pool? I can’t edit the former to remove the “used_by”: ["/1.0"] and add it to the latter. I even tried moving from ssd/default to default/default and it gives me “Failed deleting source volume after copy: The storage volume is still in use

/mnt/storage-ssd/custom is empty (also on the default storage pool)

select * from storage_pools
image

select * from storage_volumes

What does “lxc storage volume show ssd default” show?

The 1.0 is the api version. This is currently always 1.0 for lxd.

Sounds like the /1.0 means the volume is being used by LXD itself. So likely referenced in “lxc config show”

See Server configuration - LXD documentation for storage.backups_volume or storage.images_volume

1 Like

shows what was posted above:

config: {}
description: ""
name: default
type: custom
used_by:
- /1.0
location: none
content_type: filesystem
project: default
created_at: 0001-01-01T00:00:00Z

indeed, it shows

config:
  core.https_address: '[::]:8443'
  core.trust_password: true
  storage.images_volume: ssd/default

but if i try to edit, i get:

Config parsing error: Failed to move data over to directory "/var/snap/lxd/common/lxd/storage-pools/default/custom/default_default": Failed to run: rsync -a -HA --sparse --devices --delete --checksum --numeric-ids -q /var/snap/lxd/common/lxd/storage-pools/ssd/custom/default_default/ /var/snap/lxd/common/lxd/storage-pools/default/custom/default_default: exit status 23 (rsync: change_dir "/var/snap/lxd/common/lxd/storage-pools/ssd/custom/default_default" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3])
Press enter to open the editor again or ctrl+c to abort change

Config parsing error: ETag doesn't match: 10bf914586f2b8cbfa6fc733f71d98f600fffda5aadb3a28278bf92393f2fc76 vs 6588956f652c7dbeca926f806a58a0d5009f3b69f173c0a9de200ef1efba703a
Press enter to open the editor again or ctrl+c to abort change