Hello fellow FreeBSD users.
I am running in circles here because I can't solve the following problem:
I have a FreeBSD host running with several services, each in an individual jail. DNS and DHCP are already running, no problems here. Then I started to install a fileserver as a new jail... and here the drama starts.....
I have 3 ZFS Filesystems on the host which I am trying to mount in the fileserver jail:
storage1/data1
storage1/private
storage2/data2
As told in several blogs posts and howtos I added to the hosts /etc/sysctl.conf the following lines:
Then I activated the jailed mode for one of the filesystems:
Finally I added this filesystem to my fileservers jail:
When I use
NOW THE PROBLEM:
When I am trying to mount it I get a
I worked all the way through this forum but I could find anything that helped me. I also checked out several blog posts but the biggest part of them were ~5 years old and don't working any more.... I simply do not know which kind of privileges are missing.
These are the blog posts I checked out:
http://www.nlrs.fr/2013/08/29/freebsd-zfs-nas-jail/
http://blogs.freebsdish.org/pjd/2007/03/18/zfs-and-freebsd-jails/comment-page-8/
http://www.chruetertee.ch/blog/archive/2008/01/13/zfs-in-einer-freebsd-jail-verwenden.html
It would be very kind if anybody please give me a hint how to solve this problem.
Thank you
Regards
David
I am running in circles here because I can't solve the following problem:
I have a FreeBSD host running with several services, each in an individual jail. DNS and DHCP are already running, no problems here. Then I started to install a fileserver as a new jail... and here the drama starts.....
I have 3 ZFS Filesystems on the host which I am trying to mount in the fileserver jail:
storage1/data1
storage1/private
storage2/data2
As told in several blogs posts and howtos I added to the hosts /etc/sysctl.conf the following lines:
Code:
echo security.jail.mount_allowed=1
echo security.jail.enforce_statfs=0
Then I activated the jailed mode for one of the filesystems:
Code:
zfs set jailed=on /storage1/data1
Finally I added this filesystem to my fileservers jail:
Code:
zfs jail 3 /storage1/data1
When I use
zfs list
inside the fileserver jail I can see the filesystem:
Code:
NAME USED AVAIL REFER MOUNTPOINT
storage1 573G 1.23T 144K /mnt/stor1
storage1/data1 573G 1.23T 573G /mnt/stor1/data1
NOW THE PROBLEM:
When I am trying to mount it I get a
Code:
cannot mount 'storage1/data1': Insufficient privileges
I worked all the way through this forum but I could find anything that helped me. I also checked out several blog posts but the biggest part of them were ~5 years old and don't working any more.... I simply do not know which kind of privileges are missing.
These are the blog posts I checked out:
http://www.nlrs.fr/2013/08/29/freebsd-zfs-nas-jail/
http://blogs.freebsdish.org/pjd/2007/03/18/zfs-and-freebsd-jails/comment-page-8/
http://www.chruetertee.ch/blog/archive/2008/01/13/zfs-in-einer-freebsd-jail-verwenden.html
It would be very kind if anybody please give me a hint how to solve this problem.
Thank you
Regards
David