Access to all zfs pools from a jail for replications

Our company developed a front end for Solaris that’s similar to the webUI for TrueNAS. The big thing we worked on was replication. We developed a series of scripts and a UI for the replications.

We keep hourly, daily, and weekly snapshots. We have cron jobs that take the snapshots and kick off replications to other SANs. Our owner is very partial to the way we have replications working.

I’ve worked very hard and I have the replications running on FreeBSD to/from Solaris systems.

I would like to get this working in a jail on TrueNAS. I need to have Apache, PHP, and some other packages installed. This is the easy part. What I can’t figure out is how to get the zfs pools into the jail so I can use zfs send/receive to copy the snapshots.

We have many volumes on the zfs pool and the built-in replication of TrueNAS is super cumbersome to setup. It takes a really long time to setup schedules for each type of snapshot, get the replicating, and keep them pruned. All the work to make this happen is already done and working.

Some of our systems have several pools and I need to pass them all into the jail. Is there any documentation that has examples of this?

I would like to use TrueNAS as the basis of our storage system. I’m really trying to avoid figuring out how to configure ctld and generate the ctl.conf file. I’ve tried making a file manually, but I cannot get a LUN to publish on iSCSI.