I have a FreeNAS box and want to create a FreeBSD jail for custodial scripts to manage files on various datasets in my main zpool. I want the jail to be able to move files across datasets so I would prefer to not mount via a network share. I want to put these scripts into a jail so I can install extra ports to help me out with building various toolsets for my scripts. The issue I am seeing is being able to access my zpool from the jail.
I tried mount_nullfs. I my example, /mnt/za1 is my main zpool. When I runWhat is the best way to accomplish this?
I tried mount_nullfs. I my example, /mnt/za1 is my main zpool. When I run
mount_nullfs /mnt/za1 /mnt/za1/jails/mybsd/za1, It errors out
mount_nullfs: /mnt/za1 (/mnt/za1) and /mnt/za1/jails/mybsd/za1 are not distinct paths