You are not logged in.

#1 2010-04-12 17:20:17

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

[Solved] NFS Permissions

Client DIR listing

drwxrwsr-x   2 4294967294 4294967294  4096 Apr 11 21:24 April.01.2010-Thu-PartI
drwxrwsr-x   2 4294967294 4294967294  4096 Apr 11 21:25 April.01.2010-Thu-PartII
drwxrwsr-x   2 4294967294 4294967294  4096 Apr  5 11:15 April.05.2010-Mon
drwxrwsr-x   2 4294967294 4294967294  4096 Apr  6 11:15 April.06.2010-Tue
drwxrwsr-x   2 4294967294 4294967294  4096 Apr  7 11:15 April.07.2010-Wed
drwxrwsr-x   2 4294967294 4294967294  4096 Apr  8 11:15 April.08.2010-Thu
drwxrwsr-x   2 4294967294 4294967294  4096 Apr 12 11:15 April.12.2010-Mon
drwxr-sr-x   2 4294967294 4294967294  4096 Jun  3  2009 b
drwxr-xr-x   2 4294967294 4294967294  4096 Apr 19  2009 bin
drwxrwsr-x   2 4294967294 4294967294  4096 Mar 31 11:15 March.31.2010-Wed
drwxrwsr-x 196 4294967294 4294967294 69632 Dec  7 20:54 Music
drwxr-sr-x   6 4294967294 4294967294  4096 Dec 29 17:04 Stern 2008
drwxr-sr-x   3 4294967294 4294967294  4096 Dec 29 17:05 Stern 2009
drwxrwsr-x   2 4294967294 4294967294  4096 Aug  6  2009 Stern Stooges

Server Dmesg

FS-Cache: Loaded
FS-Cache: Netfs 'nfs' registered for caching
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
NFSD: starting 90-second grace period
eth1: no IPv6 routers present
nfsd: nfsv4 idmapping failing: has idmapd not been started?
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

Anyone have any ideas rpc.idmapd is running

root      1506  0.0  0.0   6152   936 ?        Ss   13:09   0:00 /usr/bin/rpcbind
root      1519  0.0  0.0      0     0 ?        S    13:09   0:00 [rpciod/0]
root      1520  0.0  0.0      0     0 ?        S    13:09   0:00 [rpciod/1]
root      1821  0.0  0.1   6248  1228 ?        Ss   13:12   0:00 /usr/sbin/rpc.statd
root      1835  0.0  0.0   2192   648 ?        Ss   13:12   0:00 /usr/sbin/rpc.idmapd
root      1903  0.0  0.1   6420  1020 ?        Ss   13:13   0:00 /usr/sbin/rpc.mountd --no-nfs-version 1 --no-nfs-version 2
root      1524  0.0  0.0      0     0 ?        S    13:09   0:00 [nfsiod]
root      1887  0.0  0.0      0     0 ?        S    13:13   0:00 [nfsd4]
root      1888  0.0  0.0      0     0 ?        S    13:13   0:00 [nfsd]
root      1903  0.0  0.1   6420  1020 ?        Ss   13:13   0:00 /usr/sbin/rpc.mountd --no-nfs-version 1 --no-nfs-version 2

I'm at a loss google doesn't seem to be helping much.

Last edited by pyther (2010-04-16 19:55:03)


Website - Blog - arch-home
Arch User since March 2005

Offline

#2 2010-04-14 01:51:43

premier
Member
Registered: 2006-12-07
Posts: 16

Re: [Solved] NFS Permissions

In your server dmesg, indicates an idmapd problem

"nfsd: nfsv4 idmapping failing: has idmapd not been started?"


add "-vvv" to IDMAPD_OPTS in /etc/conf.d/nfs-common.conf to get more verbose messages in logs (/var/log/messages.log and/or /var/log/errors.log)

check /etc/idmapd.conf
- domain has to be the same value  on client and server
- check that the rpc_pipefs is getting mounted

check /etc/hosts.allow and /etc/hosts.deny that the services are being allowed

Offline

#3 2010-04-16 19:53:22

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: [Solved] NFS Permissions

Thanks for the suggestion and sorry for the late relpy, been slightly busy these last few days!

I needed to set the following two variables in /etc/conf.d/nfs-common on the client. Seems as if the autodetect was failing.

# Do you want to start the statd daemon? It is not needed for NFSv4.
NEED_STATD="no"

# Do you want to start the idmapd daemon? It is only needed for NFSv4.
NEED_IDMAPD="yes"

Website - Blog - arch-home
Arch User since March 2005

Offline

Board footer

Powered by FluxBB