Add a "one node only" disk to a lxd cluster?

On a LXD cluster with the dir storage driver I have one storage pool “local” for all nodes. Just for a specific cluster node I would like to add another disk. So that I can access this new disk on a container running on this specific node. ?

Background: I just want to use this disk storing files for a nfs server.
So If I have an external usb disk . I would like to add it with something similar as
lxc config device add <instance> disk. But I and not sure if this is possible?

I read the Tutorial at https://ubuntu.com/blog/usb-hotplug-with-lxd-containers
and got my desire working with:
lxc config device add nfs-server Crucial disk source=/dev/sdb path=/mnt/data2

Remark: At first I tried lxc config device add nfs-server Crucial usb vendorid=0fce productid=44da But the usb disk would not show up in the instance

1 Like