Currently I’m using Lxd via snapd on Debian Buster to containerize my home server. And… I’m new to Lxd / Lxc.
I have 4 containers with different services (nextcloud, samba, tvheadend, lms).
The ID mapping (uid/gid) for the containers are isolated from the host and from each other.
At the moment my data is stored on a sepperate Nas (Samba). My lxd host is accessing the Nas via cifs mounts (sometimes the same shares are mounted to a different path because I need to chown them to match the respective container user uids/gids for r/w).
I have configured different devices and bind mounted them to my containers.
That seems to work great for my usecases.
However, I want to save energy and I would like to use the nas hard disks in my server in the future. The described cifs mounts will then be omitted.
I’m worried about how I can ensure r/w access for multiple containers to the same path on the host in the future.
Is it even possible?
Is there a best practice or a better strategy?
I looking forward to your answers.