clownphish
Dabbler
- Joined
- Dec 9, 2012
- Messages
- 33
I currently have my jail running reasonably well (and I've been super-impressed how easy and full of features it is - well done!). I am struggling with an issue though; I want to mount a remote NFS share (i.e. one served by another device on my network, not my FreeNAS device) on the jail startup. I get an 'operation not permitted' error if I attempt to do this from within the jail. From reading documentation, I see that the recommended way to do this is to mount it from the host system, which is what I'm now attempting.
I have mounts from my FreeNAS system (using NULLFS) working on startup through the GUI but it doesn't accept NFS syntax (by design, presumably, as there is no 'FS type' option). I've also found the /etc/fstab.<jailname> file which I thought I could add my NFS mount to. Sadly, this file appears to be created at startup and disappears when the jail is stopped.
Mounting the NFS share manually from the host FreeNAS works fine (and the jail can access it)
Does anyone have a solution or workaround (some post-startup script perhaps) that would mount this at startup? I guess one long-term option would be a feature request to support NFS mounts for jails through the GUI but I'd like something more immediate :)
I'm running FreeNAS-8.3.0-RELEASE-x64 (r12701M).
I have mounts from my FreeNAS system (using NULLFS) working on startup through the GUI but it doesn't accept NFS syntax (by design, presumably, as there is no 'FS type' option). I've also found the /etc/fstab.<jailname> file which I thought I could add my NFS mount to. Sadly, this file appears to be created at startup and disappears when the jail is stopped.
Mounting the NFS share manually from the host FreeNAS works fine (and the jail can access it)
Does anyone have a solution or workaround (some post-startup script perhaps) that would mount this at startup? I guess one long-term option would be a feature request to support NFS mounts for jails through the GUI but I'd like something more immediate :)
I'm running FreeNAS-8.3.0-RELEASE-x64 (r12701M).