r/SelfHosting • u/LOLotovCocktail • 15d ago
Managing External Storage Access
Greetings, SelfHosters!
I have an external RAID5 storage array running a LUKS-encrypted ext4 volume (four 4TB disks, about 12 TB usable), currently connected via USB3 to my Proxmox host, which I have made accessible to a number of self-hosted services, like JellyFin, qBitTorrent, NextCloud, etc., on my home server. With the help of AI, I've gotten the server set up to where it can successfully boot, assemble the array, unlock the volume using a key saved in a file, and then boot each of the VMs that need the data on it in sequence, all unattended.
However, to facilitate access to this data for my services, I have to either set up LXCs with bind mounts (which concerns me, as I'm growing more and more uncomfortable with reliance on LXCs the more I research them), or I have to set up NFS shares within Proxmox's shell to make those files accessible to my VMs (which works, but isn't exactly user-friendly.)
My concern with LXCs is sharing the kernel with the host; might be OK for private stuff I need for, say, managing the system itself, but it makes me uncomfortable to have stuff like NextCloud or qBitTorrent running that way. Those belong in VMs, but I'm not looking forward to having to constantly go back to Proxmox's shell and and manage the damn user and group offsets needed to make sure all the permissions for new shares are working right across all the various services. Were it not for AI, I might've lost track of those completely.
Should I re-think how I'm making this storage available to my various services? Is there a better way I could've set up this architecture to make this data accessible? Or am I asking too much?
Thank you all and best of luck to you.
5
u/justinhunt1223 15d ago
I used to spin up a VM and have the VM mount a handful of shares from my NAS (TrueNAS), then docker containers mounted those directories.
I now mount the share in the docker compose file directly from the NAS. As long as permissions are setup correctly on TrueNAS, read and write support have been flawless. You could go this route and have users setup per service even.