Dying jail

Matthew Seaman matthew at FreeBSD.org
Wed Oct 26 08:46:06 UTC 2016


On 10/26/16 09:09, Eugene Grosbein wrote:
> Recently I've upgraded one of my server running 9.3-STABLE with jail containing 4.11-STABLE system.
> The host was source-upgraded upto 10.3-STABLE first and next to 11.0-STABLE
> and jail configuration migrated to /etc/jail.conf. The jail kept intact.
> 
> "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.
> 
> How do I know why is it stuck and how to forcebly kill it without reboot 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




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20161026/f30a6785/attachment.sig>


More information about the freebsd-stable mailing list