Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jun 2006 15:12:39 -0700 (PDT)
From:      Matthew Jacob <mjacob@ns1.feral.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/99664: mountd and/or nfsd have to sometimes have to be restarted for linux mounts to succeed
Message-ID:  <200606302212.k5UMCdDC045944@ns1.feral.com>
Resent-Message-ID: <200606302220.k5UMKIUn088396@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 30 22:20:18 GMT 2006
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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