From owner-freebsd-jail@FreeBSD.ORG Sun Jun 12 02:20:15 2011 Return-Path: Delivered-To: jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63539106566C for ; Sun, 12 Jun 2011 02:20:15 +0000 (UTC) (envelope-from fbsdq@peterk.org) Received: from poshta.pknet.net (poshta.pknet.net [216.241.167.213]) by mx1.freebsd.org (Postfix) with ESMTP id B95408FC0C for ; Sun, 12 Jun 2011 02:20:13 +0000 (UTC) Received: (qmail 68499 invoked by uid 89); 12 Jun 2011 01:53:31 -0000 Received: from localhost (HELO pop.pknet.net) (127.0.0.1) by poshta.pknet.net with ESMTP; 12 Jun 2011 01:53:31 -0000 Received: from 216.241.167.208 (SquirrelMail authenticated user fbsdq@peterk.org) by pop.pknet.net with HTTP; Sat, 11 Jun 2011 19:53:31 -0600 Message-ID: <070641d568c7e4f5e00b735953bbda26.squirrel@pop.pknet.net> In-Reply-To: References: <4DF21A9F.3030509@gmail.com> Date: Sat, 11 Jun 2011 19:53:31 -0600 From: "Peter" To: "Redd Vinylene" User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: jail@freebsd.org Subject: Re: Old jail dir reappears after reboot - why? 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: Sun, 12 Jun 2011 02:20:15 -0000 > Any idea Glen? > > On Fri, Jun 10, 2011 at 3:47 PM, Redd Vinylene > wrote: > >> Hey! Sure thing mate - here we go !! >> >> # cat /etc/rc.conf >> >> hostname="mybox.mydomain.com" >> ifconfig_em0="inet inet [FILTERED]/29" >> ifconfig_em0_alias0="inet inet [FILTERED]/32" >> ifconfig_em0_alias1="inet inet [FILTERED]/32" >> defaultrouter="inet [FILTERED]" >> devfs_system_ruleset="localrules" >> zfs_enable="YES" >> pf_enable="YES" >> pflog_enable="YES" >> sshd_enable="YES" >> ntpdate_enable="YES" >> ntpdate_flags="pool.ntp.org" >> postfix_enable="YES" >> sendmail_enable="NO" >> sendmail_submit_enable="NO" >> sendmail_outbound_enable="NO" >> sendmail_msp_queue_enable="NO" >> jail_enable="YES" >> jail_list="statepen1 statepen2" >> jail_statepen1_rootdir="/jails/statepen1" >> jail_statepen1_hostname="statepen1.mydomain.com" >> jail_statepen1_ip="[FILTERED]" >> jail_statepen1_devfs_enable="YES" >> jail_statepen1_devfs_ruleset="devfsrules_jail" >> jail_statepen2_rootdir="/jails/statepen2" >> jail_statepen2_hostname="statepen2.mydomain.com" >> jail_statepen2_ip="[FILTERED]" >> jail_statepen2_devfs_enable="YES" >> jail_statepen2_devfs_ruleset="devfsrules_jail" >> clear_tmp_enable="YES" >> update_motd="NO" >> >> # cat /etc/fstab >> # Device Mountpoint FStype Options Dump >> Pass# >> /dev/ad8s1b none swap sw 0 >> 0 >> /dev/ad8s1a / ufs rw 1 >> 1 >> #/dev/ad8s1g /home ufs rw 2 >> 2 >> /dev/ad8s1d /tmp ufs rw 2 >> 2 >> /dev/ad8s1f /usr ufs rw 2 >> 2 >> /dev/ad8s1e /var ufs rw 2 >> 2 >> #/dev/cd0 /cdrom cd9660 ro,noauto 0 >> 0 >> #/dev/acd0 /cdrom1 cd9660 ro,noauto 0 >> 0 >> >> >> >> On Fri, Jun 10, 2011 at 3:22 PM, Glen Barber >> wrote: >> >>> On 6/10/11 7:36 AM, Redd Vinylene wrote: >>> > Hi, >>> > >>> > After rebooting my host server, some old dir I once had my jails in >>> > reappears. What might be the cause of that and how do I stop it? >>> > >>> > More specifically, I once had my jails in /jail, but now I've moved >>> them >>> all >>> > into /jails. rc.conf or fstab does not reference /jail and I can't >>> find >>> any >>> > file on my system that does - so why does this dir keep reappearing >>> all >>> the >>> > time? >>> > >>> >>> Can you provide rc.conf, rc.conf.local (if it exists), and fstab* ? >>> >>> > I have to umount it before I can delete it though. >>> > >>> >>> Yes. That's a good thing. :) >>> >>> Regards, >>> >>> -- >>> Glen Barber >>> >> Is '/jails' located under '/' ? I don't think that is where you are installing your jails and I don't see what mounts '/jails'. Perhaps a startup script in /usr/local/etc/rc.d? ]Peter[ [I use ezjail, so not a pro in rc.conf ways] From owner-freebsd-jail@FreeBSD.ORG Sun Jun 12 10:21:20 2011 Return-Path: Delivered-To: jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECD8D106564A for ; Sun, 12 Jun 2011 10:21:20 +0000 (UTC) (envelope-from reddvinylene@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id A46BB8FC1D for ; Sun, 12 Jun 2011 10:21:20 +0000 (UTC) Received: by qyk27 with SMTP id 27so2641412qyk.13 for ; Sun, 12 Jun 2011 03:21:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=iSt4IvjKusKuwsOMSaFjHFEzfF8TKV9edZAP4h/iZUg=; b=QuGQsi2hantKtMCQetdp7GJIgTJyHJZ1hupb7k4jwU/QlGM8XEDz9PdJ8z/et6Yzfk f5h0VU0lkMu5+HcH3+X8PrOJD0k9rRa1x5TelGDbKTiJ8K7+hMym1P1IBAJ/MfcoyaEw 3997MN64gP5qwyXYOnlNlMYED2Bp/oso1SbvA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=bSF/D3EDU+Ml3TadWnPwYCNwhytNyW9ePzibLd4LG0GLU5pzYD2H/uqmkNIKmhkHQF +GsiUm7ULmK+k15qqvyg7K+AHWN8vHdBx3iigIL1hkcsblhJTcJ5cPVozhn6OIXC1YeA 1+Kbm+v+M8v+80TGOxfMnwQIQGGQ03jQ0KNcg= MIME-Version: 1.0 Received: by 10.229.130.3 with SMTP id q3mr2972924qcs.44.1307874079755; Sun, 12 Jun 2011 03:21:19 -0700 (PDT) Received: by 10.229.220.198 with HTTP; Sun, 12 Jun 2011 03:21:19 -0700 (PDT) In-Reply-To: <070641d568c7e4f5e00b735953bbda26.squirrel@pop.pknet.net> References: <4DF21A9F.3030509@gmail.com> <070641d568c7e4f5e00b735953bbda26.squirrel@pop.pknet.net> Date: Sun, 12 Jun 2011 12:21:19 +0200 Message-ID: From: Redd Vinylene To: Peter Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: jail@freebsd.org Subject: Re: Old jail dir reappears after reboot - why? 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: Sun, 12 Jun 2011 10:21:21 -0000 On Sun, Jun 12, 2011 at 3:53 AM, Peter wrote: > > Is '/jails' located under '/' ? I don't think that is where you are > installing your jails and I don't see what mounts '/jails'. Perhaps a > startup script in /usr/local/etc/rc.d? > > Actually no, they're on a seperate harddrive mounted via /data1/jails - that shouldn't make a difference though. It's /data1/jail that keeps reappearing all the time. Thanks! From owner-freebsd-jail@FreeBSD.ORG Sun Jun 12 16:28:36 2011 Return-Path: Delivered-To: jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4D4E106564A for ; Sun, 12 Jun 2011 16:28:36 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id A3EF38FC14 for ; Sun, 12 Jun 2011 16:28:36 +0000 (UTC) Received: by iyj12 with SMTP id 12so4872461iyj.13 for ; Sun, 12 Jun 2011 09:28:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=gPH/xjwiLHlpNOfCv+gZoY58J52xD2mjnUNZDbMwY20=; b=IUXoeJNytfQjLXcC6SsGpSSz4tSK69Zw49jttUXC0UtGQR7MNFHhwHEfKrSa3ual3b AIIDX6RpTxNgKrEN/WQGs8v89mAI8L1bQxEFhppBhY96NIRzVPgdGStFxZ6Kg7OeioL5 9ZDM7gXCN8rmgL90H+OcHUSF3M64hlz0E8vgg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=ocUrAWVAYE/sE9JLbNxKz51R6b9LjoNdD/rOaBWNGCowSeOLRO5bkNsxQ0AD7HBnyR AdQnrWIT7S42K3AhzV9QBx3lMe8CiaiBZCEXEQ/zyufVrF52NRCAR+lWhxt4fF74Jbu2 /Kv1tb2Zq2vlN7AIEmp8NxHagj1TAVKGcYeBs= Received: by 10.42.140.66 with SMTP id j2mr4406616icu.215.1307896115913; Sun, 12 Jun 2011 09:28:35 -0700 (PDT) Received: from schism.local (c-76-124-49-145.hsd1.pa.comcast.net [76.124.49.145]) by mx.google.com with ESMTPS id vn4sm4038037icb.7.2011.06.12.09.28.34 (version=SSLv3 cipher=OTHER); Sun, 12 Jun 2011 09:28:34 -0700 (PDT) Message-ID: <4DF4E931.3080500@gmail.com> Date: Sun, 12 Jun 2011 12:28:33 -0400 From: Glen Barber User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Redd Vinylene References: <4DF21A9F.3030509@gmail.com> <070641d568c7e4f5e00b735953bbda26.squirrel@pop.pknet.net> In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: jail@freebsd.org Subject: Re: Old jail dir reappears after reboot - why? 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: Sun, 12 Jun 2011 16:28:37 -0000 On 6/12/11 6:21 AM, Redd Vinylene wrote: > On Sun, Jun 12, 2011 at 3:53 AM, Peter wrote: > >> >> Is '/jails' located under '/' ? I don't think that is where you are >> installing your jails and I don't see what mounts '/jails'. Perhaps a >> startup script in /usr/local/etc/rc.d? >> >> > Actually no, they're on a seperate harddrive mounted via /data1/jails - that > shouldn't make a difference though. It's /data1/jail that keeps reappearing > all the time. > /data1/jails isn't in either of the configs you've provided. How does /data1/jails get mounted to /jails ? -- Glen Barber From owner-freebsd-jail@FreeBSD.ORG Sun Jun 12 19:52:39 2011 Return-Path: Delivered-To: jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 647E0106564A for ; Sun, 12 Jun 2011 19:52:39 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 227328FC0C for ; Sun, 12 Jun 2011 19:52:38 +0000 (UTC) Received: by iwn33 with SMTP id 33so4943860iwn.13 for ; Sun, 12 Jun 2011 12:52:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=ny4af3R/k6WjKuLAD9JOUTWeZvH4m5j/A1PgWFFl4+c=; b=kJV0dLHRd0x/+wbN8LFwZdQE5vXWCl//HMxxli50sa+izBMU0K9Fh9Fv7uIJ9KYdu9 7wL7W3feVG3whb5YABxROznU2wBuBIQdvrVxIqSE0leUQT4q3r3kHqukUHtOz5Q5ayTs 12nAs8C0kj8MTVR/SwykdzPnzmeQgMJv/Mvbw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=HNDZ2T/RE+yNznn5wY/fVUjSmZEpu9OdPyY+XjLyCaQ8fyn96VODsjuPt8VTuoDqXo H0SvtVw6PZlH8iYGClaWi4E/frzjtu3v9Bb78IfUYPsJh0ymIhdxWWTjOpUMkkvchJi3 PZY/djgE/dSFa78Oi8c891SHngg4OluGUZxBM= Received: by 10.42.144.195 with SMTP id c3mr6065332icv.9.1307908358391; Sun, 12 Jun 2011 12:52:38 -0700 (PDT) Received: from schism.local (c-76-124-49-145.hsd1.pa.comcast.net [76.124.49.145]) by mx.google.com with ESMTPS id e1sm4151952icv.20.2011.06.12.12.52.36 (version=SSLv3 cipher=OTHER); Sun, 12 Jun 2011 12:52:37 -0700 (PDT) Message-ID: <4DF51903.9040402@gmail.com> Date: Sun, 12 Jun 2011 15:52:35 -0400 From: Glen Barber User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Redd Vinylene References: <4DF21A9F.3030509@gmail.com> <070641d568c7e4f5e00b735953bbda26.squirrel@pop.pknet.net> <4DF4E931.3080500@gmail.com> In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: jail@freebsd.org Subject: Re: Old jail dir reappears after reboot - why? 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: Sun, 12 Jun 2011 19:52:39 -0000 On 6/12/11 3:15 PM, Redd Vinylene wrote: > On Sun, Jun 12, 2011 at 6:28 PM, Glen Barber wrote: > >> /data1/jails isn't in either of the configs you've provided. How does >> /data1/jails get mounted to /jails ? >> >> > I know - I wrote /jails instead of /data1/jails for simplicity's sake. Now > can we return to the subject? > If you are "simplifying" your configurations for the list, you could be obfuscating the actual problem. -- Glen Barber From owner-freebsd-jail@FreeBSD.ORG Mon Jun 13 10:05:50 2011 Return-Path: Delivered-To: freebsd-jail@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 385F51065670; Mon, 13 Jun 2011 10:05:50 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 110198FC0C; Mon, 13 Jun 2011 10:05:50 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p5DA5nre034316; Mon, 13 Jun 2011 10:05:49 GMT (envelope-from bz@freefall.freebsd.org) Received: (from bz@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p5DA5n1s034312; Mon, 13 Jun 2011 10:05:49 GMT (envelope-from bz) Date: Mon, 13 Jun 2011 10:05:49 GMT Message-Id: <201106131005.p5DA5n1s034312@freefall.freebsd.org> To: bz@FreeBSD.org, freebsd-jail@FreeBSD.org, bz@FreeBSD.org From: bz@FreeBSD.org Cc: Subject: Re: kern/156584: [jail] ipv4 packet is not forward to v4-mapped binding in jail 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: Mon, 13 Jun 2011 10:05:50 -0000 Synopsis: [jail] ipv4 packet is not forward to v4-mapped binding in jail Responsible-Changed-From-To: freebsd-jail->bz Responsible-Changed-By: bz Responsible-Changed-When: Mon Jun 13 10:05:33 UTC 2011 Responsible-Changed-Why: Track it for now to find the real cause. http://www.freebsd.org/cgi/query-pr.cgi?pr=156584 From owner-freebsd-jail@FreeBSD.ORG Mon Jun 13 11:07:06 2011 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 96E161065676 for ; Mon, 13 Jun 2011 11:07:06 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 852938FC13 for ; Mon, 13 Jun 2011 11:07:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p5DB76Xs092110 for ; Mon, 13 Jun 2011 11:07:06 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p5DB759E092108 for freebsd-jail@FreeBSD.org; Mon, 13 Jun 2011 11:07:05 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 13 Jun 2011 11:07:05 GMT Message-Id: <201106131107.p5DB759E092108@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-jail@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-jail@FreeBSD.org 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: Mon, 13 Jun 2011 11:07:06 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/156111 jail [jail] procstat -b not supported in jail o misc/155765 jail [patch] `buildworld' does not honors WITHOUT_JAIL o conf/154246 jail [jail] [patch] Bad symlink created if devfs mount poin o conf/149050 jail [jail] rcorder ``nojail'' too coarse for Jail+VNET s conf/142972 jail [jail] [patch] Support JAILv2 and vnet in rc.d/jail o conf/141317 jail [patch] uncorrect jail stop in /etc/rc.d/jail o kern/133265 jail [jail] is there a solution how to run nfs client in ja o kern/119842 jail [smbfs] [jail] "Bad address" with smbfs inside a jail o bin/99566 jail [jail] [patch] fstat(1) according to specified jid o bin/32828 jail [jail] w(1) incorrectly handles stale utmp slots with 10 problems total. From owner-freebsd-jail@FreeBSD.ORG Mon Jun 13 14:30:11 2011 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 C722B106566C for ; Mon, 13 Jun 2011 14:30:11 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: from syn.atarininja.org (syn.csh.rit.edu [129.21.49.45]) by mx1.freebsd.org (Postfix) with ESMTP id A64AA8FC0A for ; Mon, 13 Jun 2011 14:30:11 +0000 (UTC) Received: by syn.atarininja.org (Postfix, from userid 1001) id 268FD5C43; Mon, 13 Jun 2011 10:14:01 -0400 (EDT) Date: Mon, 13 Jun 2011 10:14:01 -0400 From: Wesley Shields To: freebsd-jail@FreeBSD.org Message-ID: <20110613141401.GA6688@atarininja.org> References: <201106131107.p5DB759E092108@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201106131107.p5DB759E092108@freefall.freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Subject: Re: Current problem reports assigned to freebsd-jail@FreeBSD.org 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: Mon, 13 Jun 2011 14:30:11 -0000 On Mon, Jun 13, 2011 at 11:07:05AM +0000, FreeBSD bugmaster wrote: > Note: to view an individual PR, use: > http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). > > The following is a listing of current problems submitted by FreeBSD users. > These represent problem reports covering all versions including > experimental development code and obsolete releases. > > > S Tracker Resp. Description > -------------------------------------------------------------------------------- > o kern/156111 jail [jail] procstat -b not supported in jail I can't reproduce this one. From the host I can use 'procstat -b' on a pid that is in a jail. From within a jail I can use 'procstat -b' on the same pid. From within one jail I can't do anything to a pid in another jail. I'm not sure what the submitter was doing and the PR is a bit lacking of information. -- WXS From owner-freebsd-jail@FreeBSD.ORG Fri Jun 17 18:58:01 2011 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 2A755106566B for ; Fri, 17 Jun 2011 18:58:01 +0000 (UTC) (envelope-from lars@seas.harvard.edu) Received: from Edge01.seas.harvard.edu (edge01.seas.harvard.edu [140.247.173.250]) by mx1.freebsd.org (Postfix) with ESMTP id CBB328FC0A for ; Fri, 17 Jun 2011 18:58:00 +0000 (UTC) Received: from HUB01.seas.harvard.edu (10.243.39.42) by Edge01.seas.harvard.edu (10.243.37.121) with Microsoft SMTP Server (TLS) id 14.1.255.0; Fri, 17 Jun 2011 14:46:52 -0400 Received: from mail-vx0-f182.google.com (10.243.39.38) by HUB01.seas.harvard.edu (10.243.39.42) with Microsoft SMTP Server (TLS) id 14.1.270.1; Fri, 17 Jun 2011 14:47:00 -0400 Received: by vxc34 with SMTP id 34so3086513vxc.13 for ; Fri, 17 Jun 2011 11:47:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.24.66 with SMTP id s2mr1117392vdf.196.1308336420006; Fri, 17 Jun 2011 11:47:00 -0700 (PDT) Received: by 10.52.185.40 with HTTP; Fri, 17 Jun 2011 11:46:59 -0700 (PDT) Date: Fri, 17 Jun 2011 14:46:59 -0400 Message-ID: From: Lars Kellogg-Stedman To: Content-Type: text/plain; charset="ISO-8859-1" X-Originating-IP: [10.243.39.38] Subject: Exposing a hierarchy of ZFS datasets inside multiple jails 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, 17 Jun 2011 18:58:01 -0000 Hello all, Hi there, I am trying to expose a hierarchy of home directories to a number of FreeBSD jails. The home directories are configured such that each is a unique ZFS dataset. The jails are used for development work and hence are created and destroyed on a regular basis. My first thought was simply to use nullfs to mount /home inside the jail, but nullfs doesn't provide any way to access subordinate filesystems. My second thought was to export the directories via NFS and then run the automounter daemon (amd) inside each jail. This would have Just Worked...if it were possible to perform NFS mounts inside a jail. But it's not. My third thought was to run amd on the host and provision nullfs mounts into the jails...but amd support for nullfs doesn't exist. My fourth thought was to go back to exporting the directories using NFS, because of course amd works with NFS, right? Unfortunately, rather than mounting a directory on the target mountpoint, amd likes to mount things in a temporary location (/.amd_mnt/...) and then create a symlink...which, of course, is useless inside the jail environment.t So maybe you could use nullfs to expose a subdirectory of /.amd_mnt to the jail? No! This brings us back to my first attempt, in which we find that there is no way to access subordinate filesystems using nullfs. And then my head exploded. Is there a good solution for what I'm trying to do? A bad solution would be to run a script after booting the jail that would create multiple nullfs mountpoints for all the home directories, but this is pretty clunky -- it would need to be run periodically to take into account new directories or removed directories. So basically I would have to write a poorly designed automounter. There must be a better way. How are other folks solving this? It looks like there are discussions going back several years about setting the VFCF_JAIL on NFS filesystems, but it these haven't resulted in any changes to the released code. Is this the best way to go? In theory, if I build a kernel under which NFS is jail friendly I can go ahead and run amd inside the jail -- Lars Kellogg-Stedman From owner-freebsd-jail@FreeBSD.ORG Fri Jun 17 21:15:12 2011 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 64E421065754 for ; Fri, 17 Jun 2011 21:15:12 +0000 (UTC) (envelope-from bubulein@freenas.org) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id F1E3A8FC14 for ; Fri, 17 Jun 2011 21:15:11 +0000 (UTC) Received: by fxm11 with SMTP id 11so700362fxm.13 for ; Fri, 17 Jun 2011 14:15:10 -0700 (PDT) Received: by 10.223.33.6 with SMTP id f6mr380969fad.85.1308343578390; Fri, 17 Jun 2011 13:46:18 -0700 (PDT) Received: from schlumpi.teufelchen.tld (p5DD05D21.dip.t-dialin.net [93.208.93.33]) by mx.google.com with ESMTPS id a18sm1512094fak.5.2011.06.17.13.46.16 (version=SSLv3 cipher=OTHER); Fri, 17 Jun 2011 13:46:17 -0700 (PDT) Message-ID: <4DFBBD17.6000604@freenas.org> Date: Fri, 17 Jun 2011 20:46:15 +0000 From: Christian Degen User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.17) Gecko/20110429 Thunderbird/3.1.10 MIME-Version: 1.0 To: freebsd-jail@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Exposing a hierarchy of ZFS datasets inside multiple jails 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, 17 Jun 2011 21:15:12 -0000 Moin, On 06/17/2011 18:46, Lars Kellogg-Stedman wrote: > My first thought was simply to use nullfs to mount /home inside the > jail, but nullfs doesn't provide any way to access subordinate > filesystems. Why dont you create a NFS-loopback? You can create a fstab for each jail and use this to mount the nfs-shares. from rc.conf jail_alcatraz_fstab="/mnt/tank/freebsd/fstab.alcatraz" fstab.alcatraz 127.0.0.1:/foo/bar /var/jails/alcatraz/mnt/bar nfs rw 0 0 yours, bubulein From owner-freebsd-jail@FreeBSD.ORG Sat Jun 18 03:54:27 2011 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 E3D7D1065670 for ; Sat, 18 Jun 2011 03:54:27 +0000 (UTC) (envelope-from lars@seas.harvard.edu) Received: from Edge00.seas.harvard.edu (edge00.seas.harvard.edu [140.247.173.249]) by mx1.freebsd.org (Postfix) with ESMTP id 9C3338FC0A for ; Sat, 18 Jun 2011 03:54:26 +0000 (UTC) Received: from HUB01.seas.harvard.edu (10.243.39.42) by Edge00.seas.harvard.edu (10.243.37.120) with Microsoft SMTP Server (TLS) id 14.1.255.0; Fri, 17 Jun 2011 23:54:22 -0400 Received: from mail-vw0-f54.google.com (10.243.39.38) by HUB01.seas.harvard.edu (10.243.39.42) with Microsoft SMTP Server (TLS) id 14.1.270.1; Fri, 17 Jun 2011 23:54:25 -0400 Received: by vws18 with SMTP id 18so3365565vws.13 for ; Fri, 17 Jun 2011 20:54:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.106.232 with SMTP id gx8mr3904610vdb.236.1308369264343; Fri, 17 Jun 2011 20:54:24 -0700 (PDT) Received: by 10.52.185.40 with HTTP; Fri, 17 Jun 2011 20:54:24 -0700 (PDT) In-Reply-To: <4DFBBD17.6000604@freenas.org> References: <4DFBBD17.6000604@freenas.org> Date: Fri, 17 Jun 2011 23:54:24 -0400 Message-ID: From: Lars Kellogg-Stedman To: Christian Degen Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.243.39.38] Cc: freebsd-jail@freebsd.org Subject: Re: Exposing a hierarchy of ZFS datasets inside multiple jails 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: Sat, 18 Jun 2011 03:54:28 -0000 > Why dont you create a NFS-loopback? You can create a fstab for each jail = and > use this to mount the nfs-shares. > from rc.conf > jail_alcatraz_fstab=3D"/mnt/tank/freebsd/fstab.alcatraz" > > fstab.alcatraz > 127.0.0.1:/foo/bar =A0 =A0/var/jails/alcatraz/mnt/bar =A0 =A0nfs =A0 =A0r= w =A0 =A00 =A0 =A00 The problem with this solution -- if I understand you correctly -- is that it doesn't deal well with a population of home directories that may change while the jail is running. This is what I described as "writing a poorly designed automounter". I could... - Iterate over /home - Generate an appropriate /etc/fstab. entry for each directory - Start the jail ...but the only way to pick up changes would be to reboot the jail. This is certainly a functional fallback position, but I'd love a more graceful solution. --=20 Lars Kellogg-Stedman Senior Technologist Harvard University SEAS Academic and Research Computing (ARC) From owner-freebsd-jail@FreeBSD.ORG Sat Jun 18 10:10:10 2011 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 0243D106566C for ; Sat, 18 Jun 2011 10:10:09 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id AB9368FC15 for ; Sat, 18 Jun 2011 10:10:09 +0000 (UTC) Received: from outgoing.leidinger.net (p4FC46FD5.dip.t-dialin.net [79.196.111.213]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 31FC384400D; Sat, 18 Jun 2011 12:09:56 +0200 (CEST) Received: from unknown (IO.Leidinger.net [192.168.2.110]) by outgoing.leidinger.net (Postfix) with ESMTP id 6A61026FB; Sat, 18 Jun 2011 12:09:53 +0200 (CEST) Date: Sat, 18 Jun 2011 12:09:54 +0200 From: Alexander Leidinger To: Lars Kellogg-Stedman Message-ID: <20110618120954.0000255c@unknown> In-Reply-To: References: X-Mailer: Claws Mail 3.7.8cvs47 (GTK+ 2.16.6; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 31FC384400D.A12DB X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1, required 6, autolearn=disabled, ALL_TRUSTED -1.00) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1308996597.0629@+K85871lSRYi8lwULnJkwg X-EBL-Spam-Status: No Cc: freebsd-jail@freebsd.org Subject: Re: Exposing a hierarchy of ZFS datasets inside multiple jails 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: Sat, 18 Jun 2011 10:10:10 -0000 On Fri, 17 Jun 2011 14:46:59 -0400 Lars Kellogg-Stedman wrote: > Hello all, > > Hi there, > > I am trying to expose a hierarchy of home directories to a number of > FreeBSD jails. The home directories are configured such that each is a > unique ZFS dataset. The jails are used for development work and hence > are created and destroyed on a regular basis. > > My first thought was simply to use nullfs to mount /home inside the > jail, but nullfs doesn't provide any way to access subordinate > filesystems. > > My second thought was to export the directories via NFS and then run > the automounter daemon (amd) inside each jail. This would have Just > Worked...if it were possible to perform NFS mounts inside a jail. But > it's not. See the second part of the patch at http://www.leidinger.net/FreeBSD/current-patches/sys:nfsclient.diff for how to allow NFS mounts in a jail. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-jail@FreeBSD.ORG Sat Jun 18 10:16:48 2011 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 B05471065676 for ; Sat, 18 Jun 2011 10:16:48 +0000 (UTC) (envelope-from bubulein@freenas.org) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 45D0F8FC13 for ; Sat, 18 Jun 2011 10:16:48 +0000 (UTC) Received: by fxm11 with SMTP id 11so965576fxm.13 for ; Sat, 18 Jun 2011 03:16:47 -0700 (PDT) Received: by 10.223.76.212 with SMTP id d20mr3639853fak.5.1308392207268; Sat, 18 Jun 2011 03:16:47 -0700 (PDT) Received: from schlumpi.teufelchen.tld (pD9FD105A.dip.t-dialin.net [217.253.16.90]) by mx.google.com with ESMTPS id h1sm1744252fag.35.2011.06.18.03.16.45 (version=SSLv3 cipher=OTHER); Sat, 18 Jun 2011 03:16:46 -0700 (PDT) Message-ID: <4DFC7B0C.6040205@freenas.org> Date: Sat, 18 Jun 2011 10:16:44 +0000 From: Christian Degen User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.17) Gecko/20110429 Thunderbird/3.1.10 MIME-Version: 1.0 To: freebsd-jail@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Exposing a hierarchy of ZFS datasets inside multiple jails 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: Sat, 18 Jun 2011 10:16:48 -0000 Moin, I assume the easiest solution would be to make the many mountpoints (datasets) invisiable for NFS. Here we go. teufelchen# /etc/rc.d/jail stop alcatraz ## This will be the dataset which contains home's for example teufelchen# zfs create tank/nullfs ## Now I create a dir which will be shared to the jails ## My idea is to make the mountpoints invisiable for NFS teufelchen# mkdir /mnt/tank/nfs_home teufelchen# mount_nullfs /mnt/tank/nullfs/ /mnt/tank/nfs_home/ teufelchen# mkdir /mnt/tank/alcatraz/mnt/nfs_home teufelchen# cat /mnt/tank/freebsd/fstab.alcatraz 192.168.1.10:/mnt/tank/nfs_home /mnt/tank/alcatraz/mnt/nfs_home nfs rw 0 0 teufelchen# /etc/rc.d/jail start alcatraz ### IIRC ### You like to create datasets on the host, which apear in the jails just in ### time? teufelchen# zfs create tank/nullfs/dataset1 teufelchen# touch /mnt/tank/nfs_home/dataset1/newfile teufelchen# jexec 14 ls /mnt/nfs_home/dataset1/ newfile Is this what you are trying todo? Christian Degen