I’m trying to figure out if this is a bug or expected behaviour.
lxc storage volume rename test-pool volume2 volume3
Error: Invalid expanded devices: Storage volume "maran-test" is already attached to a container on a different node
Note that “maran-test” is not related to the container volume2 is currently mounted on, it does not even live on the same pool.
Container the volume is attached on.
~# lxc config show --expanded hallo
architecture: x86_64
config:
image.architecture: amd64
image.description: ubuntu 18.04 LTS amd64 (release) (20191021)
image.label: release
image.os: ubuntu
image.release: bionic
image.serial: "20191021"
image.type: squashfs
image.version: "18.04"
limits.cpu: "2"
limits.memory: 500MB
volatile.base_image: d6f281a2e523674bcd9822f3f61be337c51828fb0dc94c8a200ab216d12a0fff
volatile.eth0.hwaddr: 00:16:3e:15:a3:28
volatile.idmap.base: "0"
volatile.idmap.current: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":65536}]'
volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":65536}]'
volatile.last_state.idmap: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":65536}]'
volatile.last_state.power: STOPPED
devices:
eth0:
name: eth0
nictype: bridged
parent: lxdbr0
type: nic
root:
path: /
pool: test-pool
size: 30GB
type: disk
volume:
path: /mnt/hallo/volumdde
pool: test-pool
source: volume
type: disk
volume2:
path: /mnt/hallo/volume2
pool: test-pool
source: volume2
type: disk
ephemeral: false
profiles:
- default
stateful: false
description: ""
Volume information
~# lxc storage volume show test-pool volume2
config:
block.filesystem: ext4
block.mount_options: discard
size: 25GB
volatile.idmap.last: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":65536}]'
volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":65536}]'
description: ""
name: volume2
type: custom
used_by:
- /1.0/containers/hallo
location: olaris-swarm.dev.bysh.me
Any idea why it won’t allow me to rename volumes?