From owner-freebsd-stable@freebsd.org Mon Oct 31 17:21:15 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 A2835C288A3 for ; Mon, 31 Oct 2016 17:21:15 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 230DB1FAD for ; Mon, 31 Oct 2016 17:21:12 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: by mail-wm0-x234.google.com with SMTP id n67so241816033wme.1; Mon, 31 Oct 2016 10:21:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=eaVyc169ogcHJfEc1gVsyIhjbVZFQmNkkT7MBp9jHaI=; b=i6RMmesK36YuI2piUbRDWHuhz14i6pMBPp7BjEMtK2KnDDipKt04o7Cfw3YM0yJeRZ QyV6kif/+nu/5HTVYpMDL97BYUXuQ3HYj09DaDLKj5Mf3JB3vQuXWT545k+MXBkTzkyM cJnmYlvCZ36UAp7WCnbpo3ktefTzv6TRZpvRdgNyVDtirY3PWi3a3lFctCBB4w/KMPna yRPhEAClSkbl++SMSAfSKButKkxE0ywJzJ2NU4E8ynGurhLFKRLf8yDb0gL9IkG2pf61 1U9MIW1Gug5tfutBZjlO5XTPOL0VJD4VJDpqWOxaUVe8R5vLbpByXYj/CPpecjSUP4fR fB/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=eaVyc169ogcHJfEc1gVsyIhjbVZFQmNkkT7MBp9jHaI=; b=aQOX8FpTvfAox8dZNOUYAEv1m1dL9qQSI4OUBE2Zy9a5MSHj7l+ZwivUslINQ2WKRG 9+R9PShlEGkc1svVhsjJOy0+bTCdVYYBu5zrdG38xsOxdWNuwS8cLzjF+NpzRGRU6rBl FVVcBUj0MqLpqI7hD/f9jtEibNXPj0wz6lsPJsLBhLQllJuYDR9/hNbLOCn1OPeGfOMz k/xpiu5YU3ikm/VAHWoWyiCoh2WYKrzGFyYFX58QwnFCID3ra7GnYfXBG92H9aUUWc0C /28jNfx1zx585i2dsFRzjLasT+BaD3NEK3e01jFgj9ya/XW+RXkR8dh5sU0dMbmBCA2w cXPQ== X-Gm-Message-State: ABUngvfdzquUhdegY70nwZ6AJXovDVrqFjYzXsnd18T2QVld6nJdBOxivXUb1AMBu38sbA== X-Received: by 10.194.115.135 with SMTP id jo7mr23251290wjb.21.1477934470639; Mon, 31 Oct 2016 10:21:10 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by smtp.gmail.com with ESMTPSA id af4sm31029088wjc.17.2016.10.31.10.21.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Oct 2016 10:21:09 -0700 (PDT) Sender: Baptiste Daroussin Date: Mon, 31 Oct 2016 18:21:06 +0100 From: Baptiste Daroussin To: Eugene Grosbein Cc: FreeBSD Stable , jails@FreeBSD.org Subject: Re: Dying jail Message-ID: <20161031172106.tzzazowea6uspyzl@ivaldir.etoilebsd.net> References: <581064BB.1030500@rdtc.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="o64p67o46vbr2lx5" Content-Disposition: inline In-Reply-To: <581064BB.1030500@rdtc.ru> User-Agent: NeoMutt/20161014 (1.7.1) 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: Mon, 31 Oct 2016 17:21:15 -0000 --o64p67o46vbr2lx5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 26, 2016 at 03:09:31PM +0700, Eugene Grosbein wrote: > Hi! >=20 > Recently I've upgraded one of my server running 9.3-STABLE with jail cont= aining 4.11-STABLE system. > The host was source-upgraded upto 10.3-STABLE first and next to 11.0-STAB= LE > and jail configuration migrated to /etc/jail.conf. The jail kept intact. >=20 > "service jail start" started the jail successfully > but "service jail restart" fails due to jail being stuck in "dying" state= 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 reboot = of the host? >=20 I have the same problem on a FreeBSD 11.0 I have no specific jail.conf for exec.start is directly calls service cassandra onestart and stop calls the stop of the very same service. jail -f /myconf -r nameofthejail I can see the jail staying in dying mode for multiple minutes even after sockstat -j has been showing no TCP is left at all. No processes are left in the jail I'm mostly clueless on how to debug that and know that the dying jail is wa= iting on. It is painful as it prevents from exporting the zfs pool the jail was sitti= ng on. Any one has ideas? Best regards, Bapt --o64p67o46vbr2lx5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJYF31/AAoJEGOJi9zxtz5anpgP/iFPUF6kwjuk6T7phlDlu6Ve 6ORw4zPj38c+hk0o4iOwJOP0GnDd8exK+vcfICMV5HYcUDfuU01p91qcdB9FU4UF vXtZDHoOXrZ+BcmfH2AkVehmZkNzMt65mnQAP8XsAMUigdFUKcx05Nvyl81Y4/3l WtqgJtwLrml4e9+q26n5KYl58IoKHtxo0w3pCB1BwdPNcE1j6Ek4/cR1f8iOHd4I GeCVood13qzRZ3o1t9KY+hBxBXFSCT2eoSOdB7r/RgqkepmD0cP0sL9uMC++eH+z NBUmtVcCSHwlwz03U7/tWIz0M8uDQqXOHP0iX+vxFscZQxM/y3+7EYywqTf6i1TC lr4ph43APaE/czuJhZBXLm5Rqmhn2M0HN/2lJyCnHdyzdvfUwZKWTPMRbmzlvuAY vOyLqcAeJIK0rZN0pocxU5ZOrKHuN1x6VWlA9prfGTatCf7lABKNkKsBc8BsuYyO nP/BDnRsv/rQM5N+4Re2KfLMHjbgP3RLbkFlFtQfxQpoHVkWaKjhVgv0Ab/dV7k8 CeaZ0q23xx3V6EFtHA8RztJ1I61HFuhCMUmeE15RwLQ4/8KjzA2A7uRDxbsZTFYz I7xCSRgDjM+y0Qlt2ZotTNlvxOHdH1oWY0/MiPn+eIpVynMneTseFiMuJv61EUao NENFoRk8CA/y8VFonHZk =Kzdj -----END PGP SIGNATURE----- --o64p67o46vbr2lx5--