You are not logged in.

#1 2011-02-13 10:27:06

h2
Member
Registered: 2011-02-12
Posts: 21

NFS-Client not working

Hi everyone,

I am new to Arch (mostly FreeBSD-user the last years). I can't get NFS working, I already looked at the Wiki-Articles for NFS anf NFSv4, but it didn't help. The Server offers both NFS3 and NFS4, FreeBSD-Clients can mount both, and two Ubuntu-Clients can mount NFS3 without problems (I haven't checked NFS4 on the Ubuntu-Clients yet).

With my Arch-Install I can mount neither. Heres some info on the client:

root@archmain /h/hannes# ps ax | grep -E '(rpc|nfs)'
  786 ?        S<     0:00 [rpciod]
 1349 ?        Ss     0:00 /usr/sbin/rpc.statd
 1356 ?        S<     0:00 [nfsiod]
 1365 ?        Ss     0:00 /usr/sbin/rpc.idmapd
 1372 ?        Ss     0:00 /usr/sbin/rpc.gssd
 2676 ?        Ss     0:00 /usr/bin/rpcbind

I have set idmapd to be very verbose and it starts up fine and reports the same domain as the NFS4-Server:

Feb 13 10:39:39 archmain rpc.idmapd[1364]: libnfsidmap: using domain: soldiner.lan
Feb 13 10:39:39 archmain rpc.idmapd[1364]: libnfsidmap: processing 'Method' list
Feb 13 10:39:39 archmain rpc.idmapd[1364]: libnfsidmap: loaded plugin /usr/lib/libnfsidmap/nsswitch.so for method nsswitch
Feb 13 10:39:39 archmain rpc.idmapd[1365]: Expiration time is 600 seconds.
Feb 13 10:39:39 archmain rpc.idmapd[1365]: Opened /proc/net/rpc/nfs4.nametoid/channel
Feb 13 10:39:39 archmain rpc.idmapd[1365]: Opened /proc/net/rpc/nfs4.idtoname/channel

The Client can see the available shares:

root@archmain /h/hannes# showmount -e 192.168.3.200 | grep pxe
/trunk/data/pxeboot                 192.168.3.90,192.168.3.80

When I try to mount a simple NFS3-mount, this happens:

root@archmain /h/hannes# mount -t nfs -o ro  192.168.3.200:/trunk/data/pxeboot /mnt/server
mount.nfs: mount system call failed

Verbose gives me:

root@archmain /h/hannes# mount.nfs  192.168.3.200:/trunk/data/pxeboot /mnt/server -r -v
mount.nfs: timeout set for Sun Feb 13 11:18:55 2011
mount.nfs: trying text-based options 'vers=4,addr=192.168.3.200,clientaddr=192.168.3.80'
mount.nfs: mount(2): Input/output error
mount.nfs: mount system call failed

and idmapd spews this to messages:

Feb 13 11:02:53 archmain rpc.idmapd[1365]: New client: 0
Feb 13 11:02:53 archmain rpc.idmapd[1365]: Opened /var/lib/nfs/rpc_pipefs/nfs/clnt0/idmap
Feb 13 11:02:53 archmain rpc.idmapd[1365]: New client: 1
Feb 13 11:02:53 archmain rpc.idmapd[1365]: Stale client: 1
Feb 13 11:02:53 archmain rpc.idmapd[1365]:      -> closed /var/lib/nfs/rpc_pipefs/nfs/clnt1/idmap
Feb 13 11:02:53 archmain rpc.idmapd[1365]: Stale client: 0
Feb 13 11:02:53 archmain rpc.idmapd[1365]:      -> closed /var/lib/nfs/rpc_pipefs/nfs/clnt0/idmap

The exact same thing happens when I try to mount nfs4. Now I already think its strange that idmapd responds to an nfs3-mount-request (since there really isn't any id-mapping going on), but maybe Linux-NFS works that way, I wouldn't know.

The Server does not log anything. It doesn't say that it denied a mount request or anything like that (it usually does), so I really think its some Arch-specific issue I have here.

Do you have any idea what to do next?

Thanks for your help.

Offline

#2 2011-02-13 12:08:49

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: NFS-Client not working

Does it work when you explicitly tell mount to use NFS v3? I had problems with that as well after Arch bumped NFS to v4. Mount seems to assume it's an NFS v4 share by default, somehow.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2011-02-14 08:22:58

h2
Member
Registered: 2011-02-12
Posts: 21

Re: NFS-Client not working

Ah, indeed, that works. Thats a good start, but I still need NFSv4, do you know whats wrong with my setup?

Offline

#4 2011-02-14 08:32:57

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: NFS-Client not working

h2 wrote:

Ah, indeed, that works. Thats a good start, but I still need NFSv4, do you know whats wrong with my setup?

https://bbs.archlinux.org/viewtopic.php?id=109932
See post #7.  Worked for me smile


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2011-02-14 19:32:49

h2
Member
Registered: 2011-02-12
Posts: 21

Re: NFS-Client not working

graysky wrote:
h2 wrote:

Ah, indeed, that works. Thats a good start, but I still need NFSv4, do you know whats wrong with my setup?

https://bbs.archlinux.org/viewtopic.php?id=109932
See post #7.  Worked for me smile

Well I have no issues on the server (well actually there are performance issues with NFSv4, but thats not the issue here). Anyway the server is FreeBSD, so the hints don't apply (different options &c). I should be able to mount, independent of performance.

Offline

#6 2011-02-18 07:46:07

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

Re: NFS-Client not working

I have an Arch and Debian NFS-server with which I can connect using 'defaults' from my Arch laptop. Could you post your settings (both client and server maybe?)

Offline

#7 2011-02-18 11:36:51

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: NFS-Client not working

may be an uid issue.

Offline

Board footer

Powered by FluxBB