From owner-freebsd-current@FreeBSD.ORG Sun Jan 6 22:55:51 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 513B516A421 for ; Sun, 6 Jan 2008 22:55:51 +0000 (UTC) (envelope-from freebsd@superhero.nl) Received: from superman.superhero.nl (superhero.nl [82.95.198.17]) by mx1.freebsd.org (Postfix) with ESMTP id AB7D713C465 for ; Sun, 6 Jan 2008 22:55:50 +0000 (UTC) (envelope-from freebsd@superhero.nl) Received: (qmail 16634 invoked by uid 80); 6 Jan 2008 22:55:33 -0000 Received: from robin.ad.superhero.nl ([10.202.77.197]) (SquirrelMail authenticated user gelsemap) by webmail.superhero.nl with HTTP; Sun, 6 Jan 2008 23:55:33 +0100 (CET) Message-ID: <2172.10.202.77.197.1199660133.squirrel@webmail.superhero.nl> In-Reply-To: <47815B12.5090101@barafranca.com> References: <1625.10.202.77.197.1199657455.squirrel@webmail.superhero.nl> <47815B12.5090101@barafranca.com> Date: Sun, 6 Jan 2008 23:55:33 +0100 (CET) From: "Gelsema, P \(Patrick\) - FreeBSD" To: "Hugo Silva" User-Agent: SquirrelMail/1.4.8 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-current@freebsd.org, "Gelsema, P \(Patrick\) - FreeBSD" Subject: Re: ZFS on AMD64 - any recent crashes? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jan 2008 22:55:51 -0000 On Sun, January 6, 2008 23:49, Hugo Silva wrote: > >> The zfs pool is jailed and within the jail runs samba. >> >> The only "issue" I have is that whenever I reboot that I have to re-jail >> the zfs pool and remount it within the jail. Would love if this could be >> automatic. >> > > Would having the option to specify the JID one wants for a jail that's > launching solve this ? > After rebooting I have to do the following on the box. On the host: hulk# zfs jail 4 zfspublic/batman This allows the jail with id4 (called batman) to talk to the zfs pool. On the jail: batman# zfs mount -a Only after that the zfs pool/storage is available from within the jail. I did have a quick look to see if I could add something to the rc.zfs file but it's a bit tricky, depending on when the zfs is started/loaded and when the jails are initialised. You can only jail zfs when the jail in which you want to use zfs is already running. Please correct me if I am wrong. Fortunately I do not reboot that often ;-) Patrick > Regards, > > Hugo >