From owner-freebsd-jail@FreeBSD.ORG Mon Jan 3 14:49:08 2011 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2A9010656B4 for ; Mon, 3 Jan 2011 14:49:08 +0000 (UTC) (envelope-from erwin@mail.droso.net) Received: from mail.droso.net (grizzly.droso.net [IPv6:2a01:4f8:130:7021::5]) by mx1.freebsd.org (Postfix) with ESMTP id 3F32E8FC18 for ; Mon, 3 Jan 2011 14:49:07 +0000 (UTC) Received: by mail.droso.net (Postfix, from userid 1001) id BCB872F547; Mon, 3 Jan 2011 15:49:06 +0100 (CET) Date: Mon, 3 Jan 2011 15:49:06 +0100 From: Erwin Lansing To: freebsd-jail@freebsd.org Message-ID: <20110103144906.GL67325@droso.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PpAOPzA3dXsRhoo+" Content-Disposition: inline X-Operating-System: FreeBSD/amd64 8.1-RELEASE User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Unkillable jails with jailed zfs filesystems X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2011 14:49:08 -0000 --PpAOPzA3dXsRhoo+ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I've run into an issue where I can't kill off a jail as it keeps being in state dying, most likely because some of its filesystems are still busy. Network connections have all timed out and all processes have ended. This is mostly a stock 8.1-RELEASE, however with the patch from conf/149831 to jail its zfs filesystems and the problem is repeatable on multiple machines. Each jail has a large number of filesystems, each with different properties, mounted under its root filesystem, e.g. # zfs list -o name,mountpoint,jailed tank/jail/jail1 /jails/jail1 off tank/jail/jail1/home /home on tank/jail/jail1/tmp /tmp on tank/jail/jail2 /jails/jail2 off tank/jail/jail2/home /home on tank/jail/jail2/tmp /tmp on So far so good, but "/etc/rc.d/jail stop jail1" will leave jail1 in dying status. 'zfs destroy -r tank/jail/jail1' will report 'dataset busy'. Even worse, 'zfs destroy -f tank/jail/jail1/tmp' will still return a dataset busy, but also turn /tmp inside jail2 (!!) into mode 755, which of course leads to all kinds of fun in that jail. Any pointers to how to narrow down this issue welcome (and review of the above PR, which has set in GNATS for half a year now, as well :-) Cheers, -erwin --=20 Erwin Lansing (o_ _o) http://droso.org Ceterum censeo \\\_\ /_/// Carthaginem esse delendam <____) (____> erwin@lansing.dk --PpAOPzA3dXsRhoo+ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iD8DBQFNIeHiqy9aWxUlaZARAv99AKCMXBA5C38G6LittzT/cbTCvhxblwCgxE2h ZKcwCl0bcSJLMigXAABDEYo= =szKX -----END PGP SIGNATURE----- --PpAOPzA3dXsRhoo+--