I’m in trouble using lxd cluster with ceph backend. All container created comes with only 7Gb of disk space. My ceph configuration is using 3 nodes and I have around 500 Gb in ceph cluster. I want for exemple to allocate 100 Gb to a specific container and 50 to another.
I tried to go with rbd tool, but any time I tried to create an rbd volume I have these messages:
1.# rbd create lxdpool/lxd_lxdpool --size 32000
2. 2019-09-11 12:49:06.558 7f7da93e1b40 -1 librbd: rbd image lxd_lxd already exists
lxdpool is the pool name I want to give to my lxd init conf
Just set the
size property on the
root device for your containers.
lxc config device override NAME root size=50GB
lxc restart NAME should normally do the trick.
Thanks very much @stgraber it works fine !
lxc config device override con2 root size=500GB
Error: The device already exists
What is the issue?
lxc config device override copies the device config from the profile into the instance config and then modifies any additional options provided into the copy. However this cannot work if the instance config already has its own device, in that case use
lxc config device set instead.