jail and dedicated zfs dataset

Jacques Foucry jacques+freebsd at foucry.net
Sat Feb 8 08:42:18 UTC 2020


Le vendredi 07 févr. 2020 à 23:49:32 (-0800), David Christensen à écrit:
> > Definitively I need to buy and read it.
> 
> +1

:-)

> 
> Both were created via ZFS replication -- e.g. I did a 'zfs send' on my
> previous server and a 'zfs receive' on this new server.
> 
> 
> So, I guess the definition of a "received" property source is that the value
> came from a 'zfs receive' operation (?).

Sound logical. Mine was created more classical way ` zfs create tank/root/mails` 

> > But in the jail the Mouted on is [restriced]
> > 
> > mail# df -h .
> > Filesystem         Size    Used   Avail Capacity  Mounted on
> > tank/root/mails    6.9T     88K    6.9T     0%    [restricted]
> > mail# pwd
> > /var/mail
> 
> RTFM df(1) does not define "restricted".  I am seeing a pattern here...
> 
> 
> > I can, as root create folders. Is it weird or normal?
> 
> Usually, root can create folders anywhere.  What matters is whether or not
> the user the mail server runs as inside the jail can create folders and
> files where it needs to.

Well seems it was the other problem side effect.

Postfix and dovecot does not start because the ipv6 address was locked by the
host at jail startup time.

Change sysctl net.inet6.ip6.dad_count=0 allow those services to start correctly
AND now /var/mail is not [restrited] anymore. I think the 2 issues were linked.

> YW.  Good luck.  Let us know what you figure out.

Thanks again for your time,
seems it's ok now.
-- 
Jacques Foucry


More information about the freebsd-questions mailing list