Ideally (for logic's sake) I'd be mounting any share inside a container (full stop), however it seems that bindmounts are the way things are done with PVE:
I've started with a bindmount and a user that has RO access to a NAS shared drive which suffices for the LXC that only needs read access.
I'm wanting to add (in another container) RW access to the same share (I have two users on the NAS already)... do I:
Sorry in advance, it's been a long time since I've been an active Linux admin, maybe no one answers this question (I've seen it a few times) because the solution is something rudimentary we're all overlooking.
I've started with a bindmount and a user that has RO access to a NAS shared drive which suffices for the LXC that only needs read access.
I'm wanting to add (in another container) RW access to the same share (I have two users on the NAS already)... do I:
- Use a RW user to mount the volume inside the host with ro=1 on the bindmount/LXC that only needs RO access. [My least preferred option, but will get the job done.]
- mount.cifs inside the LXCs - one with the RO user, one with the RW user. [My preferred option - though this doesn't seem to be a way that integrates (plays nicely?) with PVE.]
- Something else? [I'm open to ideas here.]
Sorry in advance, it's been a long time since I've been an active Linux admin, maybe no one answers this question (I've seen it a few times) because the solution is something rudimentary we're all overlooking.