I looking to install my own on-premise LXD server to store images on my ubuntu server. To make it ready for production, I choosen to use a dedicated disk with a single full btrfs partition on it (nvme M.2 ssd).
At this time I created the btrfs partition and adding this partition to my /etc/fstab using the options bellow:
/dev/disk/by-partlabel/LXD-STORAGE brtfs /data defaults,nofail,discard,noatime,nodiratime,compress,autodefrag 0 0
The main use I want to achieve is to be able to have an LXD server that I can use as a repository. The development of container and their push will be done from another machine.
If I understood correctly, I have to create an LXD cluster in this case. So I’m about to follow this demo from @stgraber ber by adapting it to my use case. (probably RBAC + candid authentication on the server)
However, I did not find an example on how to configure the BTRFS storage. The documentation explains well the concepts and actions for storages and volumes. But I don’t know how to configure my disk (subvolumes and configuration with lxd)
If anyone has any explanation on this. Thanks in advance