From: Subject: clear_locks on Linux? Date: Wed, 13 Apr 2005 12:14:36 +0100 Message-ID: <9E621559095AA746B22B21CD4FAF99A50A4EA6@EDINMAIL1.datcon.co.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C54019.FA2AABFD" Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list2.sourceforge.net with esmtp (Exim 4.30) id 1DLfpY-0003d4-5Q for nfs@lists.sourceforge.net; Wed, 13 Apr 2005 04:14:48 -0700 Received: from smtp2.dataconnection.com ([192.91.191.8]) by sc8-sf-mx1.sourceforge.net with esmtp (Exim 4.41) id 1DLfpW-0002dY-6E for nfs@lists.sourceforge.net; Wed, 13 Apr 2005 04:14:48 -0700 To: Sender: nfs-admin@lists.sourceforge.net Errors-To: nfs-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: Discussion of NFS under Linux development, interoperability, and testing. List-Post: List-Help: List-Subscribe: , List-Archive: This is a multi-part message in MIME format. ------_=_NextPart_001_01C54019.FA2AABFD Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > Solaris has a command clear_locks, to remove locks held by a specific = remote host. >=20 > 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. >=20 > Alternatively, could I achieve a similar effect by restarting lockd to = encourage all active clients to reacquire their locks? >=20 > Edward. ------_=_NextPart_001_01C54019.FA2AABFD Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable clear_locks on Linux?

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.

------_=_NextPart_001_01C54019.FA2AABFD-- ------------------------------------------------------- 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 - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs