Jail doesn't automount host-mounted NFS

Status
Not open for further replies.

lukeren

Explorer
Joined
Apr 13, 2017
Messages
62
I tried to describe the problem in the title, I may have failed.
My setup is this: 2 FreeNAS boxes, one with few resources that just acts as storage, another with various services running. I've shared the storage of the small box via NFS, it gets mounted through a post-init init command and this works fine.
I've then created a jail and added the NFS mount via the UI, no problem. The issue appears when I reboot the server. The NFS mounts ok, but the mount in the jail doesn't go through.

If I restart the jail, it comes through ok. I can also just mount it through the UI.

I'm suspecting the jail starts before the post-init, but I haven't been able to find any information on this.
 

lukeren

Explorer
Joined
Apr 13, 2017
Messages
62
Upgraded from 11.0-U3 to 11.1-U1, same thing.
I then changed the mountpoint in the post-init from /mnt/storage to /mnt/tank/jails/jailname/mnt/storage and removed the mount within the jail, now it seems to persist through reboots.

It's working, but is there something I'm missing? Some reason not to do it this way?
 
Last edited:
Status
Not open for further replies.
Top