Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Oct 2015 11:22:19 +0200
From:      Michael Ranner <michael@ranner.eu>
To:        freebsd-fs@freebsd.org
Subject:   Re: Zfs locking up process
Message-ID:  <561A2A4B.4080704@ranner.eu>
In-Reply-To: <CAFoaQoDVt5eJKTjcmGmR2fmQoL_WQV1ZebNUb_K9qLY4=cOi6A@mail.gmail.com>
References:  <CAFoaQoDdKHzASfgxY7ptHuqk=nCsxvpq4q3gr9_QsUK4Hkim9w@mail.gmail.com> <CAFoaQoCB5CmorF4wfabz7iBaqxzxxggdqJiqePUTqLCnFichWA@mail.gmail.com> <CAFoaQoAt--8pGh_vGVTfVWjEBJ5uRM0Tr6TS-czFbQ-eSHKvXg@mail.gmail.com> <CAFoaQoDVt5eJKTjcmGmR2fmQoL_WQV1ZebNUb_K9qLY4=cOi6A@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

Am 07.10.15 um 17:11 schrieb Rajil Saraswat:
> Hello
>
> I have server running Freenas 9.3 with a few jails. The machine has two new
> disks setup in mirror. I have a dataset (/mnt/tank/media) which is shared
> in two jails.
>
> Unfortunately, sometimes when I do a ls in a jail in the shared directory I
> see that the process just hangs.
>
> Today in the jail I did an 'su'  and process just hung. On the host if i do
> ls /mnt/tank/media it also hangs.
>
> The su process (pid 77477) is taking up 100% cpu in the jail. It seems that
> zfs is holding up the process. Any idea what could be wrong?
>
>
It is a known problem with ZFS and nullfs. I had no problems under
FreeBSD 8 witch such a setup, but since FreeBSD 9 it is very unstable to
mount_nullfs on ZFS. I experienced the same behaviour with Apache jails
and PHP, mostly PHP running with 100% CPU inside the jail.

So you cannot "share" the dataset between to jails without the risk of
hangs - its a problem inside the VFS.

You should set the mountpoint via "zfs set" inside your jail. But you
can do this only for one jail.

Regards
Michael


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?561A2A4B.4080704>