Hi,
I was able to attach it to one container but to others not There is error:
root@ds4~# lxc storage volume attach lxc_pool wspolny lucek /mnt/wspolny
Error: Failed to start device “wspolny”: Failed shifting storage volume “wspolny” of type “custom” on storage pool “lxc_pool”: Idmaps of container and storage volume are not identical
root@ds4~#
Config for that container looks like this:
root@ds4~# lxc config show lucek
architecture: x86_64
config:
image.architecture: amd64
image.description: Ubuntu focal amd64 (20200522_07:42)
image.name: ubuntu-focal-amd64-default-20200522_07:42
image.os: ubuntu
image.release: focal
image.serial: “20200522_07:42”
image.variant: default
limits.memory: 1024MB
security.privileged: “false”
volatile.base_image: ba2f0fd1bc593c485b22dfaac2e5c865294f384cef74f7974431f030a59df745
volatile.eth0.host_name: veth11f01f4c
volatile.eth0.hwaddr: 00:16:3e:d1:21:12
volatile.idmap.base: “0”
volatile.idmap.current: ‘[{“Isuid”:true,“Isgid”:false,“Hostid”:1000000,“Nsid”:0,“Maprange”:1000000000},{“Isuid”:false,“Isgid”:true,“Hostid”:1000000,“Nsid”:0,“Maprange”:1000000000}]’
volatile.idmap.next: ‘[{“Isuid”:true,“Isgid”:false,“Hostid”:1000000,“Nsid”:0,“Maprange”:1000000000},{“Isuid”:false,“Isgid”:true,“Hostid”:1000000,“Nsid”:0,“Maprange”:1000000000}]’
volatile.last_state.idmap: ‘[{“Isuid”:true,“Isgid”:false,“Hostid”:1000000,“Nsid”:0,“Maprange”:1000000000},{“Isuid”:false,“Isgid”:true,“Hostid”:1000000,“Nsid”:0,“Maprange”:1000000000}]’
volatile.last_state.power: RUNNING
volatile.uuid: 2b2ceb2c-749a-4bb3-be7e-0b3164a0696f
devices:
root:
path: /
pool: lxc_pool
size: 120GB
type: disk
ephemeral: false
profiles:
- default
stateful: false
description: “”
And config for container which it works on:
root@ds4~# lxc config show stomatolog-biz
architecture: x86_64
config:
image.architecture: amd64
image.description: Ubuntu focal amd64 (20200522_07:42)
image.name: ubuntu-focal-amd64-default-20200522_07:42
image.os: ubuntu
image.release: focal
image.serial: “20200522_07:42”
image.variant: default
limits.memory: 1400MB
raw.apparmor: mount fstype=nfs,
security.privileged: “true”
volatile.base_image: e7d9054e077d78757a79363696e3891e655d609216ac0f90e300b93a981acdbf
volatile.eth0.host_name: veth4bc39c86
volatile.eth0.hwaddr: 00:16:3e:46:8a:aa
volatile.idmap.base: “0”
volatile.idmap.current: ‘[]’
volatile.idmap.next: ‘[]’
volatile.last_state.idmap: ‘[]’
volatile.last_state.power: RUNNING
volatile.uuid: 44602edc-0c51-4fa9-8db3-a0117f54d32d
devices:
root:
path: /
pool: lxc_pool
size: 220GB
type: disk
wspolny:
path: /mnt/wspolny
pool: lxc_pool
source: wspolny
type: disk
ephemeral: false
profiles:
- default
stateful: false
description: “”
root@ds4~#
Could somebody help ?