Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jan 1997 07:39:52 -0800
From:      "Jin Guojun[ITG]" <jin@george.lbl.gov>
To:        freebsd-bugs@freefall.freebsd.org, phk@critter.dk.tfs.com
Subject:   Re: bin/2430: mountd stops on loading if subnet mask is not defined in /etc/networks
Message-ID:  <199701091539.HAA21743@george.lbl.gov>

next in thread | raw e-mail | index | archive | help
Poul-Henning Kamp wrote:
> >      Also occurs with 2.2-ALPHA and 2.2-BETA.
> >      NFS server enabled in /etc/sysconfig.
> >      /etc/exports uses -network and -mask options.
> >
> >>Description:
> >
> >      When /etc/exports contains an export for a subnet (example
> >      follows), /etc/rc freezes until ^C is hit (causing mountd
> >      not to load) if the appropriate subnet mask is not defined
> >      in /etc/networks.
> >
> >e.g.
> >      /usr/src -alldirs -maproot=0:0 -network=203.17.53.16 -mask 255.255.255.
> >240
> >
> >>How-To-Repeat:
> >
> >      Comment out your subnet mask in /etc/networks, make sure
> >      nfs server is enabled in /etc/sysconfig, reboot, watch
> >      /etc/rc stop as it attempts to load /sbin/mountd.
> 
> I've seen this too, very annoying.
> 

I did NOT see such problems. Actually, I never made /etc/networks working to
set netmask  for class B subnets. I tried to use /etc/networks to set mask
from 2.1.x to 2.2-x, I got no lucky at all. So, I have to use netmask flag
explicitely in ifconfig command and -mask in /etc/exports file to do so.

That the only problem I encounted for mountd is it must start at boot time.
e.g., if there was no /etc/exports exist at boot time, then, add it after
boot up, and try to start mountd at this time, entire file system will hang.

-Jin




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