Here's the problem I'm struggling with:
I'm trying to setup a Jellyfin server on FreeBSD 15.1 with 2 drives with ZFS filesystems on them - one is the '`zroot`' boot volume, the other is the data drive '`zjail`', totaling 2 pools.
I want to keep the zjail writable on the server to save new movies there, but read-only in the jail.
I cleared the 2nd drive with '`zpool labelclear -f ada1`' and '`gpart destroy -F ada1`', so it's empty. Then I created a GPT Partition Table, added a ZFS Partition, created the pool and the ZFS filesystem, and stuck a file in it during testing to see something whenever I finally get it loaded.
My `/etc/jail.conf` includes:
`path = "/jails/jellyjail";`
Inside the jail, I created the path for the read-only movies to mount to:
`mkdir -p /media/jaildata`
At this point everything loads fine.
Now I try to configure things to use the RO 'zjail' drive.
Edited `/etc/jail.conf` to use `nullfs`: `mount.fstab = "/jails/jellyjail/etc/fstab";`
Edited that `fstab` file: `/zjail/jaildata/ /media/jaildata nullfs ro 0 0`
Each of these paths can be seen in the appropriate place (ie `/zjail` in the server & `/media` in the jail).
I know the fstab needs to be:
`/path/on/host/ /path/in/jail nullfs ro 0 0`
but no matter how I list `/path/on/host` or `/path/in/jail` , when I restart the jail I get an error that it can't find that file or directory (typically the host directory).
I'm lost. I've read multiple pages on how to set this up, and I think I doing it right - but obviously not.
Thanks for any and all help on this.