*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> clear_locks (1m)              
Title
Content
Arch
Section
 

Contents


 clear_locks(1M)                                             clear_locks(1M)




 NAME    [Toc]    [Back]
      clear_locks - clear locks held on behalf of an NFS client

 SYNOPSIS    [Toc]    [Back]
      /usr/sbin/clear_locks [-s] hostname

 DESCRIPTION    [Toc]    [Back]
      The clear_locks command removes all file, record, and share locks
      created by the hostname and held on the current host, regardless of
      which process created or owns the locks.

      This command can be run only by the super-user.

      This command should only be used to repair the rare case of a client
      crashing and failing to clear held locks.  Clearing locks held by an
      active client may cause applications to fail in an unexpected manner.

    Options    [Toc]    [Back]
      -s hostname    Remove all locks created by the current machine and
                     held by the server, hostname.  hostname is the name of
                     host server.

 EXIT STATUS    [Toc]    [Back]
      clear_locks returns:

      0  Successful operation.

      1  If not root.

      2  Usage error.

      3  If unable to contact server (RPC).

 EXAMPLES    [Toc]    [Back]
      Remove all locks on local NFS server for client, client1:

           clear_locks client1

      Remove all locks created by the local client system and held by the
      remote NFS server, server1:

           clear_locks -s server1

 SEE ALSO    [Toc]    [Back]
      lockd(1M), statd(1M).


 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003
[ Back ]
      
      
 Similar pages
Name OS Title
pmap_release FreeBSD release resources held by a physical map
BUF_LOCK FreeBSD locks a buffer
BUF_TIMELOCK FreeBSD locks a buffer
tis_mutex_lock Tru64 Locks an unlocked mutex
pthread_mutex_lock Tru64 Locks an unlocked mutex
pthread_mutex_lock IRIX mutual exclusion locks
dxpause Tru64 locks (pauses) an X display
omp_lock IRIX Set of procedures to manipulate locks
BUF_LOCK Tru64 General: Locks the specified I/O buffer
tis_lock_global Tru64 Locks the DECthreads global mutex
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service