From owner-freebsd-jail@FreeBSD.ORG Tue Sep 4 08:55:14 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 214B61065673; Tue, 4 Sep 2012 08:55:14 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:130:3ffc::401:25]) by mx1.freebsd.org (Postfix) with ESMTP id DE6CE8FC0A; Tue, 4 Sep 2012 08:55:08 +0000 (UTC) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 021CF25D39FD; Tue, 4 Sep 2012 08:55:07 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 1B08FBE84AE; Tue, 4 Sep 2012 08:55:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id MItct37Pzzv8; Tue, 4 Sep 2012 08:55:05 +0000 (UTC) Received: from nv.sbone.de (nv.sbone.de [IPv6:fde9:577b:c1a9:31::2013:138]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id CD576BE84AC; Tue, 4 Sep 2012 08:55:04 +0000 (UTC) Date: Tue, 4 Sep 2012 08:55:04 +0000 (UTC) From: "Bjoern A. Zeeb" To: freebsd-jail@freebsd.org, mm@freebsd.org, pjd@freebsd.org, jamie@freebsd.org Message-ID: X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Cc: Subject: Fixed Jail ID for ZFS -> need proper mgmt? 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: Tue, 04 Sep 2012 08:55:14 -0000 Hi, I had been talking to someone about jail management and it turns out people are using jail jid=42 to always have a fixed jail ID. The reason as I understood is that ZFS datasets are associated by jail id for delegation? [I admit having no clue about the ZFS side] If this is true I feel it's a very bad idea as it makes restarting jails a lot harder in case they remain DYING for say a not fully closed TCP session. My memories are: jid are still unique and cannot be re-used, even if in DYING, names can be re-used and thus are not neccessarily unique. Jamie, can you confirm this? Seems we need to sort out one to two problems: 1) can we make sure that the jail management framework can address a ZFS dataset for delegation somehow and automatically do that as part of the startup? 2) in the case of (1) it should be possible to address jails by name as ZFS would be handled automatically and we would not need another unique identifier I guess? Otherwise I'd prefer for people to be able to delegate ZFS datasets to jail names (as well), as long as they are uniquely identifyable (i.e. there are no 17 jails running with a name of "filesever"). Do we have documentation for the ZFS features in the man pages or elsewhere btw? If not we should add it. Does this make sense? /bz -- Bjoern A. Zeeb You have to have visions! Stop bit received. Insert coin for new address family.