Mounting network shares on 11.2

Penbrock

Dabbler
Joined
May 27, 2017
Messages
26
I have run Plex inside Freenas for a long time. I have 2 Freenas servers due to costs and drive spaces. In the older version I would just SSH to the NAS and add a folder in /mnt/ , run [mount -t nfs 192.168.2.113:/mnt/TV2 /mnt/TV2] then go to the jail shares and mount the folder. I did have to re-do this every time I rebooted but it worked.

Now with 11.2 I think this is going to be an issue because I would need to stop Plex, create the folders in the jail then add a mount and restart Plex. It is not the end of the world doing this but is there a better way? Can I just create the mounts in the jail itself and have it save on reboot so I don't have to keep messing with it?
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
You can't directly mount a NFS share from the jail, as NFS is not "jailfriendly". (see lsvfs | grep jail).

But you can dynamically mount a NFS share into the jail from the host system, e.g.:
mount -t nfs server2:/mnt/TV2 /mnt/pool/jails/plexjail/mnt/TV2
 
Top