From mjacob@ns1.feral.com  Fri Jun 30 22:12:40 2006
Return-Path: <mjacob@ns1.feral.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C44E616A417
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 30 Jun 2006 22:12:40 +0000 (UTC)
	(envelope-from mjacob@ns1.feral.com)
Received: from ns1.feral.com (ns1.feral.com [192.67.166.1])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 329AA43D55
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 30 Jun 2006 22:12:40 +0000 (GMT)
	(envelope-from mjacob@ns1.feral.com)
Received: from ns1.feral.com (localhost [127.0.0.1])
	by ns1.feral.com (8.13.6/8.13.6) with ESMTP id k5UMCd3C045945
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 30 Jun 2006 15:12:39 -0700 (PDT)
	(envelope-from mjacob@ns1.feral.com)
Received: (from mjacob@localhost)
	by ns1.feral.com (8.13.6/8.13.6/Submit) id k5UMCdDC045944;
	Fri, 30 Jun 2006 15:12:39 -0700 (PDT)
	(envelope-from mjacob)
Message-Id: <200606302212.k5UMCdDC045944@ns1.feral.com>
Date: Fri, 30 Jun 2006 15:12:39 -0700 (PDT)
From: Matthew Jacob <mjacob@ns1.feral.com>
Reply-To: Matthew Jacob <mj@feral.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: mountd and/or nfsd have to sometimes have to be restarted for linux mounts to succeed
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         99664
>Category:       kern
>Synopsis:       mountd and/or nfsd have to sometimes have to be restarted for linux mounts to succeed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 30 22:20:18 GMT 2006
>Closed-Date:    Wed Oct 12 15:07:31 UTC 2011
>Last-Modified:  Wed Oct 12 15:07:31 UTC 2011
>Originator:     Matthew Jacob
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
Feral Software
>Environment:
System: FreeBSD ns1.feral.com 6.1-STABLE FreeBSD 6.1-STABLE #0: Mon May 15 16:12:09 PDT 2006 root@ns1.feral.com:/usr/obj/usr/src/sys/FERAL i386


Shuttle X box, NATD interface to front public interface (192.67.166),
two private subnets (172.16,1 && 172.16.10) out a dual em interface to
the back.

-------
exports:

/home -alldirs -maproot=root -network 172.16.1 -mask 255.255.255.0
/home -alldirs -maproot=root -network 172.16.10 -mask 255.255.255.0
/usr/distfiles \
 /usr/ports     \
 /usr/src.CURRENT \
 /usr/src.RELENG_2 \
 /usr/src.RELENG_4 \
 /usr/src.RELENG_5 \
 /usr/src.RELENG_6 \
 -maproot=root -network 172.16.1 -mask 255.255.255.0
/usr/distfiles \
 /usr/ports     \
 /usr/src.CURRENT \
 /usr/src.RELENG_2 \
 /usr/src.RELENG_4 \
 /usr/src.RELENG_5 \
 /usr/src.RELENG_6 \
 -maproot=root -network 172.16.10 -mask 255.255.255.0

--------

rc.conf:

network_interfaces="rl0 em0 em1 lo0"
ifconfig_rl0="inet 192.67.166.1 netmask 255.255.255.0"
ifconfig_rl0_alias0="inet 192.67.166.2 netmask 0xffffffff"
ifconfig_em0="inet 172.16.1.79 netmask 255.255.255.0"
ifconfig_em0_alias0="inet 172.16.1.1 netmask 0xffffffff"
ifconfig_em0_alias1="inet 172.16.1.254 netmask 0xffffffff"
ifconfig_em1="inet 172.16.10.79 netmask 255.255.255.0"
ifconfig_em1_alias0="inet 172.16.10.1 netmask 0xffffffff"
ifconfig_em1_alias1="inet 172.16.10.254 netmask 0xffffffff"
defaultrouter="192.67.166.3"
gateway_enable="YES"
hostname="ns1.feral.com"
nfs_client_enable="YES"
nfs_server_enable="YES"
nfs_server_flags="-u -t -n 32 -h 172.16.1.79 -h 172.16.10.79"
nfs_reserved_port_only="YES"
sshd_enable="YES"
ntpdate_enable="YES"
ntpdate_flags="-b 66.187.224.4"
xntpd_enable="YES"
rpcbind_enable="YES"
sendmail_enable="YES"
#dumpdev="/dev/ad0s1b"
linux_enable="YES"
#log_in_vain="YES"               # YES to log connects to ports w/o listeners.
named_enable="YES"
#kern_securelevel_enable="YES"
#kern_securelevel="2"
clear_tmp_enable="YES"
tmpmfs="YES"
tmpsize="1024m"         # Size of mfs /tmp if created
natd_enable="YES"
natd_interface="rl0"           # Public interface or IPaddress to use.
natd_flags="-u"
firewall_enable="YES"
firewall_type="OPEN"
usbd_enable="YES"
# nessus suggested changes
rpc_statd_enable="NO"
#tcp_drop_synfin="YES"
apache_enable="YES"
mountd_enable="YES"
mountd_flags="-rl"              # Flags to mountd (if NFS server enabled).
dhcpd_enable="YES"
dhcpd_flags="-q"
dhcpd_conf="/usr/local/etc/dhcpd.conf"
dhcpd_ifaces="em0 em1"
dhcpd_withumask="022"
lpd_enable="YES"
accounting_enable="YES"
inetd_enable="YES"
smartd_enable="YES"
healthd_enable="YES"
compat4x_enable="YES"
compat5x_enable="YES"
mysql_enable="YES"

----------

hosts.allow stuff that's relevant:

rpcbind:        lportal.in1.lcl                                 : deny
rpcbind:        172.16.1.0/255.255.255.0                        : allow
rpcbind:        172.16.10.0/255.255.255.0                       : allow
rpcbind:        192.67.166.1                                    : allow
rpcbind:        192.67.166.2                                    : allow
rpcbind:        127.0.0.1                                       : allow
------------------------



>Description:

The client machine is a RedHat ES4 amd64. The fstab line is:

beppo:/home             /home                   nfs     defaults,nfsvers=2,noauto 0 0


(the nfsvers=2 line is not apparently relevant).

Since this machine is under test, I crash it a lot. About very 10th crash, the mount
of /home hangs (hence the 'noauto' token).

Normally I'd just call it a linux problem, but issuing

  /etc/rc.d/nfsd restart
  /etc/rc.d/mountd restart

on the server caused the mount to wake up and succeed.

Interestingly enough, the messages file on the server claims that the mountd request
succeeded. But the last tiem this happened, the mount didn't actually occur until after I
did the described restart:

Jun 30 15:01:41 ns1 mountd[45438]: mount request succeeded from 172.16.1.11 for /home
Jun 30 15:02:41 ns1 sudo:   mjacob : TTY=ttype ; PWD=/home/mjacob ; USER=root ; COMMAND=/etc/rc.d/nfsd restart
Jun 30 15:02:53 ns1 sudo:   mjacob : TTY=ttype ; PWD=/home/mjacob ; USER=root ; COMMAND=/etc/rc.d/mountd restart
>How-To-Repeat:
	See above.
>Fix:



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: jh 
State-Changed-When: Fri Sep 23 19:26:22 UTC 2011 
State-Changed-Why:  
Can you still reproduce this on recent FreeBSD versions? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=99664 
State-Changed-From-To: feedback->closed 
State-Changed-By: remko 
State-Changed-When: Wed Oct 12 15:07:31 UTC 2011 
State-Changed-Why:  
Feedback timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=99664 
>Unformatted:
