Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jan 1996 21:03:59 +0100
From:      hw@thor.shn.com (Henning Wickhorst)
To:        questions@freebsd.org
Subject:   Re: Setting up NFS
Message-ID:  <199601042003.VAA09567@thor.shn.com>

next in thread | raw e-mail | index | archive | help
Paul Sondhu (paul@riker.comcirc.com.au) wrote:
: 
: I am trying to set up NFS between two FreeBSD machines and am having a
: few problems.
: 
: The only help and info I have found in setting up NFS is from news articles
: from the freebsd web site and even that doesnt seem very helpful.
: 
: What I have tried to do is this:
: 
: On the machine that I want to share a directory in I have created an
: /etc/exports file and have put in that file the following line:
: 
: /usr/local/webpages riker.comcirc.com.au

looks good.

: 
: where /usr/local/webpages is the directory I want to access from the hostname
: riker.comcirc.com.au
: 
: Then I have run nfsd ( as root ).
: 
: On the machine I want to mount the remote filesystem on ( 
: riker.comcirc.com.au ) I type the following line ( as root also ):
: 
: mount troi.comcirc.com.au:/usr/local/webpages /mnt

I use to run 'muont_nfs' to do the job, don't know if mount will be
correct all the time.

: 
: where troi.comcirc.com.au is the remote machine running nfsd
: 
: When I run this command I get the following message and nothing happens:
: 
: NFS Portmap: RPC: Program not registerd
: 
: I get the following error when I run showmount -e troi on the remote machine:
: 
: Program not registered Cant do exports rpc
: 
: I was wondering if someone could tell me what these messages mean and how I
: go about getting NFS up and running.

Be sure to have NFS enabled in your kernel.

You need to have 'nfsiod' running on the client machine. One for each
filesystem you want to export. See the manpage.

You also need to have 'portmap', 'mountd' and 'nfsd' running on the
server machine.
Read all the manpages for this programs. It is not too hard to set
NFS up ;-)

But the easiest way is to edit the '/etc/sysconfig' file for each
machine. Set nfs_client=YES, nfs_server=YES on the other machine.
After rebooting both machines it should work.

You don't need to have 'pcnfsd' running on one of the machines, 
as long as you want to run nfs between two unix machines.


Regards,
Henning

-- 
------------------------------------------------------------------
Henning Wickhorst        Elmshorn, Germany         hw@thor.shn.com
------------------------------------------------------------------



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