From owner-freebsd-jail@FreeBSD.ORG Tue Jun 1 16:57:36 2010 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 17747106566C for ; Tue, 1 Jun 2010 16:57:36 +0000 (UTC) (envelope-from tjg@soe.ucsc.edu) Received: from mail-01.cse.ucsc.edu (mail-01.cse.ucsc.edu [128.114.48.32]) by mx1.freebsd.org (Postfix) with ESMTP id 050B58FC14 for ; Tue, 1 Jun 2010 16:57:35 +0000 (UTC) Received: from mail-01.cse.ucsc.edu (mail-01.cse.ucsc.edu [128.114.48.32]) by mail-01.cse.ucsc.edu (Postfix) with ESMTP id A22C5100806F; Tue, 1 Jun 2010 09:57:35 -0700 (PDT) Date: Tue, 1 Jun 2010 09:57:35 -0700 (PDT) From: Tim Gustafson To: Glen Barber Message-ID: <1644468623.360941275411455562.JavaMail.root@mail-01.cse.ucsc.edu> In-Reply-To: <1312506627.360511275411042743.JavaMail.root@mail-01.cse.ucsc.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [128.114.49.22] X-Mailer: Zimbra 5.0.20_GA_3127.RHEL5_64 (ZimbraWebClient - FF3.0 ([unknown])/5.0.20_GA_3127.RHEL5_64) Cc: freebsd-jail@freebsd.org Subject: Re: Mounting NFS From Within a 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: Tue, 01 Jun 2010 16:57:36 -0000 > You cannot mount NFS shares inside a jail because of > rpcbind. The best solution I've found is to mount the > NFS share on the jail host, and create a nullfs mount > of that mountpoint to the jail. Ok, that makes sense (I guess), but what's the deal with these options in rc.conf then: jail_fstab="/etc/fstab.jails" jail_mount_enable="yes" I've got those both set exactly as shown, but I can't find much documentation about them and they seem to be ineffective (except that when I put an invalid file name for jail_fstab, it complains about the file being invalid). /etc/fstab.jails contains: # Device Mountpoint FStype Options Dump Pass# nfshost:/usr/ports /usr/ports nfs rw,bg 0 0 nfshost:/usr/src /usr/src nfs rw,bg 0 0 nfshost:/usr/obj /usr/obj nfs rw,bg 0 0 I was thinking that the rc.conf options listed above would somehow mount the file systems from the host OS and then start the jail, but that appears to not be the case. Am I misunderstanding the intent of these rc.conf options? Tim Gustafson Baskin School of Engineering UC Santa Cruz tjg@soe.ucsc.edu 831-459-5354