From owner-freebsd-questions@FreeBSD.ORG Thu Jun 19 06:54:20 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E319037B401; Thu, 19 Jun 2003 06:54:20 -0700 (PDT) Received: from mta6.adelphia.net (mta6.adelphia.net [64.8.50.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FDEE43FDF; Thu, 19 Jun 2003 06:54:20 -0700 (PDT) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com ([24.53.161.217]) by mta6.adelphia.net (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP id <20030619135419.OACX10267.mta6.adelphia.net@potentialtech.com>; Thu, 19 Jun 2003 09:54:19 -0400 Message-ID: <3EF1C08B.4040407@potentialtech.com> Date: Thu, 19 Jun 2003 09:54:19 -0400 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030429 X-Accept-Language: en-us, en MIME-Version: 1.0 To: jle References: <20030619020605.O1536@baa.ssars.net> In-Reply-To: <20030619020605.O1536@baa.ssars.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: NFS weirdness... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2003 13:54:21 -0000 [Please configure your email program so it stops mutilating your emails.] jle wrote: >>jle said: >> >>>My new web server won't mount NFS from fstab on reboot. >>> >>> >>>on NFSD: (/etc/exports) >>>/home2 -maproot=0 -alldirs httpd >>> >>>on HTTPD: (/etc/fstab) >>>NFSD:/home2 /home nfs rw,bg 0 0 > >>> >>>mount NFSD:/home2 /home >>> >>>Works fine until I reboot. Shouldn't it mount by itself? What am I > > missing > >>>now? Why doesn't HTTPD mount NFSD:/home2 on /home when it reboots? I > > see > >>>no errors in messages on either machine. Both are 5.1-CURRENT. >>> >>>TIA >> >>I had the same problem. I found it was due to named starting after the >>mount was attempted and so it couldn't resolve the name of the nfs > > server. > >>I changed the fstab to the ip address instead and it worked fine. An >>example from my fstab: >> >>192.168.1.10:/usr/src /usr/src nfs rw,soft,intr,nfsv3,tcp 0 > > 0 > >>Give that a go. >> >>Regards, Matt. > > I did try that as my named was starting after "Mounting NFS file systems" > too but it still wouldn't mount that line from fstab. It still mounts fine > manually but not automatically on reboot like it should. It's probably > something like a flag in rc.conf that I'm missing or some other little > thing but I'm just not finding it. Thanks for trying. Anyone else with an > idea? As a diagnostic step: Boot up the system, and then try to manually mount the filesystem with the command 'mount /usr/src'. If this works ... it pretty much confirms that your /etc/fstab syntax is correct. If it doesn't work, focus on /etc/fstab as the problem. HTH. -- Bill Moran Potential Technologies http://www.potentialtech.com