Skip to contentSkip to conversation

NFS lock recovery problem if subtree_check option used

DISCUSSION mehta kiran 2 participants 2 messages Nov 19, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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. www.intersystems.com/match8
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#1 lore raw

fr den 19.11.2004 Klokka 03:10 (-0800) skreiv mehta kiran:

Quoted 9 lines

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

Signature · 12 lines
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. www.intersystems.com/match8
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs