Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod1 / vos_listvldb.pod.in
CommitLineData
805e021f
CE
1=head1 NAME
2
3vos_listvldb - Displays a volume's VLDB entry
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10B<vos listvldb> S<<< [B<-name> <I<volume name or ID>>] >>>
11 S<<< [B<-server> <I<machine name>>] >>>
12 S<<< [B<-partition> <I<partition name>>] >>>
13 [B<-locked>] [B<-quiet>] [B<-nosort>]
14 S<<< [B<-cell> <I<cell name>>] >>> [B<-noauth>] [B<-localauth>]
15 [B<-verbose>] [B<-encrypt>] [B<-noresolve>]
16 S<<< [B<-config> <I<config directory>>] >>>
17 [B<-help>]
18
19B<vos listvl> S<<< [B<-na> <I<volume name or ID>>] >>>
20 S<<< [B<-s> <I<machine name>>] >>>
21 S<<< [B<-p> <I<partition name>>] >>>
22 [B<-lock>] [B<-q>] [B<-nos>] S<<< [B<-c> <I<cell name>>] >>>
23 [B<-noa>] [B<-loca>] [B<-v>] [B<-e>] [B<-nor>]
24 S<<< [B<-co> <I<config directory>>] >>>
25 [B<-h>]
26
27=for html
28</div>
29
30=head1 DESCRIPTION
31
32The B<vos listvldb> command formats and displays information from the
33Volume Location Database (VLDB) entry for each volume specified. The
34output depends on the combination of options supplied on the command
35line. Combine options as indicated to display the desired type of VLDB
36entries:
37
38=over 4
39
40=item *
41
42Every entry in the VLDB: provide no options.
43
44=item *
45
46Every VLDB entry that mentions a certain file server machine as the site
47for a volume: specify the machine's name as the B<-server> argument.
48
49=item *
50
51Every VLDB entry that mentions a certain partition on any file server
52machine as the site for a volume: specify the partition name as the
53B<-partition> argument.
54
55=item *
56
57Every VLDB entry that mentions a certain partition on a certain file
58server machine as the site for a volume: combine the B<-server> and
59B<-partition> arguments.
60
61=item *
62
63A single VLDB entry: specify a volume name or ID number with the B<-name>
64argument.
65
66=item *
67
68The VLDB entry only for the volumes with locked VLDB entries found at a
69certain site: combine the B<-locked> flag with any of arguments that
70define sites.
71
72=back
73
74=head1 OPTIONS
75
76=over 4
77
78=item B<-name> <I<volume name or ID>>
79
80Specifies either the complete name or volume ID number of a volume of any
81of the three types.
82
83=item B<-server> <I<server name>>
84
85Identifies the file server machine listed as a site in each VLDB entry to
86display. Provide the machine's IP address or its host name (either fully
87qualified or using an unambiguous abbreviation). For details, see
88L<vos(1)>.
89
90This argument can be combined with the B<-partition> argument, the
91B<-locked> flag, or both.
92
93=item B<-partition> <I<partition name>>
94
95Identifies the partition (on the file server machine specified by the
96B<-server> argument) listed as a site in each VLDB entry to
97display. Provide the partition's complete name with preceding slash (for
98example, C</vicepa>) or use one of the three acceptable abbreviated
99forms. For details, see L<vos(1)>.
100
101This argument can be combined with the B<-server> argument, the B<-locked>
102flag, or both.
103
104=item B<-locked>
105
106Displays only locked VLDB entries. This flag can be combined with the
107B<-server> argument, the B<-partition> argument, or both.
108
109=item B<-quiet>
110
111Suppresses the lines that summarize the number of volumes listed and their
112status, which otherwise appear at the beginning and end of the output when
113the output includes more than one volume.
114
115=item B<-nosort>
116
117Suppresses the default sorting of volume entries alphabetically by volume
118name.
119
120=include fragments/vos-common.pod
121
122=back
123
124=head1 OUTPUT
125
126If the output includes more than one VLDB entry, by default the first line
127reports which file server machine, partition, or both, houses the
128volumes. The final line of output reports the total number of entries
129displayed. Including the B<-quiet> flag suppresses these lines.
130
131By default, volumes are sorted alphabetically by volume name. Including
132the B<-nosort> flag skips the sorting step, which can speed up the
133production of output if there are a large number of entries.
134
135The VLDB entry for each volume includes the following information:
136
137=over 4
138
139=item *
140
141The base (read/write) volume name. The read-only and backup versions have
142the same name with a C<.readonly> and C<.backup> extension, respectively.
143
144=item *
145
146The volume ID numbers allocated to the versions of the volume that
147actually exist, in fields labeled C<RWrite> for the read/write, C<ROnly>
148for the read-only, C<Backup> for the backup, and C<RClone> for the
149ReleaseClone. (If a field does not appear, the corresponding version of
150the volume does not exist.) The appearance of the C<RClone> field normally
151indicates that a release operation did not complete successfully; the
152C<Old release> and C<New release> flags often also appear on one or more
153of the site definition lines described just following.
154
155=item *
156
157The number of sites that house a read/write or read-only copy of the
158volume, following the string C<< number of sites -> >>.
159
160=item *
161
162A line for each site that houses a read/write or read-only copy of the
163volume, specifying the file server machine, partition, and type of volume
164(C<RW> for read/write or C<RO> for read-only). If a backup version exists,
165it is understood to share the read/write site. Several flags can appear
166with a site definition:
167
168=over 4
169
170=item Not released
171
172Indicates that the vos release command has not been issued since the B<vos
173addsite> command was used to define the read-only site.
174
175=item Old release
176
177Indicates that a vos release command did not complete successfully,
178leaving the previous, obsolete version of the volume at this site.
179
180=item New release
181
182Indicates that a vos release command did not complete successfully, but
183that this site did receive the correct new version of the volume.
184
185=back
186
187=item *
188
189If the VLDB entry is locked, the string C<Volume is currently LOCKED>, as
190well as (in OpenAFS 1.5.75 and later) one or more of the following strings:
191
192=over 4
193
194=item Volume is locked for a move operation
195
196Indicates that the volume was locked due to a B<vos move> or a B<vos
197convertROtoRW> command.
198
199=item Volume is locked for a release operation
200
201Indicates that the volume was locked due to a B<vos release> command.
202
203=item Volume is locked for a backup operation
204
205Indicates that the volume was locked due to a B<vos backup> command.
206
207=item Volume is locked for a delete/misc operation
208
209Indicates that the volume was locked due to a B<vos delentry>, B<vos
210addsite>, B<vos remsite>, B<vos changeloc>, B<vos syncvldb>, B<vos
211syncserv>, B<vos rename>, or B<vos lock> command.
212
213=item Volume is locked for a dump/restore operation
214
215Indicates that the volume was locked due to a B<vos dump> or B<vos restore>
216command.
217
218=back
219
220=back
221
222For further discussion of the C<New release> and C<Old release> flags, see
223L<vos_release(1)>.
224
225=head1 EXAMPLES
226
227The following command displays VLDB information for the Example Corporation
228volume called C<usr>, which has two read-only replication sites:
229
230 % vos listvldb -name usr
231 usr
232 RWrite: 5360870981 ROnly: 536870982 Backup: 536870983
233 number of sites -> 3
234 server fs1.example.com partition /vicepa RO Site
235 server fs3.example.com partition /vicepa RO Site
236 server fs2.example.com partition /vicepb RW Site
237
238The following example shows entries for two of the volumes that reside on
239the file server machine C<fs4.example.com>. The first VLDB entry is currently
240locked. There are 508 entries that mention the machine as a volume site.
241
242 % vos listvldb -server fs4.example.com
243 VLDB entries for server fs4.example.com
244 . . . .
245 . . . .
246 user.smith
247 RWrite: 278541326 ROnly: 278541327 Backup: 278542328
248 number of sites -> 1
249 server fs4.example.com partition /vicepg RW Site
250 Volume is currently LOCKED
251 user.terry
252 RWrite 354287190 ROnly 354287191 Backup 354287192
253 number of sites -> 1
254 server fs4.example.com partition /vicepc RW Site
255 . . . .
256 . . . .
257 Total entries: 508
258
259=head1 PRIVILEGE REQUIRED
260
261None
262
263=head1 SEE ALSO
264
265L<vos(1)>,
266L<vos_examine(1)>,
267L<vos_listvol(1)>,
268L<vos_lock(1)>,
269L<vos_unlock(1)>,
270L<vos_unlockvldb(1)>
271
272=head1 COPYRIGHT
273
274IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
275
276This documentation is covered by the IBM Public License Version 1.0. It was
277converted from HTML to POD by software written by Chas Williams and Russ
278Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.