* machine hangs - SLES9/NFS
@ 2004-07-01 12:00 Shylendra Bhat
2004-07-01 17:06 ` Trond Myklebust
0 siblings, 1 reply; 2+ messages in thread
From: Shylendra Bhat @ 2004-07-01 12:00 UTC (permalink / raw)
To: linux-kernel
Hello,
I am looking answers for the following questions.
Is nfs file lock acquired by client, persistent across the nfs server
reboot?
I know that this feature was not there in NFSv3. Does NFSv4 supports
this?
Following is the exercise which I did to test nfs file lock.
I have two machines. One among them is the NFS server running on
SLES9(kernel 2.6.5-7.79). The other machine mounts the NFS exported
filesystem.
I have written a application which locks the files over this nfs mount.
After acquiring the lock, I am restarting the nfs service using
"rcnfsserver restart" command.
After the nfs service restart, the client fails to release the lock and
is in a hung state. If the mount directory is listed, it shows
"bash: cd: /export: Stale NFS file handle"
After this behavior of the client, server stops responding. Only way to
bring back the machine is reboot.
Any help is really appreciated.
Thanks & regards
Shylendra
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: machine hangs - SLES9/NFS
2004-07-01 12:00 machine hangs - SLES9/NFS Shylendra Bhat
@ 2004-07-01 17:06 ` Trond Myklebust
0 siblings, 0 replies; 2+ messages in thread
From: Trond Myklebust @ 2004-07-01 17:06 UTC (permalink / raw)
To: shylendra.bhat; +Cc: linux-kernel
På to , 01/07/2004 klokka 08:00, skreiv Shylendra Bhat:
> Hello,
>
> I am looking answers for the following questions.
>
> Is nfs file lock acquired by client, persistent across the nfs server
> reboot?
> I know that this feature was not there in NFSv3. Does NFSv4 supports
> this?
FUD. The lock manager for NFSv3 does reclaim locks if the server
reboots.
> After the nfs service restart, the client fails to release the lock and
> is in a hung state. If the mount directory is listed, it shows
>
> "bash: cd: /export: Stale NFS file handle"
Which means that the server is screwed up. Two possibilities: either
1) you have a fibrechannel back end or something like that which
doesn't have a fixed device number: you can fix that by using
the "fsid" export option.
2) The filesystem you are exporting is using non-permanent inode
numbers (FAT filesystems are a prime example). Sorry: no
workaround for this other than converting to another filesystem.
Cheers,
Trond
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-07-01 17:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-01 12:00 machine hangs - SLES9/NFS Shylendra Bhat
2004-07-01 17:06 ` Trond Myklebust
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®