From owner-freebsd-stable@FreeBSD.ORG Tue Dec 4 10:22:45 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03D7D16A41A for ; Tue, 4 Dec 2007 10:22:45 +0000 (UTC) (envelope-from andrew@rinet.ru) Received: from mail.tsscom.ru (mail.tsscom.ru [195.10.205.29]) by mx1.freebsd.org (Postfix) with ESMTP id 7249B13C442 for ; Tue, 4 Dec 2007 10:22:43 +0000 (UTC) (envelope-from andrew@rinet.ru) Received: from [195.10.205.145] (HELO [10.10.80.29]) by mail.tsscom.ru (CommuniGate Pro SMTP 5.1.8) with ESMTP id 41837 for freebsd-stable@freebsd.org; Tue, 04 Dec 2007 13:22:41 +0300 From: Andrew Kolchoogin To: freebsd-stable@freebsd.org In-Reply-To: <4167.10.202.77.103.1196693730.squirrel@webmail.superhero.nl> References: <3090.10.202.77.103.1196628578.squirrel@webmail.superhero.nl> <20071203115442.GE74491@e-Gitt.NET> <3967.10.202.77.103.1196686418.squirrel@webmail.superhero.nl> <1196686963.6408.84.camel@localhost> <4028.10.202.77.103.1196687408.squirrel@webmail.superhero.nl> <1196688004.6408.90.camel@localhost> <4167.10.202.77.103.1196693730.squirrel@webmail.superhero.nl> Content-Type: text/plain Organization: Cronyx Plus LLC Date: Tue, 04 Dec 2007 13:22:36 +0300 Message-Id: <1196763756.6729.59.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1.1 Content-Transfer-Encoding: 7bit Subject: Re: ZFS in a jail X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Dec 2007 10:22:45 -0000 > > Yes, I've told you what you should to do. First part you have been > > done already -- you've edited /etc/devfs.rules and added new > > configuration subsection with instructions to unhide /etc/zfs. > > Please do the second part: instruct the /etc/rc.d/jail to apply > > these rules to DEVFS instance mounted into your jail. Just change > > 'devfs_system_ruleset' to 'jail_batman_devfs_ruleset' and restart your > > jail -- /etc/rc.d/jail does NOT pay attention to system-wide DEVFS > > ruleset variables, it uses per-jail ones. > > If you have configured all the things correctly, you MUST > > see /path/to/root/of/your/jail/dev/zfs :) > this is working. Thanks. > > THe only problem is that after every reboot I have to rerun the following > commands to get things working again. > > hulk# zfs jail 4 zfspublic/batman > batman# zfs mount -a > > If I don't do the jail 4 command the command batman# zfs get all does not > return anything. > > Seems like the zfs jail 4 command is not remembered. > The zfs manpage does not tell of where to store these settings. > > Any pointers? As far as I can understand, it was done intentionally. No "jailed" setting is stored in ZFS structures, and personally for me it was easier to write script that jails ZFS file systems needed for particular jail during startup time. May be pjd@ can comment on this?-) -- Andrew.