Date: Tue, 4 Apr 2006 14:14:02 -0600 From: "Chad Leigh -- Shire.Net LLC" <chad@shire.net> To: "Marc G. Fournier" <scrappy@hub.org> Cc: Liste FreeBSD <freebsd-questions@freebsd.org> Subject: Re: jls shows dead jails too? Message-ID: <A8F96A5A-A17E-4F0A-955F-A3B43165C96E@shire.net> In-Reply-To: <20060404200335.GA82670@xor.obsecurity.org> References: <44328EB2.6080407@donnex.net> <20DC3BAD-1C2D-46B7-95BA-CEC6BB4C15FD@shire.net> <20060404162028.F947@ganymede.hub.org> <20060404200335.GA82670@xor.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Apr 4, 2006, at 2:03 PM, Kris Kennaway wrote: > On Tue, Apr 04, 2006 at 04:21:39PM -0300, Marc G. Fournier wrote: >> On Tue, 4 Apr 2006, Chad Leigh -- Shire.Net LLC wrote: >> >>> >>> On Apr 4, 2006, at 9:20 AM, Daniel Johansson wrote: >>> >>>> I'm setting up a few jails on my FreeBSD 6.0 box and when I run >>>> jls to >>>> list my jails it shows all my started jails. >>>> >>>> The problem is that when I kill a jail with kill -TERM -1, thats >>>> what the >>>> man page tells me to use, it still is listed when I run jls. Why >>>> is that >>>> and is there any way to clear the jls list? Where does jls get >>>> the list >>>> of the jails? >>>> >>> >>> The jail is not completely did in that case. It still "owns" some >>> resources of some sort. >> >> Is there some way of finding out what resources? Right now, on >> one of my >> boxes: >> >> # jls >> JID IP Address Hostname Path >> 4 200.46.204.254 mx2.hub.org /vm/1/ >> mx2.hub.org >> 2 200.46.204.254 mx2.hub.org /vm/1/ >> mx2.hub.org >> 1 200.46.204.254 mx2.hub.org /vm/1/ >> mx2.hub.org >> >> It doesn't bother me too much, as 1/2 doesn't appear to be >> affecting 4, >> but still ... > > See my reply. Other things that I have seen are if you have a FS mounted inside your jail and that did not umount completely or appropriately, for example. For example, I use file backed md devices as jail file systems and I mount various pieces of a master jail inside my jail. If I do not umount everything cleanly before shutting the jail down it remains listed in the jls list Chad --- Chad Leigh -- Shire.Net LLC Your Web App and Email hosting provider chad at shire.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A8F96A5A-A17E-4F0A-955F-A3B43165C96E>