Hello
I have a jail configured like this:
I have in the host /etc/fstab the following line to mount the /stranger/media ZFS filesystem onto the jail:
To get access to /stranger on other machines on the network, I use NFS (both v3 and v4) to mount the filesystem. I can access the rest of filesystems in /stranger but I cannot access /stranger/media especifically:
So, the main question is, is there a better way to share a dataset between host and a jail? I tried zfs-jail too, but that makes the /stranger/jail filesystem unavailable in the host, so i cannot access it from NFS anyways.
Thank you
I have a jail configured like this:
jellyfin {
# STARTUP/LOGGING
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.consolelog = "/var/log/jail_console_${name}.log";
# PERMISSIONS
allow.raw_sockets;
exec.clean;
mount.devfs;
allow.mount = true;
allow.mount.zfs = true;
allow.mount;
securelevel = 0;
allow.mlock = 1;
allow.sysvipc = 1;
allow.nfsd = 1;
enforce_statfs=1;
# HOSTNAME/PATH
host.hostname = "${name}";
path = "/stranger/jails/${name}";
# NETWORK
ip4.addr = "bge4|192.168.1.173/24";
ip4.addr += "vlan0|10.100.0.142/25";
}
I have in the host /etc/fstab the following line to mount the /stranger/media ZFS filesystem onto the jail:
/stranger/media /stranger/jails/jellyfin/stranger/media nullfs rw,noatime 0 0
To get access to /stranger on other machines on the network, I use NFS (both v3 and v4) to mount the filesystem. I can access the rest of filesystems in /stranger but I cannot access /stranger/media especifically:
~ [qmdx] % doas mount -t nfs4 192.168.1.230:/stranger nfs
~ [qmdx] % ls nfs/media
"nfs/media": Input/output error (os error 5)
So, the main question is, is there a better way to share a dataset between host and a jail? I tried zfs-jail too, but that makes the /stranger/jail filesystem unavailable in the host, so i cannot access it from NFS anyways.
Thank you