1clear_locks(1M)         System Administration Commands         clear_locks(1M)
2
3
4

NAME

6       clear_locks - clear locks held on behalf of an NFS client
7

SYNOPSIS

9       /usr/sbin/clear_locks [-s] hostname
10
11

DESCRIPTION

13       The  clear_locks command removes all file, record, and share locks cre‐
14       ated by the hostname and held on the current host, regardless of  which
15       process created or owns the locks.
16
17
18       This command can be run only by the super-user.
19
20
21       This  command  should  only be used to repair the rare case of a client
22       crashing and failing to clear held locks. Clearing  locks  held  by  an
23       active client may cause applications to fail in an unexpected manner.
24

OPTIONS

26       -s    Remove  all  locks created by the current machine and held by the
27             server hostname.
28
29

OPERANDS

31       The following operands are supported:
32
33       hostname    name of host server
34
35

EXIT STATUS

37       0    Successful operation.
38
39
40       1    If not root.
41
42
43       2    Usage error.
44
45
46       3    If unable to contact server (RPC).
47
48

ATTRIBUTES

50       See attributes(5) for descriptions of the following attributes:
51
52
53
54
55       ┌─────────────────────────────┬─────────────────────────────┐
56       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
57       ├─────────────────────────────┼─────────────────────────────┤
58       │Availability                 │SUNWcsu                      │
59       └─────────────────────────────┴─────────────────────────────┘
60

SEE ALSO

62       fcntl(2), attributes(5)
63
64
65
66SunOS 5.11                        6 Oct 2004                   clear_locks(1M)
Impressum