Date: Wed, 26 Oct 2016 09:45:50 +0100 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-stable@freebsd.org Subject: Re: Dying jail Message-ID: <591438f4-7ae3-252a-c604-8491787ad9f0@freebsd.org> In-Reply-To: <581064BB.1030500@rdtc.ru> References: <581064BB.1030500@rdtc.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --7WhCgLKjuec0H16LvX9Ooi8obLxNwavln Content-Type: multipart/mixed; boundary="SjNsFvx2GHm0XXrEH7wiClAxaKXVUVe82"; protected-headers="v1" From: Matthew Seaman <matthew@freebsd.org> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?591438f4-7ae3-252a-c604-8491787ad9f0>