You are not logged in.

#1 2010-05-30 21:03:18

lang2
Member
Registered: 2006-02-10
Posts: 386

help needed for setting up NFS4 server

Hi all,

Finally gathered up courage to setup NFS4 server up. After following the wiki page, starting rpc.nfsd always fail for me.
Here is my /etc/exports:

/exports    *(ro,no_subtree_check)

.

dmesg shows the following:

FS-Cache: Loaded
FS-Cache: Netfs 'nfs' registered for caching
NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
NFSD: starting 90-second grace period
nfsd: last server has exited, flushing export cache
NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
NFSD: starting 90-second grace period

My idmapd.conf is like this:

[General]

Verbosity = 1
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
Domain = home

[Mapping]

Nobody-User = nobody
Nobody-Group = nobody

[Translation]

Method = nsswitch

.

Any help? Thanks,

Offline

#2 2010-05-30 21:31:03

lang2
Member
Registered: 2006-02-10
Posts: 386

Re: help needed for setting up NFS4 server

Update: After a bit of tweaking I've gone further. Now I got this when I try to kick of nfsd:

rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
rpc.nfsd: unable to set any sockets for nfsd

Offline

#3 2010-06-01 09:06:36

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,229
Website

Re: help needed for setting up NFS4 server

This is my /etc/exports:

# EXPORT ROOT
/export         192.168.0.0/255.255.255.0(rw,fsid=0,no_subtree_check,async,insecure,anonuid=1000,anongid=100)
# EXPORT FOLDERS
/export/media   192.168.0.0/255.255.255.0(rw,no_subtree_check,async,nohide,insecure,anonuid=1000,anongid=100)
/export/tdone   192.168.0.0/255.255.255.0(rw,no_subtree_check,async,nohide,insecure,anonuid=1000,anongid=100)
/export/twatch  192.168.0.0/255.255.255.0(rw,no_subtree_check,async,nohide,insecure,anonuid=1000,anongid=100)

my rc.conf:
DAEMONS=(... network rpcbind nfs-common nfs-server ...)

and in my idmapd.conf, I have only set the domain to something more original than 'home'. This works for me.

Offline

Board footer

Powered by FluxBB