Re: Accessing ZFS pool from jails
Why do you need access to the pool itself? The usual approach would be to create a ZFS filesystem (or "dataset") and then allow your jail to access it. This can be done by using the so called
jailed property (see the
zfs(8) manualpage for more information on that).
This property will also provide management access over the filesystem from within the jail itself. Keep in mind that if you use this approach then you won't be able to access the filesystem by mounting it somewhere outside the jail.
Still, I personally prefer using
nullfs, so basically 'remounting' an already existing filesystem somewhere else. This is also relatively easy to manage; you might want to look into the
mount.fstab option for usage in
/etc/jail.conf (see the
jail.conf(5) manualpage for that).
Also; not trying to scare you here but I don't think you'll have much luck trying to get NFS working from inside a jail. That is, unless of course we're talking about the client component (so mounting remote filesystems; not sure from mind but I could imagine this to be doable).
But running an NFS server from inside a jail is nearly an impossible task. I ended up utilizing
net/samba36 just because of that. While the NFS server was an utter pain to set up (well, not so much setting up but actually getting it to work) using Samba was a breeze in comparison.
Edit: s/this\ also/this\ is\ also/