From owner-freebsd-questions@FreeBSD.ORG Wed Apr 11 07:30:36 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2A74116A401 for ; Wed, 11 Apr 2007 07:30:36 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from mail.ipt.ru (mail.ipt.ru [80.253.10.82]) by mx1.freebsd.org (Postfix) with ESMTP id D024213C44B for ; Wed, 11 Apr 2007 07:30:35 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from admin.sem.ipt.ru ([192.168.12.1] helo=ipt.ru) by mail.ipt.ru with esmtp (Exim 4.62 (FreeBSD)) (envelope-from ) id 1HbXHm-000O5A-8s; Wed, 11 Apr 2007 11:30:34 +0400 Received: from bsam by ipt.ru with local (Exim 4.63 (FreeBSD)) (envelope-from ) id 1HbXHp-000JeT-OG; Wed, 11 Apr 2007 11:30:37 +0400 To: Giorgos Keramidas References: <20070406183630.GA56672@parts-unknown.org> <20070406190849.GA1465@kobe.laptop> <20070406222614.GA63630@parts-unknown.org> <20070406225640.GA1562@kobe.laptop> <20070407035704.GB9295@parts-unknown.org> <20070410122426.GA6122@kobe.laptop> <20070410155544.GA4157@parts-unknown.org> <20070410173431.GA8903@kobe.laptop> <24040909@srv.sem.ipt.ru> <20070411061132.GC45292@parts-unknown.org> From: Boris Samorodov Date: Wed, 11 Apr 2007 11:30:37 +0400 In-Reply-To: <20070411061132.GC45292@parts-unknown.org> (David Benfell's message of "Tue, 10 Apr 2007 23:11:32 -0700") Message-ID: <20516162@srv.sem.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: What am I not understanding about /etc/exports? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Apr 2007 07:30:36 -0000 On Tue, 10 Apr 2007 23:11:32 -0700 David Benfell wrote: > On Tue, 10 Apr 2007 21:50:26 +0400, Boris Samorodov wrote: > > On Tue, 10 Apr 2007 20:34:31 +0300 Giorgos Keramidas wrote: > > > On 2007-04-10 08:55, David Benfell wrote: > > > > Apr 10 08:28:59 earth mountd[739]: can't change attributes for /usr > > > > Apr 10 08:28:59 earth mountd[739]: bad exports list line /usr -alldirs -maproot > > > > Apr 10 08:28:59 earth mountd[739]: network/host conflict > > > > > > > > I've been here before; the FAQ says, "The most frequent problem > > > > is not understanding the correct format of /etc/exports. Please > > > > review exports(5) and the NFS entry in the Handbook, especially > > > > the section on configuring NFS." > > > > > > > > Which leads me back to the original question. Here's the file: > > > > > > > > / -alldirs -maproot=root 127.0.0.1 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] > > > > #/usr/src -alldirs -maproot=root 127.0.0.1 192.168.19.1 > > > > /usr -alldirs -maproot=root 127.0.0.1 192.168.19.1 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] > > > > /public -alldirs -maproot=root 127.0.0.1 192.168.18.45 192.168.18.46 192.168.19.1 > > > > /home -alldirs -maproot=root 127.0.0.1 192.168.18.45 192.168.18.46 192.168.19.1 > > > > /cdrom -alldirs,quiet,ro 127.0.0.1 -network 192.168 -mask 255.255.0.0 > > > > > > > > And: > > > > > > > > lupin% showmount -e earth.cybernude.org > > > > Exports list on earth.cybernude.org: > > > > /public 127.0.0.1 192.168.18.45 192.168.18.46 192.168.19.1 > > > > /home 127.0.0.1 192.168.18.45 192.168.18.46 192.168.19.1 > > > > / 127.0.0.1 > > > > lupin% > > > > > > > > As you can see, there are serious discrepancies, here. And I cannot > > > > see where my syntax is correct on the lines in /etc/exports that work > > > > and incorrect on the lines which don't work. > > > > > Hmmm, something odd is going on. Can you show us the output of the > > > command: > > > > > % cat -vte /etc/exports > > > > And: > > > > % df > > > > as well. > > > On the server: > earth% df > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/ad0s1a 62963306 16456346 41469896 28% / So, / and /usr are parts of one slice. That's the problem [1]. One can have only one line per slice at /etc/exports. > devfs 1 1 0 100% /dev > /dev/ad0s1d 62963306 208880 57717362 0% /var/db > /dev/ad2s1d 76168552 48096588 21978480 69% /home > /dev/ad3s1d 8122126 4 7472352 0% /rvm/data > /dev/ad3s1e 1012974 4 931934 0% /rvm/log > /dev/ad3s1f 26657356 4 24524764 0% /vicepa > /dev/ad2s1e 75200072 2518722 66665346 4% /public > /dev/ad0s1e 63274730 6595650 51617102 11% /reserve > linprocfs 4 4 0 100% /usr/compat/linux/proc > (sfs) 0 0 0 100% /sfs > (sfswait) 0 0 0 100% . > /dev/cd0 143168 143168 0 100% /cdrom > On the client: > lupin% df > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/ad0s1a 507630 398116 68904 85% / > devfs 1 1 0 100% /dev > /dev/ad0s1e 507630 284 466736 0% /tmp > /dev/ad0s1f 31283108 7822324 20958136 27% /usr > /dev/ad0s1d 2525166 74342 2248812 3% /var > 192.168.19.243:/home 76168552 48096604 21978464 69% /home > linprocfs 4 4 0 100% /usr/compat/linux/proc > I considered the possibility that /usr/compat/linux/proc might > be a problem *on the client*, but umounting it there made no difference. > I'm assuming it can't make any difference on the server side, and I had > previously tried a more specific directory--/usr/ports--with the same > result. > What I would realoly like to do is share /usr/src--if that won't screw up > a buildworld--and /usr/ports/distfiles; I'm assuming sharing more could > create problems. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve