Hi,
I try to add a disk device to a container with this command :
lxc config device add container cephfs-data disk source=cephfs:/data path=/cephfs
but, while I can mount* this CephFS on the LXD host, the command return :
Error: Failed to start device "cephfs-data": Unable to mount "a.b.c.d:3300:6789,a.b.c.d:6789,w.x.y.z:6789,s.t.u.v:6789:/" at "/var/snap/lxd/common/lxd/devices/container/disk.cephfs--data.cephfs" with filesystem "ceph": invalid argument
I can see a difference in the ceph node list : the first IP address is present 2 times, with two different ports.
I tried the same command on another host, which can also mount the cephFS filesystem with mount command, but it fails too.
*The mount command (in /etc/fstab) which is running fine :
a.b.c.d:6789,s.t.u.v:6789,a.b.c.d:6789:/data /mnt/data ceph rw,relatime,name=node,acl 0 2
The ultimate goal is to mount this cephFS inside many containers, to share datas.
I think I can first do the mount on the host, and then add a âclassicalâ disk device to containers, but it seems to be a little bit more âdirtyâ.