From owner-freebsd-current@FreeBSD.ORG Tue Jan 8 20:47:10 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 73EF516A469 for ; Tue, 8 Jan 2008 20:47:10 +0000 (UTC) (envelope-from maciej@suszko.eu) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [91.121.27.225]) by mx1.freebsd.org (Postfix) with SMTP id BAEBF13C455 for ; Tue, 8 Jan 2008 20:47:09 +0000 (UTC) (envelope-from maciej@suszko.eu) Received: (qmail 16125 invoked by uid 503); 8 Jan 2008 20:47:32 -0000 Received: (QMFILT: 1.0); 08 Jan 2008 20:47:32 -0000 Received: from b6.ovh.net (HELO mail156.ha.ovh.net) (213.186.33.56) by 26.mail-out.ovh.net with SMTP; 8 Jan 2008 20:47:32 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 8 Jan 2008 20:47:06 -0000 Received: from gateway.wakacje.pl (HELO arsenic) (maciej@suszko.eu@193.110.229.253) by ns0.ovh.net with SMTP; 8 Jan 2008 20:47:03 -0000 Date: Tue, 8 Jan 2008 21:47:00 +0100 From: Maciej Suszko To: freebsd-current@freebsd.org Message-Id: <20080108214700.a7284ccd.maciej@suszko.eu> In-Reply-To: <70f41ba20801080824y60f162b9w636e30b23e8f57ba@mail.gmail.com> References: <70f41ba20801071743o437b86ebx7956ad73250becb1@mail.gmail.com> <56088.195.50.100.20.1199787921.squirrel@www.superhero.nl> <70f41ba20801080708u4b05b37cta9315a0e0df5116f@mail.gmail.com> <20080108153816.GC45359@atarininja.org> <70f41ba20801080824y60f162b9w636e30b23e8f57ba@mail.gmail.com> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.3; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Ovh-Remote: 193.110.229.253 (gateway.wakacje.pl) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|H 0.5/N Subject: Re: jail on ZFS - "Unable to mount devfs" 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: Tue, 08 Jan 2008 20:47:10 -0000 snowcrash+freebsd wrote: > hi wesley, > > > I have a jail running in a ZFS environment. > > > > wxs@ack ~ % jls > > JID IP Address Hostname Path > > 3 192.168.1.100 > > asterisk /u/jails/asterisk wxs@ack ~ % mount | > > grep "data" data on /u (zfs, NFS exported, local, noatime) > > wxs@ack ~ % mount | grep devfs > > devfs on /dev (devfs, local) > > devfs on /u/jails/asterisk/dev (devfs, local) > > wxs@ack ~ % > > here's what i have > > jls > JID IP Address Hostname Path > 1 10.0.0.200 jTEST.internal.net /j/jTEST > > mount > z on / (zfs, local) > devfs on /dev (devfs, local) > /dev/mirror/gm0s1a on /bootdir (ufs, local, soft-updates) > z/data on /data (zfs, local) > z/home on /home (zfs, local) > z/j on /j (zfs, local) > z/tmp on /tmp (zfs, local) > z/usr on /usr (zfs, local) > z/var on /var (zfs, local) > /j/jMROOT on /j/jTEST (nullfs, local, read-only) > /j/s/jTEST on /j/jTEST/s (nullfs, local) > devfs on /j/jTEST/dev (devfs, local) > > which, i think?, says the same. > > argh. confused. following too many threads with partial solutions ... > > can you share your setup-a-jail-on-a-zfs'd-host steps? Hi. I just took ordinary steps to have a working jail on ZFS: - make buildworld - make installworld DESTDIR=/path/to/jail - make distribution DESTDIR=/path/to/jail - copy/edit some config files (mainly under /path/to/jail/etc) - start jail - jexec 1 /bin/sh from /etc/rc.conf (besides enabling jail, list of jails etc.): jail_name_procfs_enable="YES" jail_name_devfs_enable="YES" That's all. -- regards, Maciej Suszko.