Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 May 1998 18:04:54 +0930
From:      Greg Lehey <grog@lemis.com>
To:        7e9aedd97b5ec4590edb8281ff12b168 <zen@reno.sdsc.org>, questions@FreeBSD.ORG
Subject:   Re: mountd problem (?)
Message-ID:  <19980521180454.G27201@freebie.lemis.com>
In-Reply-To: <Pine.LNX.3.96.980521004657.26134A-100000@reno.sdsc.org>; from 7e9aedd97b5ec4590edb8281ff12b168 on Thu, May 21, 1998 at 01:04:08AM -0500
References:  <Pine.LNX.3.96.980521004657.26134A-100000@reno.sdsc.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 21 May 1998 at  1:04:08 -0500, 7e9aedd97b5ec4590edb8281ff12b168 wrote:
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
You must hate your parents.

> Hello, I am having a bit of trouble with /etc/exports and mountd. I tried
> searching for this subject in the mailing list archives, but I have yet to
> find the solution to this problem (I have seen similar/same problems, but
> no solution), so I apologize if this has already been answered.
>
> Right now, FreeBSD (2.2.6R) is installed on one big root filesystem,
> instead of different filesystems such as /, /usr, /var, and such. I'm not
> sure if this may be causing problems. Also, this (FreeBSD) machine that
> I'm having trouble with is 'ariel' (192.168.1.2), if this helps any.
>
> My /etc/exports looks like this:
> /usr/local	-alldirs	192.168.1.1
> /usr/src	-alldirs	192.168.1.1
> /u	-alldirs	192.168.1.1
>
> I have tried the above with tabs and spaces, both giving same errors.
>
> Errors:
>
> May 21 00:50:57 ariel mountd[1921]: Could not remount /usr/local: Invalid
> argument
> May 21 00:50:57 ariel mountd[1921]: Bad exports list line /usr/local
> -alldirs 192.168.1.1
> May 21 00:50:57 ariel mountd[1921]: Could not remount /usr/src: Invalid
> argument
> May 21 00:50:57 ariel mountd[1921]: Bad exports list line /usr/src
> -alldirs 192.168.1.1
> May 21 00:50:57 ariel mountd[1921]: Could not remount /u: Invalid argument
> May 21 00:50:57 ariel mountd[1921]: Bad exports list line /u -alldirs
> 192.168.1.1
>
> All of the directories exist and have subdirectories. It is mounted with
> the 'async' option (as well as 'rw') in /etc/fstab, but I do not think
> this would matter.
>
> Also, I tried the same /etc/exports file, but without -alldirs, and I get
> the following errors:
> May 21 00:56:06 ariel mountd[2061]: Can't change attributes for /usr/src.
> May 21 00:56:06 ariel mountd[2061]: Bad exports list line /usr/src
> 192.168.1.1
> May 21 00:56:06 ariel mountd[2061]: Can't change attributes for /u.
> May 21 00:56:06 ariel mountd[2061]: Bad exports list line /u 192.168.1.1
>
> For some reason, the first line always works, but 2nd and down does not.
> For example, if I put the /usr/src line as the first line, and the
> /usr/local as the second line, it would accept the /usr/src line, yet not
> the /usr/local line.

This is all rather confusing, especially if you're used to NFS version
2.  You have two choices:

1.  Specify a directory name.  You can then mount this directory only
    via NFS, even if it isn't a local mount point.

2.  Specify a local mount point and -alldirs.  Then you can NFS mount
    any directory within that file system.

It looks to me as if you're trying to combine these two cases: you
specify only specific directories, which are not mount points, and
presumably their subdirectories, with the -alldirs option.  I think
mountd is telling you that this won't work.

Greg
--
See complete headers for address and phone numbers
finger grog@lemis.com for PGP public key

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



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