3 vos_examine - Shows volume header and VLDB entry information for a volume
10 B<vos examine> S<<< B<-id> <I<volume name or ID>> >>> [B<-extended>]
11 [B<-format>] S<<< [B<-cell> <I<cell name>>] >>>
12 [B<-noauth>] [B<-localauth>] [B<-verbose>]
13 [B<-encrypt>] [B<-noresolve>]
14 S<<< [B<-config> <I<config directory>>] >>>
17 B<vos e> S<<< B<-i> <I<volume name or ID>> >>> [B<-ex>] [B<-f>]
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>>] >>>
23 B<vos volinfo> S<<< B<-id> <I<volume name or ID>> >>> [B<-extended>]
24 [B<-format>] S<<< [B<-cell> <I<cell name>>] >>>
25 [B<-noauth>] [B<-localauth>] [B<-verbose>]
26 [B<-encrypt>] [B<-noresolve>]
27 S<<< [B<-config> <I<config directory>>] >>>
30 B<vos v> S<<< B<-i> <I<volume name or ID>> >>> [B<-ex>] [B<-f>]
31 S<<< [B<-c> <I<cell name>>] >>>
32 [B<-noa>] [B<-l>] [B<-v>] [B<-e>] [B<-nor>]
33 S<<< [B<-co> <I<config directory>>] >>>
41 The B<vos examine> command formats and displays information from the
42 Volume Location Database (VLDB) entry and the volume header of the volume
43 specified by the B<-id> argument.
45 To display the volume header only, use the B<vos listvol> command. To
46 display information from the VLDB only, use the B<vos listvldb> command.
50 =include fragments/volsize-caution.pod
56 =item B<-id> <I<volume name or ID>>
58 Specifies either the complete name or volume ID number of the volume,
59 which can be read/write, read-only, or backup.
63 Displays statistics about read and write operations on files and
64 directories in the volume.
68 Shows information in a format suitable for machine parsing.
70 =include fragments/vos-common.pod
76 The first seven lines of the output show information from the volume
77 header and the remaining lines come from the VLDB. Each item in the
78 following list corresponds to a line of output derived from the volume
85 Basic information about the specified volume (displayed on a single
100 Type (the flag is C<RW> for read/write, C<RO> for read-only, C<BK> for
105 Size in kilobytes (C<1024> equals a megabyte)
109 Number of files in the volume, if the B<-extended> flag is provided
113 Status on the file server machine, which is one of the following:
119 The volume is completely accessible to Cache Managers.
123 The volume is not accessible to Cache Managers, but does not seem to be
124 corrupted. This status appears while a volume is being dumped, for
127 =item Off-line**needs salvage**
129 The volume is not accessible to Cache Managers, because it seems to be
130 corrupted. Use the B<bos salvage> or B<salvager> command to repair the
139 The file server machine and partition that house the volume, as determined
140 by the command interpreter as the command runs, rather than derived from
141 the VLDB or the volume header.
145 The volume ID numbers associated with the various versions of the volume:
146 read/write (C<RWrite>), read-only (C<ROnly>), backup (C<Backup>), and
147 ReleaseClone (C<RClone>). One of them matches the volume ID number that
148 appears on the first line of the volume's output. If the value in the
149 C<RWrite>, C<ROnly>, or C<Backup> field is C<0> (zero), there is no volume
150 of that type. If there is currently no ReleaseClone, the C<RClone> field
151 does not appear at all.
155 The maximum space quota allotted to the read/write copy of the volume,
156 expressed in kilobyte blocks in the C<MaxQuota> field.
160 The date and time the volume was created, in the C<Creation> field. If the
161 volume has been restored with the B<backup diskrestore>, B<backup
162 volrestore>, or B<vos restore> command, this is the restore time. For a
163 read-only volume, this is the last release time.
167 The date and time this copy of this volume was created, in the C<Copy>
168 field. This is the time when the volume was created on this server and
169 partition. For read-only volumes, it is not updated by a release (unlike
170 the Creation date). The copy date is not stored in volume dumps.
174 The date and time when the contents of the volume last changed, in the
175 C<Last Update> field. For read-only and backup volumes, it matches the
176 timestamp in the C<Creation> field.
180 The number of times the volume has been accessed for a fetch or store
181 operation since the later of the two following times:
187 12:00 a.m. on the day the command is issued
191 The last time the volume changed location
197 When the B<-extended> flag is included, two tables appear next:
203 The table labeled C<Raw Read/Write Stats> contains information on the
204 number of reads (fetches) and writes (stores) made on the specified
209 The table labeled C<Writes Affecting Authorship> contains information on
210 writes made to files and directories in the specified volume.
214 If the following message appears instead of the previously listed
215 information, it indicates that a volume is not accessible to Cache
216 Managers or the B<vos> command interpreter, for example because a clone is
219 **** Volume <volume_ID> is busy ****
221 If the following message appears instead of the previously listed
222 information, it indicates that the File Server is unable to attach the
223 volume, perhaps because it is seriously corrupted. The F<FileLog> and
224 F<VolserLog> log files in the F</usr/afs/logs> directory on the file
225 server machine possibly provide additional information; use the B<bos
226 getlog> command to display them.
228 **** Could not attach volume <volume_ID> ****
230 Following a blank line, information from the VLDB entry appears. Each
231 item in this list corresponds to a separate line in the output:
237 The base (read/write) volume name. The read-only and backup versions have
238 the same name with a C<.readonly> and C<.backup> extension, respectively.
242 The volume ID numbers allocated to the versions of the volume that
243 actually exist, in fields labeled C<RWrite> for the read/write, C<ROnly>
244 for the read-only, C<Backup> for the backup, and C<RClone> for the
245 ReleaseClone. (If a field does not appear, the corresponding version of
246 the volume does not exist.) The appearance of the C<RClone> field normally
247 indicates that a release operation did not complete successfully; the
248 C<Old release> and C<New release> flags often also appear on one or more
249 of the site definition lines described just following.
253 The number of sites that house a read/write or read-only copy of the
254 volume, following the string C<< number of sites -> >>.
258 A line for each site that houses a read/write or read-only copy of the
259 volume, specifying the file server machine, partition, and type of volume
260 (C<RW> for read/write or C<RO> for read-only). If a backup version exists,
261 it is understood to share the read/write site. Several flags can appear
262 with a site definition:
268 Indicates that the vos release command has not been issued since the B<vos
269 addsite> command was used to define the read-only site.
273 Indicates that a vos release command did not complete successfully,
274 leaving the previous, obsolete version of the volume at this site.
278 Indicates that a vos release command did not complete successfully, but
279 that this site did receive the correct new version of the volume.
285 If the VLDB entry is locked, the string C<Volume is currently LOCKED>, as
286 well as (in OpenAFS 1.5.75 and later) one or more of the following strings:
290 =item Volume is locked for a move operation
292 Indicates that the volume was locked due to a B<vos move> or a B<vos
293 convertROtoRW> command.
295 =item Volume is locked for a release operation
297 Indicates that the volume was locked due to a B<vos release> command.
299 =item Volume is locked for a backup operation
301 Indicates that the volume was locked due to a B<vos backup> command.
303 =item Volume is locked for a delete/misc operation
305 Indicates that the volume was locked due to a B<vos delentry>, B<vos
306 addsite>, B<vos remsite>, B<vos changeloc>, B<vos syncvldb>, B<vos
307 syncserv>, B<vos rename>, or B<vos lock> command.
309 =item Volume is locked for a dump/restore operation
311 Indicates that the volume was locked due to a B<vos dump> or B<vos restore>
318 For further discussion of the C<New release> and C<Old release> flags, see
323 The following example shows output for the Example Corporation volume called
324 C<usr> with two read-only replication sites (this volume is mounted at the
325 F</afs/example.com/usr> directory). For the sake of illustration, the output
326 shows the volume as locked.
329 usr 536870981 RW 3459 K On-line
330 fs2.example.com /vicepb
331 RWrite 5360870981 ROnly 536870982 Backup 536870983
333 Creation Mon Jun 12 15:22:06 1989
334 Copy Mon Jun 12 15:22:06 1989
335 Last Update Fri Jun 16 09:34:35 1989
336 5719 accesses in the past day (i.e., vnode references)
337 RWrite: 5360870981 ROnly: 536870982 Backup: 536870983
339 server fs1.example.com partition /vicepa RO Site
340 server fs3.example.com partition /vicepa RO Site
341 server fs2.example.com partition /vicepb RW Site
342 Volume is currently LOCKED
344 The following example shows the output for the volume C<user.terry> using
345 the B<-extended> flag. The volume has no read-only replication sites.
347 % vos examine -id user.terry -extended
348 user.terry 354287190 RW 2302 K used 119 files On-line
349 fs4.example.com /vicepc
350 RWrite 354287190 ROnly 0 Backup 354287192
352 Creation Wed Nov 25 17:38:57 1992
353 Copy Wed Nov 25 17:38:57 1992
354 Last Update Tue Dec 15 10:46:20 1992
355 598 accesses in the past day (i.e., vnode references)
357 |-------------------------------------------|
358 | Same Network | Diff Network |
359 |----------|----------|----------|----------|
360 | Total | Auth | Total | Auth |
361 |----------|----------|----------|----------|
362 Reads | 55 | 55 | 38 | 38 |
363 Writes | 95 | 95 | 0 | 0 |
364 |-------------------------------------------|
365 Writes Affecting Authorship
366 |-------------------------------------------|
367 | File Authorship | Directory Authorship|
368 |----------|----------|----------|----------|
369 | Same | Diff | Same | Diff |
370 |----------|----------|----------|----------|
371 0-60 sec | 38 | 0 | 21 | 1 |
372 1-10 min | 2 | 0 | 7 | 0 |
373 10min-1hr | 0 | 0 | 1 | 0 |
374 1hr-1day | 1 | 0 | 5 | 1 |
375 1day-1wk | 0 | 0 | 0 | 0 |
376 > 1wk | 0 | 0 | 0 | 0 |
377 |-------------------------------------------|
378 RWrite: 354287190 Backup: 354287192
380 server fs4.example.com partition /vicepc RW Site
382 =head1 PRIVILEGE REQUIRED
388 L<backup_diskrestore(8)>,
389 L<backup_volrestore(8)>,
401 IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
403 This documentation is covered by the IBM Public License Version 1.0. It was
404 converted from HTML to POD by software written by Chas Williams and Russ
405 Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.