nfs storage mounts get unmounted

elminster13

New Member
Oct 18, 2022
6
0
1
I am hoping someone might be able to explain or help me understand what might be happening with a couple of containers I have which use nfs mounts to my truenas server.

On the truenas server I have three nfs shares: nfs1, nfs2 and nfs3

On proxmox I have two lxc containers: lxc1 and lxc2

I have added the nfs shares as storage options in proxmox and then I have mounted those into the containers using:
pct set <lxc1> -mp0 /mnt/pve/nfs1,mp=/mnt/nfs1
pct set <lxc1> -mp0 /mnt/pve/nfs3,mp=/mnt/nfs3
pct set <lxc2> -mp0 /mnt/pve/nfs2,mp=/mnt/nfs2
pct set <lxc2> -mp0 /mnt/pve/nfs3,mp=/mnt/nfs3

Whats really weird to me is that this works fine when I start up one lxc but then when I start the other it dismounts. as though I can only have the nfs share mounted in one container even though they are different shares?
 
Last edited:
I think I may have figured it out, I think mount points are unique so I shouldnt be using mp0 all the time, rather mp1..2...3 etc.. but i need to experiment to see if that is per container or per node
 
Last edited: