VOS_EXAMINE(1) AFS Command Reference VOS_EXAMINE(1)

vos_examine - Shows volume header and VLDB entry information for a volume

vos examine -id <volume name or ID> [-extended]
[-format] [-cell <cell name>]
[-noauth] [-localauth] [-verbose]
[-encrypt] [-noresolve]
[-config <config directory>]
[-help]

vos e -i <volume name or ID> [-ex] [-f]
[-c <cell name>]
[-noa] [-l] [-v] [-e] [-nor]
[-co <config directory>]
[-h]

vos volinfo -id <volume name or ID> [-extended]
[-format] [-cell <cell name>]
[-noauth] [-localauth] [-verbose]
[-encrypt] [-noresolve]
[-config <config directory>]
[-help]

vos v -i <volume name or ID> [-ex] [-f]
[-c <cell name>]
[-noa] [-l] [-v] [-e] [-nor]
[-co <config directory>]
[-h]

The vos examine command formats and displays information from the Volume Location Database (VLDB) entry and the volume header of the volume specified by the -id argument.

To display the volume header only, use the vos listvol command. To display information from the VLDB only, use the vos listvldb command.

Currently, the maximum quota for a volume is 2 terabytes (2^41 bytes). Note that this only affects the volume's quota; a volume may grow much larger if the volume quota is disabled. However, volumes over 2 terabytes in size may be impractical to move, and may have their size incorrectly reported by some tools, such as fs_listquota(1).

Specifies either the complete name or volume ID number of the volume, which can be read/write, read-only, or backup.
Displays statistics about read and write operations on files and directories in the volume.
Shows information in a format suitable for machine parsing.
Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see vos(1).
Assigns the unprivileged identity "anonymous" to the issuer. Do not combine this flag with the -localauth flag. For more details, see vos(1).
Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. The vos command interpreter presents it to the Volume Server and Volume Location Server during mutual authentication. Do not combine this flag with the -cell argument or -noauth flag. For more details, see vos(1).
Produces on the standard output stream a detailed trace of the command's execution. If this argument is omitted, only warnings and error messages appear.
Encrypts the command so that the operation's results are not transmitted across the network in clear text. This option is available in OpenAFS versions 1.4.11 or later and 1.5.60 or later.
Shows all servers as IP addresses instead of the DNS name. This is very useful when the server address is registered as 127.0.0.1 or when dealing with multi-homed servers. This option is available in OpenAFS versions 1.4.8 or later and 1.5.35 or later.
Set the location of the configuration directory to be used. This defaults to /etc/openafs, except if -localauth is specified, in which case the default is /etc/openafs/server. This option allows the use of alternative configuration locations for testing purposes.
Prints the online help for this command. All other valid options are ignored.

The first seven lines of the output show information from the volume header and the remaining lines come from the VLDB. Each item in the following list corresponds to a line of output derived from the volume header.

Basic information about the specified volume (displayed on a single line):
  • Name
  • Volume ID number
  • Type (the flag is "RW" for read/write, "RO" for read-only, "BK" for backup)
  • Size in kilobytes (1024 equals a megabyte)
  • Number of files in the volume, if the -extended flag is provided
  • Status on the file server machine, which is one of the following:
The volume is completely accessible to Cache Managers.
The volume is not accessible to Cache Managers, but does not seem to be corrupted. This status appears while a volume is being dumped, for example.
The volume is not accessible to Cache Managers, because it seems to be corrupted. Use the bos salvage or salvager command to repair the corruption.
  • 12:00 a.m. on the day the command is issued
  • The last time the volume changed location

When the -extended flag is included, two tables appear next:

If the following message appears instead of the previously listed information, it indicates that a volume is not accessible to Cache Managers or the vos command interpreter, for example because a clone is being created.

   **** Volume <volume_ID> is busy ****

If the following message appears instead of the previously listed information, it indicates that the File Server is unable to attach the volume, perhaps because it is seriously corrupted. The FileLog and VolserLog log files in the /var/log/openafs directory on the file server machine possibly provide additional information; use the bos getlog command to display them.

   **** Could not attach volume <volume_ID> ****

Following a blank line, information from the VLDB entry appears. Each item in this list corresponds to a separate line in the output:

Indicates that the vos release command has not been issued since the vos addsite command was used to define the read-only site.
Indicates that a vos release command did not complete successfully, leaving the previous, obsolete version of the volume at this site.
Indicates that a vos release command did not complete successfully, but that this site did receive the correct new version of the volume.
If the VLDB entry is locked, the string "Volume is currently LOCKED", as well as (in OpenAFS 1.5.75 and later) one or more of the following strings:
Indicates that the volume was locked due to a vos move or a vos convertROtoRW command.
Indicates that the volume was locked due to a vos release command.
Indicates that the volume was locked due to a vos backup command.
Indicates that the volume was locked due to a vos delentry, vos addsite, vos remsite, vos changeloc, vos syncvldb, vos syncserv, vos rename, or vos lock command.
Indicates that the volume was locked due to a vos dump or vos restore command.

For further discussion of the "New release" and "Old release" flags, see vos_release(1).

The following example shows output for the Example Corporation volume called "usr" with two read-only replication sites (this volume is mounted at the /afs/example.com/usr directory). For the sake of illustration, the output shows the volume as locked.

   % vos examine usr
   usr                           536870981 RW   3459 K On-line
        fs2.example.com /vicepb
        RWrite 5360870981   ROnly 536870982   Backup 536870983
        MaxQuota      40000 K
        Creation    Mon Jun 12 15:22:06 1989
        Copy        Mon Jun 12 15:22:06 1989
        Last Update Fri Jun 16 09:34:35 1989
        5719 accesses in the past day (i.e., vnode references)
        RWrite: 5360870981   ROnly: 536870982   Backup: 536870983
        number of sites -> 3
           server fs1.example.com partition /vicepa RO Site
           server fs3.example.com partition /vicepa RO Site
           server fs2.example.com partition /vicepb RW Site
        Volume is currently LOCKED

The following example shows the output for the volume "user.terry" using the -extended flag. The volume has no read-only replication sites.

   % vos examine -id user.terry -extended
   user.terry         354287190 RW    2302 K used 119 files On-line
       fs4.example.com /vicepc
       RWrite 354287190 ROnly          0 Backup 354287192
       MaxQuota       5000 K
       Creation    Wed Nov 25 17:38:57 1992
       Copy        Wed Nov 25 17:38:57 1992
       Last Update Tue Dec 15 10:46:20 1992
       598 accesses in the past day (i.e., vnode references)
                         Raw Read/Write Stats
             |-------------------------------------------|
             |    Same Network     |    Diff Network     |
             |----------|----------|----------|----------|
             |  Total   |   Auth   |   Total  |   Auth   |
             |----------|----------|----------|----------|
   Reads     |       55 |       55 |       38 |       38 |
   Writes    |       95 |       95 |        0 |        0 |
             |-------------------------------------------|
                      Writes Affecting Authorship
             |-------------------------------------------|
             |   File Authorship   | Directory Authorship|
             |----------|----------|----------|----------|
             |   Same   |   Diff   |    Same  |   Diff   |
             |----------|----------|----------|----------|
   0-60 sec  |       38 |        0 |       21 |        1 |
   1-10 min  |        2 |        0 |        7 |        0 |
   10min-1hr |        0 |        0 |        1 |        0 |
   1hr-1day  |        1 |        0 |        5 |        1 |
   1day-1wk  |        0 |        0 |        0 |        0 |
   > 1wk     |        0 |        0 |        0 |        0 |
             |-------------------------------------------|
       RWrite: 354287190    Backup: 354287192
       number of sites -> 1
          server fs4.example.com partition /vicepc RW Site

None

backup_diskrestore(8), backup_volrestore(8), bos_getlog(8), bos_salvage(8), salvager(8), vos(1), vos_listvol(1), vos_listvldb(1), vos_release(1), vos_restore(1)

IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.

This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.

2024-12-16 OpenAFS