Solved pass through zfs data set to jail?

Hi Guys,

I have a pool for nas with a couple of datasets such as zroot/downloads

Ive set up a jail for the nas everything works fine except of course it cant find my datasets

How can I pass zroot/downloads to a jail.

thanks
 
Easiest and safest way is to mount it using nullfs, this allows you to access a directory in multiple locations.

Let's assume zroot/downloads is mounted on /opt/downloads and your jail is set up under /opt/jail. Then you could use something as # mount -t nullfs /opt/downloads /opt/jail/opt/downloads.

You could make this permanent by adding mount.fstab to /etc/jail.conf so that the filesystem(s) get automatically (dis)mounted whenever you start or stop the jail.
 
Back
Top