From owner-freebsd-questions@FreeBSD.ORG Tue Apr 4 20:14:09 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C4D416A425 for ; Tue, 4 Apr 2006 20:14:09 +0000 (UTC) (envelope-from chad@shire.net) Received: from hobbiton.shire.net (mail.shire.net [166.70.252.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F4A943D76 for ; Tue, 4 Apr 2006 20:14:04 +0000 (GMT) (envelope-from chad@shire.net) Received: from [67.171.127.191] (helo=[192.168.99.68]) by hobbiton.shire.net with esmtpa (Exim 4.51) id 1FQrud-000Pr4-6Z; Tue, 04 Apr 2006 14:14:03 -0600 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> Mime-Version: 1.0 (Apple Message framework v746.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: "Chad Leigh -- Shire.Net LLC" Date: Tue, 4 Apr 2006 14:14:02 -0600 To: "Marc G. Fournier" X-Mailer: Apple Mail (2.746.3) X-SA-Exim-Connect-IP: 67.171.127.191 X-SA-Exim-Mail-From: chad@shire.net X-SA-Exim-Scanned: No (on hobbiton.shire.net); SAEximRunCond expanded to false Cc: Liste FreeBSD Subject: Re: jls shows dead jails too? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Apr 2006 20:14:09 -0000 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