From owner-freebsd-questions@FreeBSD.ORG Thu Jan 29 22:08:48 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96EBD106566B for ; Thu, 29 Jan 2009 22:08:48 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 5FCA38FC16 for ; Thu, 29 Jan 2009 22:08:48 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id A8367AFBCCB; Thu, 29 Jan 2009 13:08:47 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Thu, 29 Jan 2009 13:08:47 -0900 User-Agent: KMail/1.9.10 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200901291308.47418.fbsd.questions@rachie.is-a-geek.net> Cc: Arjan van der Oest Subject: Re: [7.1-RELEASE-p2 amd64] NFS mount in fstab hangs during mountcritremote execution 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: Thu, 29 Jan 2009 22:08:48 -0000 On Thursday 29 January 2009 00:47:49 Arjan van der Oest wrote: > Hi, > > I=E2=80=99m puzzled and either I don=E2=80=99t understand the boot rc.d p= rocess or there is > something wrong with it =E2=98=BA > > I have this 7.1-RELEASE-p2 amd64 machine compiled with a GENERIC kernel, = so > NFS support is baked right into the kernel by default. In fsstab I have > this entry: > > :/data/nfs-shares/S1018SR18 /nfs-mounts/backupsrv = =20 > nfs rw 0 0 > > - why does the system tries to mount the nfs filesystem from the fstab > while nfs_client_enable has been set to no in rc.conf? Because there is no relation between the two. You could be using a 3rd part= y=20 nfs kernel module. > - why does the=20 > system seems to hang on the mountcritremote script although there seems no > valid reason for that. I can imagine the network has not been fully > configured yet when executing (indicated by the link UP message right aft= er > the mouning NFS filesystems line) but why will the script not continue > after a few timeouts? Because you are not aware of the following mount_nfs flags, you can put=20 in /etc/fstab: -b If an initial attempt to contact the server fails, fork off a child to keep trying the mount in the background. Useful for fstab(5), where the file system mount is not critical to multi- user operation. -R Set the mount retry count to the specified value. The default= is a retry count of zero, which means to keep retrying forever. There is a 60 second delay between each attempt. -i Make the mount interruptible, which implies that file system calls that are delayed due to an unresponsive server will fail with EINTR when a termination signal is posted for the process. -s A soft mount, which implies that file system calls will fail after retrycnt round trip timeout intervals. > And more bizarre: when interrupting the=20 > mountcritremote script the share has been actually mounted, so it seems t= he > 'mount -a -t nfs' command has actually been executed successfully. Looks more like the server is not sending a "success" message or it got los= t=20 in transit. If this is 100% reproducable, look into compatibility issues, b= y=20 scaling down the NFS version for the mount and check firewall rules on both= =20 ends. =2D-=20 Mel Problem with today's modular software: they start with the modules and never get to the software part.