From owner-freebsd-questions Thu May 21 01:35:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA25676 for freebsd-questions-outgoing; Thu, 21 May 1998 01:35:13 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from freebie.lemis.com (freebie.lemis.com [139.130.136.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA25639 for ; Thu, 21 May 1998 01:35:01 -0700 (PDT) (envelope-from grog@lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id SAA27502; Thu, 21 May 1998 18:04:54 +0930 (CST) (envelope-from grog) Message-ID: <19980521180454.G27201@freebie.lemis.com> Date: Thu, 21 May 1998 18:04:54 +0930 From: Greg Lehey To: 7e9aedd97b5ec4590edb8281ff12b168 , questions@FreeBSD.ORG Subject: Re: mountd problem (?) References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from 7e9aedd97b5ec4590edb8281ff12b168 on Thu, May 21, 1998 at 01:04:08AM -0500 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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