All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem with NFS4, Error: state recovery failed on NFSv4 server 192.168.0.1 with error 121
@ 2007-09-16 17:45 Jonas Jonsson
  2007-09-17 17:07 ` Trond Myklebust
  0 siblings, 1 reply; 14+ messages in thread
From: Jonas Jonsson @ 2007-09-16 17:45 UTC (permalink / raw)
  To: nfs


I've been trying to install an NFS4 server for sometime now.



I have a machine running Gentoo AMD64 stable with kernel

gentoo-sources-2.6.22-r5.



I have compiled the server with these nfs related options



jonas@bender /mnt $ cat /boot/config-2.6.22-gentoo-r5-1 | grep NFS

CONFIG_NFS_FS=m

CONFIG_NFS_V3=y

# CONFIG_NFS_V3_ACL is not set

CONFIG_NFS_V4=y

CONFIG_NFS_DIRECTIO=y

CONFIG_NFSD=m

CONFIG_NFSD_V3=y

# CONFIG_NFSD_V3_ACL is not set

CONFIG_NFSD_V4=y

CONFIG_NFSD_TCP=y

CONFIG_NFS_COMMON=y



I have these modules loaded

jonas@bender /mnt $ lsmod

Module                  Size  Used by

nfs                   254744  0 

nfsd                  255848  17 

exportfs                5632  1 nfsd

lockd                  69040  3 nfs,nfsd

sunrpc                172936  12 nfs,nfsd,lockd



I have nfs-utils-1.1.0 installed



I have rpc.idmapd, rpc.statd, rpc.mountd running

jonas@bender /mnt $ ps uax | grep rpc

nobody   23084  0.0  0.0   3736   680 ?        Ss   18:00   0:00

/sbin/rpc.statd

root     23114  0.0  0.0   8056   884 ?        Ss   18:00   0:00

/usr/sbin/rpc.mountd

root     23120  0.0  0.0      0     0 ?        S<   18:00   0:00 [rpciod/0]

root     23124  0.0  0.0      0     0 ?        S<   18:00   0:00 [rpciod/1]

root     23192  0.0  0.2  17836  2368 ?        Ss   18:00   0:00

/usr/sbin/rpc.idmapd



I have this in my /etc/exports

/tmp    192.168.0.0/24(sync,ro,no_subtree_check,nohide,fsid=root)



If I mount it on the same machine

jonas@bender /mnt $ sudo mount -t nfs4 bender:/ /mnt/nfs



I can do an normal ls -la in the directory if I'm not standing in it

jonas@bender /mnt $ ls nfs

But If I cd to nfs then do an ls it doesn't work

jonas@bender /mnt/nfs $ ls

Then the ls process hangs and the syslog starts to flodd with

Error: state recovery failed on NFSv4 server 192.168.0.1 with error 121



This occurs if I try to read a file also.



Sometimes, not very often I get lines like this, seems to come when I kill

-9 the ls process.

Error: state recovery failed on NFSv4 server 192.168.0.1 with error 2



I have tried with some different kernels and version of nfs-utils but all

of them gives the same error.



The server machine is running ResierFS on top of LVM on top of RAID5. But I

have tried with a external USB stick and it's the same problem.



Any help on solving this problem is very appreciated.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2007-09-25 15:20 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-16 17:45 Problem with NFS4, Error: state recovery failed on NFSv4 server 192.168.0.1 with error 121 Jonas Jonsson
2007-09-17 17:07 ` Trond Myklebust
2007-09-17 17:12   ` Trond Myklebust
2007-09-17 19:12     ` Jonas Jonsson
2007-09-17 19:57       ` Trond Myklebust
2007-09-17 20:25         ` Jonas Jonsson
2007-09-20  9:52           ` Jonas Jonsson
2007-09-21 17:41           ` Trond Myklebust
2007-09-22 18:52             ` J. Bruce Fields
2007-09-24 21:19               ` Jonas Jonsson
2007-09-24 22:02                 ` J. Bruce Fields
2007-09-24 22:20                   ` J. Bruce Fields
2007-09-25 12:14                     ` Jonas Jonsson
2007-09-25 15:20                       ` J. Bruce Fields

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.