From owner-freebsd-stable@freebsd.org Wed Oct 26 08:46:06 2016 Return-Path: Delivered-To: freebsd-stable@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 21C32C22452 for ; Wed, 26 Oct 2016 08:46:06 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A8E1DAA9 for ; Wed, 26 Oct 2016 08:46:05 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from ox-dell39.ox.adestra.com (unknown [85.199.232.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id E7F91E833 for ; Wed, 26 Oct 2016 08:46:00 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/E7F91E833; dkim=none; dkim-atps=neutral Subject: Re: Dying jail To: freebsd-stable@freebsd.org References: <581064BB.1030500@rdtc.ru> From: Matthew Seaman Message-ID: <591438f4-7ae3-252a-c604-8491787ad9f0@freebsd.org> Date: Wed, 26 Oct 2016 09:45:50 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <581064BB.1030500@rdtc.ru> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="7WhCgLKjuec0H16LvX9Ooi8obLxNwavln" X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Oct 2016 08:46:06 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --7WhCgLKjuec0H16LvX9Ooi8obLxNwavln Content-Type: multipart/mixed; boundary="SjNsFvx2GHm0XXrEH7wiClAxaKXVUVe82"; protected-headers="v1" From: Matthew Seaman To: freebsd-stable@freebsd.org Message-ID: <591438f4-7ae3-252a-c604-8491787ad9f0@freebsd.org> Subject: Re: Dying jail References: <581064BB.1030500@rdtc.ru> In-Reply-To: <581064BB.1030500@rdtc.ru> --SjNsFvx2GHm0XXrEH7wiClAxaKXVUVe82 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/26/16 09:09, Eugene Grosbein wrote: > Recently I've upgraded one of my server running 9.3-STABLE with jail co= ntaining 4.11-STABLE system. > The host was source-upgraded upto 10.3-STABLE first and next to 11.0-ST= ABLE > and jail configuration migrated to /etc/jail.conf. The jail kept intact= =2E >=20 > "service jail start" started the jail successfully > but "service jail restart" fails due to jail being stuck in "dying" sta= te for long time: > "jls" shows no running jails and "jls -d" shows the dying jail. >=20 > How do I know why is it stuck and how to forcebly kill it without reboo= t of the host? I've seen this fairly frequently. I think it may have something to do with old network connections waiting to be cleaned up -- if you run sockstat it's all the stuff that gets listed at the end with lots of question marks. BICBW. One tip I've found is *not* to specify the JID number in jail.conf, and just let the system allocate a new one as it feels necessary. If you've scripting that uses the JID to operate on a specific jail, it's easy to substitute the jail name instead. Cheers, Matthew --SjNsFvx2GHm0XXrEH7wiClAxaKXVUVe82-- --7WhCgLKjuec0H16LvX9Ooi8obLxNwavln Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJYEG1DAAoJEABRPxDgqeTnfMEQALad8X+gi1bB4ZNEaEkkV6Tb beIIlQYKiPFe6uvTZuDVxYAJRWlf0OmwCq/ZSh0KxWfueqzQh7faeQuAE5ihtVuR K2SUOQfQFihJ4lpT/3sxAeclEIiTIkILG5DVIEwJux0Lbaa1Vd8/IRkqnyErrO3u 9WRsqDPNe94xUdHFx2zqz2fJfOfAV2S1Nqu0PKJ06iSvphQanNfkqXfuwg5mF+z0 X6ptiR8faOkHBUlicN754MEuJQ0871JsxshIbP2+322DAyd4NYd8T5jp8CNFxqOe RWQN2iATU2DC6lDQ1kA0hNpCv4LokVUjtqGct7VRg9VbDNGlBq6euEzN9K8CBqkN YjjigWnSQuFfC1XbwZrJVaBYAdK9eZauSE2xiiJUaANjQbJ2W97McX9v1v/SWJv+ Y/LVi2oOtdmiNlX4VzEb91et345PSTl2THoSAMXb0ZhhZGzzeOPIT7bb/wmeaCEO DWwvFtIhc/WY2FlZCi3kzZDsx+MfeQN5IweAMzll6dXMFUX6O11ldiKpD5yGU4Lj uwwIy73Rpg5/aQy0DOV2ZEuQPsiWfOCsVWXxrMfFGufv/rI3rYxkTiSbkU6PK12K FM0uKqYiKV6Y4271YDYPBJY8nqFte7kIOMWuBpfNjzAOikYX1M0uw5TPHN7dkons bPTCzBt/XbbUypS2z3Pm =3vhu -----END PGP SIGNATURE----- --7WhCgLKjuec0H16LvX9Ooi8obLxNwavln--