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.
Alternatively, could I achieve a similar effect by restarting lockd to encourage all active clients to reacquire their locks?
Edward.
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
--- [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.
>
> 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