Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jan 2011 15:49:06 +0100
From:      Erwin Lansing <erwin@FreeBSD.org>
To:        freebsd-jail@freebsd.org
Subject:   Unkillable jails with jailed zfs filesystems
Message-ID:  <20110103144906.GL67325@droso.net>

next in thread | raw e-mail | index | archive | help

--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+--



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