Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Apr 2007 08:55:44 -0700
From:      David Benfell <benfell@parts-unknown.org>
To:        Giorgos Keramidas <keramida@ceid.upatras.gr>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: What am I not understanding about /etc/exports?
Message-ID:  <20070410155544.GA4157@parts-unknown.org>
In-Reply-To: <20070410122426.GA6122@kobe.laptop>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--UlVJffcvxoiEqYs2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, 10 Apr 2007 15:24:26 +0300, Giorgos Keramidas wrote:
> On 2007-04-06 20:57, David Benfell <benfell@parts-unknown.org> wrote:
> >On Sat, 07 Apr 2007 01:56:41 +0300, Giorgos Keramidas wrote:
> >> To allow NFS mounts to work correctly from hosts in the IP ranges
> >> 192.168.18.XXX, 192.168.19.XXX listed in your /etc/exports file, you
> >> will have to extend the list of addressed permitted for 'rpcbind'.
> >
> > I'd definitely missed that.  Unfortunately, correcting it (both on
> > client and server) seems to have made no difference.  I still have the
> > same symptoms, as if I need to send a HUP signal someplace (but if
> > this is true, then where?).
>=20
> AFAIR, you have to restart at leats the following:
>=20
>     /etc/rc.d/rpcbind restart
>     /etc/rc.d/mountd restart
>=20
Progress!  Or at least something different, now...

Now it says, on the client, RPC: Program not registered.  A google
search yielded the suggestion that I should reboot the client; this
made no difference.

Stranger still, and different from the scenario described in the
page, there are no messages about NFS in /var/log/messages on the
server; it notes that the slave went down (when I rebooted the client)
and came back up, okay.

On the client, I'm seeing messages from NIS indicating that it couldn't
get a UDP handle to ypxfer.

Whoops.

I checked the packet filtering instructions on both systems; these
seem okay.

So I tried rebooting the server, and now I'm right back where I
started.  But I noticed a complaint that it couldn't change the
attributes on /usr:

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 -map=
root
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=3Droot 127.0.0.1
#/usr/src -alldirs -maproot=3Droot 127.0.0.1 192.168.19.1
/usr -alldirs -maproot=3Droot 127.0.0.1 192.168.19.1
/public -alldirs -maproot=3Droot 127.0.0.1 192.168.18.45 192.168.18.46 192.=
168.19.1
/home -alldirs -maproot=3Droot 127.0.0.1 192.168.18.45 192.168.18.46 192.16=
8.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 19=
2.168.19.1=20
/home                              127.0.0.1 192.168.18.45 192.168.18.46 19=
2.168.19.1=20
/                                  127.0.0.1=20
lupin%=20

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.

--
David Benfell, LCP
benfell@parts-unknown.org
---
Resume available at http://www.parts-unknown.org/
NOTE: I sign all messages with GnuPG (0DD1D1E3).

--UlVJffcvxoiEqYs2
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFGG7OAUd+dMw3R0eMRAvgaAJ9e3gDAg8sm/Y//BjLMXIOQ9tBDygCdEgdR
t84HR4nMrTMTdAUTRMhq7Jg=
=yQ8i
-----END PGP SIGNATURE-----

--UlVJffcvxoiEqYs2--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070410155544.GA4157>