From owner-freebsd-fs@freebsd.org Sun Oct 11 09:37:17 2015 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 86DDF9D3997 for ; Sun, 11 Oct 2015 09:37:17 +0000 (UTC) (envelope-from michael@ranner.eu) Received: from mail.azedo.at (mail.azedo.at [91.118.6.139]) by mx1.freebsd.org (Postfix) with ESMTP id 0ABFB1BCA for ; Sun, 11 Oct 2015 09:37:16 +0000 (UTC) (envelope-from michael@ranner.eu) Received: from mail.azedo.at (mail.azedo.at [172.20.10.3]) by mail.azedo.at (Postfix) with ESMTP id 5A9E9A83018; Sun, 11 Oct 2015 11:22:33 +0200 (CEST) X-Virus-Scanned: amavisd-new at azedo.at Received: from mail.azedo.at ([172.20.10.3]) by mail.azedo.at (mail.azedo.at [172.20.10.3]) (amavisd-new, port 10024) with ESMTP id farAmkuhiwG9; Sun, 11 Oct 2015 11:22:20 +0200 (CEST) Received: from lynx.local (80-121-99-80.adsl.highway.telekom.at [80.121.99.80]) by mail.azedo.at (Postfix) with ESMTPSA id 448EFA83015; Sun, 11 Oct 2015 11:22:20 +0200 (CEST) Subject: Re: Zfs locking up process To: freebsd-fs@freebsd.org References: From: Michael Ranner X-Enigmail-Draft-Status: N1110 Message-ID: <561A2A4B.4080704@ranner.eu> Date: Sun, 11 Oct 2015 11:22:19 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Oct 2015 09:37:17 -0000 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