Subject: Re: Starting nfs service
To: Max <netbsd-users@netbsd.org>
From: Erik Osheim <erik@plastic-idolatry.com>
List: netbsd-users
Date: 09/26/2003 13:32:54
I'm prety sure you want at least:

nfs_server=YES

in there. I'm no expert, but I got NFS working awhile ago, after adding
these things. I don't remember if all of them are strictly necessary, but
I think they all get used:

# nfs
lockd=YES
statd=YES
mountd=YES
nfs_server=YES
nfsd=YES
rpcbind=YES

You may want to try them. Also, I found the commands 'nfsstat' and
'showmount' useful.

-- Erik

On Fri, 26 Sep 2003, Max wrote:

> Date: Fri, 26 Sep 2003 13:01:47 -0400
> From: Max <netbsd-users@netbsd.org>
> To: netbsd-users@netbsd.org
> Subject: Starting nfs service
>
> Hi,
>
> I'm a newbie in NFS so excuse me if I did something stupid.
> I have a problem starting nfsd.
>
> I created
> -rw-rw-r--  1 root  wheel  47 Sep 26 12:21 /etc/exports
> with
> /usr/pkgsrc /usr/pkgdist -maproot=root pc2
>
> I added
> mountd=YES
> nfsd=YES
> to /etc/rc.conf
>
>
> When I start the servers (/etc/rc.d/mountd start; /etc/rc.d/nfsd start) I
> get
> Starting mountd.
> but there is no mountd nor nfsd process running.
>
>
> I tried manually:
>
> pc1# /usr/sbin/mountd -d
> Getting export list.
> Got line /usr/pkgsrc /usr/pkgdist -maproot=root pc2
> Making new ep fs=0x400,0x78b
> doing opt -maproot=root pc2
> got host pc2.domain.com
> Getting mount list.
> Here we go.
>
> and then back to the shell.
>
> If I start nfsd manually, the processes are started but I can't connect.
>
> The only document I found about nfs is
> http://www.netbsd.org/Documentation/network/netboot/nfs.html
> but it doesn't help me with my problem.
>
> Any help welcome.
>
> Max
>
>