*BSD News Article 7209


Return to BSD News archive

Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!sgiblab!sdd.hp.com!cs.utexas.edu!natinst.com!hrd769.brooks.af.mil!hrd769.brooks.af.mil!not-for-mail
From: root@hrd769.brooks.af.mil (Super User)
Newsgroups: comp.unix.bsd
Subject: Re: NFS program not registered??!!
Date: 30 Oct 1992 09:40:16 -0600
Organization: Armstrong Lab MIS, Brooks AFB TX
Lines: 45
Message-ID: <1crl10INN8m@hrd769.brooks.af.mil>
References: <jeremy.720409053@scorpion.ac.cowan.edu.au> <MIGUEL.92Oct29222956@roxanne.nuclecu.unam.mx>
NNTP-Posting-Host: hrd769.brooks.af.mil

In article <MIGUEL.92Oct29222956@roxanne.nuclecu.unam.mx> miguel@roxanne.nuclecu.unam.mx (Miguel de Icaza A.) writes:
>In article <jeremy.720409053@scorpion.ac.cowan.edu.au> j.laidman@cowan.edu.au writes:
>
>>    I've posted this before but got no respones.  I seem to be able to get most
>>    things working with 386BSD, but not NFS.  I've applied all relevant patches
[...]
>
>insert this in your rc.local:
>
>portmap			# This is RPC's portmapper
>mountd -i 		# This is NFS' mount daemon
>nfsd 4			# This is NFS' server daemon
>biod 4			# Block I/O daemons
>

  I am using NFS on BSD386.  The above will (probably) not work correctly.

Try (instead)

if [ X${nfs_server} = X"YES" -a -r /etc/exports ]; then
	echo -n ' portmap';		portmap
	echo -n ' mountd';		mountd
	echo -n ' nfsd';
		nfsd -t 255.255.0.0,140.140.0.0 -u 255.255.0.0,140.140.0.0,1
	echo -n ' nfsiod';		nfsiod 1
fi

  This will start the portmap, the mount daemon, and the network filesystem daemon.
The nfsd option -t is for your tcp/ip connections, and the -u is for udp connections.  I use
the netmask, and result options to limit the connections that can be made to my local network.
If you are on a Class 'C' network (for example 253.253.253.0), and want to limit your 
connections to local hosts, change the netmask to from 255.255.0.0 to 255.255.255.0 and the 
other to 253.253.253.0 (from 140.140.0.0 in the example above).  THE nfsiod is an optional step
that is supposed to improve nfs throughput.  I can't say for sure if it does.  The '1' on the
nfsiod simply starts 1 nfsiod daemon to service (I presume) the first nfs request.

  You will also need to make sure you are exporting some paths from your file system and
not limiting them to some nonexistent hosts somewhere.  Check the exports man page and file in
/etc to make sure.  The only exported mount point I use is for my root directory so that I
can make backups on the 'Sun' down the hall.

  If you mail me, I will be glad to help with this problem (as little as I actually know).

TSgt Dave Burgess
NCOIC, AL/MIS