i have created some storage
truncate -s 100GB /var/container_storage
zpool create container_storage /var/container_storage
lxc storage create container_storage zfs source=container_storage
I then created a profile for this storage
lxc profile create container_profile
lxc profile device add container_profile root disk pool=container_storage path=/
And created a container instance with that profile from an image that I have
lxc launch container_image container_machine -p container_profile
What I want to do now is to add some additional storage at a particular place in that container
I have a device that I want to use.
I have created a new zpool to use this device
zpool create container_extra /dev/sdb
That creates successfully
However, I’m having issues adding that new storage to the existing container
lxc profile device add container_profile extra_storage disk pool=container_extra path=/some/customer/container/path/
This displays the following error:
Error: Device validation failed for "extra_storage": Disk entry is missing the required "source" property