From owner-freebsd-jail@FreeBSD.ORG Fri Mar 9 21:08:22 2012 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 012E6106564A for ; Fri, 9 Mar 2012 21:08:22 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id AC3358FC08 for ; Fri, 9 Mar 2012 21:08:20 +0000 (UTC) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id EBB9528424; Fri, 9 Mar 2012 22:08:12 +0100 (CET) Received: from [192.168.1.2] (ip-86-49-61-235.net.upcbroadband.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id F173F28423; Fri, 9 Mar 2012 22:08:11 +0100 (CET) Message-ID: <4F5A713B.6010008@quip.cz> Date: Fri, 09 Mar 2012 22:08:11 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.19) Gecko/20110420 Lightning/1.0b1 SeaMonkey/2.0.14 MIME-Version: 1.0 To: Thomas Steen Rasmussen References: <4F5932FB.4060909@gibfest.dk> <4F5A6BCE.7060108@gibfest.dk> In-Reply-To: <4F5A6BCE.7060108@gibfest.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-jail@freebsd.org Subject: Re: Using jail name in rctl(8) doesn't work - jail id works X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2012 21:08:22 -0000 Thomas Steen Rasmussen wrote: > On 08-03-2012 23:30, Thomas Steen Rasmussen wrote: >> Hello, >> >> When I specify an rctl(8) rule for a jail using >> the jail name it doesn't work. Displaying >> resource usage doesn't work either, when >> using the jail name, like "rctl -hu jail:myjail" >> >> On the other hand, if I run "rctl -hu jail:3" >> where 3 is the jail id, it works as expected. >> >> The manpage examples use the jail name so >> it should work. Any idea why it doesn't ? I am >> using 9.0-REL on this system. >> >> Should I submit a PR with relevant examples ? > Hello, > > I submitted the PR which has more information. > jexec(8) is also unable to convert the jail name to jail id on > this sıstem. > My jails are created and started using ezjail, if that matters. > > Link to the PR: > http://www.freebsd.org/cgi/query-pr.cgi?pr=165886 Can you post output of `jls -v` and/or `jls -qn`? Miroslav Lachman