2004-11-19 11:10:03

by mehta kiran

[permalink] [raw]
Subject: NFS lock recovery problem if subtree_check option used

Hi ,
I am facing new problem in NFS lock krecovery
on sles9 sp1 beta2 release.
This problem was not there in slses9 rc5
release.
PROBLEM:

NFS stale handle error if client tries to reclaim lock
for filesystem exported with subtree_check option

DESCRIPTION:

1.I exported whole filesystem to client using rw ,
no_root_squash option.By default subtree_check
option is enabled.
2.When server restarts and client tries to
reclaim lock , it gets NFS_STALE_FH error.
3.If server exports filesystem system with
additional option no_subtree_check client then
faces no problems.
4.Problem is in function nfs_acceptable
function(nfsfh.c) or functions calling
nfs_acceptable function.This function somehow
returns 0 which means invalid handle.
5.Message in /var/log/message file
"nfs_acceptable failed at ...."


HOW TO SETUP:

1.Set up two systems with a shared disk
2.start nfs server on first system and export
filesystem present on shared disk to client
with rw,no_root_squash option.
3.Let client reclaim lock .
4.Stop nfs server on first system before client
releases lock.
5.Now , start nfs server on second system.
6.Client gets NFS_STALE_FH error when it tries
to reclaim lock

If i am missing anything or somebody else
is facing same problem please let me know.
thanks,
kiran



__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com




-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. http://www.intersystems.com/match8
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs


2004-11-19 15:18:16

by Trond Myklebust

[permalink] [raw]
Subject: Re: NFS lock recovery problem if subtree_check option used

fr den 19.11.2004 Klokka 03:10 (-0800) skreiv mehta kiran:
> Hi ,
> I am facing new problem in NFS lock krecovery
> on sles9 sp1 beta2 release.
> This problem was not there in slses9 rc5
> release.
> PROBLEM:
>
> NFS stale handle error if client tries to reclaim lock
> for filesystem exported with subtree_check option

That is a known server bug, and is not just limited to locks. Neil
committed the following fix to Bitkeeper not too long ago.

http://linux.bkbits.net:8080/linux-2.6/user=neilb/gnupatch@41997cc5nwxi8SY_jN4yhIPUSu_yVA

Cheers,
Trond

--
Trond Myklebust <[email protected]>



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. http://www.intersystems.com/match8
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs