2957f68f79224a8d6ddd720019bd667b07558630
[openafs.git] / doc / man-pages / pod1 / vos_lock.pod
1 =head1 NAME
2
3 vos_lock - Locks a VLDB volume entry
4
5 =head1 SYNOPSIS
6
7 =for html
8 <div class="synopsis">
9
10 B<vos lock> S<<< B<-id> <I<volume name or ID>> >>>
11     S<<< [B<-cell> <I<cell name>>] >>>
12     [B<-noauth>] [B<-localauth>]
13     [B<-verbose>] [B<-encrypt>] [B<-noresolve>]
14     S<<< [B<-config> <I<config directory>>] >>>
15     [B<-help>]
16
17 B<vos lo> S<<< B<-i> <I<volume name or ID>> >>>
18     S<<< [B<-c> <I<cell name>>] >>>
19     [B<-noa>] [B<-l>] [B<-v>] [B<-e>] [B<-nor>]
20     S<<< [B<-co> <I<config directory>>] >>>
21     [B<-h>]
22
23 =for html
24 </div>
25
26 =head1 DESCRIPTION
27
28 The B<vos lock> command locks the Volume Location Database (VLDB) entry
29 for the indicated volume, blocking any operation that requires a write to
30 that entry. The lock applies to all of the volume versions associated with
31 the entry, not just the one specified with the B<-id> argument.
32
33 To unlock a single VLDB entry, use the B<vos unlock> command. To unlock
34 several entries, or all locked entries in the VLDB, use the B<vos
35 unlockvldb> command.
36
37 =head1 CAUTIONS
38
39 Do not use this command in normal circumstances. It is useful for
40 guaranteeing that the volume stays unchanged when there is reason to
41 believe that volume operations cannot properly lock VLDB volume entries as
42 they normally do to synchronize with one another.
43
44 =head1 OPTIONS
45
46 =over 4
47
48 =item B<-id> <I<volume name or ID>>
49
50 Specifies either the complete name or volume ID number of a volume of the
51 any of the three types.
52
53 =item B<-cell> <I<cell name>>
54
55 Names the cell in which to run the command. Do not combine this argument
56 with the B<-localauth> flag. For more details, see L<vos(1)>.
57
58 =item B<-noauth>
59
60 Assigns the unprivileged identity C<anonymous> to the issuer. Do not
61 combine this flag with the B<-localauth> flag. For more details, see
62 L<vos(1)>.
63
64 =item B<-localauth>
65
66 Constructs a server ticket using a key from the local
67 F</usr/afs/etc/KeyFile> file. The B<vos> command interpreter presents it
68 to the Volume Server and Volume Location Server during mutual
69 authentication. Do not combine this flag with the B<-cell> argument or
70 B<-noauth> flag. For more details, see L<vos(1)>.
71
72 =item B<-verbose>
73
74 Produces on the standard output stream a detailed trace of the command's
75 execution. If this argument is omitted, only warnings and error messages
76 appear.
77
78 =item B<-encrypt>
79
80 Encrypts the command so that the operation's results are not transmitted
81 across the network in clear text. This option is available in OpenAFS
82 versions 1.4.11 or later and 1.5.60 or later.
83
84 =item B<-noresolve>
85
86 Shows all servers as IP addresses instead of the DNS name. This is very
87 useful when the server address is registered as 127.0.0.1 or when dealing
88 with multi-homed servers. This option is available in OpenAFS
89 versions 1.4.8 or later and 1.5.35 or later.
90
91 =item B<-help>
92
93 Prints the online help for this command. All other valid options are
94 ignored.
95
96 =back
97
98 =head1 EXAMPLES
99
100 The following command locks the VLDB entry for C<user.terry>.
101
102    % vos lock user.terry
103
104 =head1 PRIVILEGE REQUIRED
105
106 The issuer must be listed in the F</usr/afs/etc/UserList> file on the
107 machine specified with the B<-server> argument and on each database server
108 machine. If the B<-localauth> flag is included, the issuer must instead be
109 logged on to a server machine as the local superuser C<root>.
110
111 =head1 SEE ALSO
112
113 L<vos(1)>,
114 L<vos_unlock(1)>,
115 L<vos_unlockvldb(1)>
116
117 =head1 COPYRIGHT
118
119 IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
120
121 This documentation is covered by the IBM Public License Version 1.0.  It was
122 converted from HTML to POD by software written by Chas Williams and Russ
123 Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.