Skip to contentSkip to conversation

clear_locks on Linux?

DISCUSSION mehta kiran 1 participant 1 message Apr 13, 2005

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

Hi ,
1.You can definitely restart nfsd so that clients
will reacquire their locks.
2.If you only want to release all locks , use
kill -9 <lockd pid> but in this case all clients will looose their locks permanently.

I dont think that currently there is any way to
release locks held by --a-- particlar client.

regards,
kiran

Quoted 9 lines · --- [email protected] wrote:

Solaris has a command clear_locks, to remove locks held by a specific remote host.

Does Linux have a similar command? I'm having trouble finding one. I have very occasionally seen a situation where a client crashes hard, leaving a file lock held on an NFS server, and I want to have a way to remove it.

Quoted 6 lines

Alternatively, could I achieve a similar effect by restarting lockd to encourage all active clients to reacquire their locks?

Edward.

__________________________________
Do you Yahoo!?
Make Yahoo! your home page
http://www.yahoo.com/r/hs

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs