logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

vldb_check - Checks the integrity of the VLDB

Cautions

       The results can be unpredictable if the Volume Location (VL) Server makes changes to the VLDB while this
       command is running. Use the bosshutdown command to shutdown the local vlserver process before running
       this command, or before creating a second copy of the vldb.DB0 file (with a different name) on which to
       run the command.

Description

       The vldb_check command checks the integrity of the Volume Location Database (VLDB), reporting any errors
       or corruption it finds.  If there are problems, do not issue any vos commands until the database is
       repaired.

Name

       vldb_check - Checks the integrity of the VLDB

Options

-database <vldbfile>
           Names  the  VLDB  (copy  of  the vldb.DB0 file) to check. If the current working directory is not the
           location of the file, provide a pathname, either full or relative to the current working directory.

       -uheader
           Displays information which Ubik maintains in the database's header.

       -vheader
           Displays information which the VL Server maintains in the database's header.

       -servers <authenticationservers>+
           Outputs the server entries from the VLDB, which list the IP addresses registered for each file server
           machine in the cell.

       -entries
           Outputs every volume entry in the database. The information includes the volume's name and the volume
           ID number for each of its versions.

       -quiet
           Blocks output from going to stdout. Output to stderr is not blocked. Cannot be  used  with  -verbose,
           -uheader, -servers or -entries.

       -verbose
           Reports  additional  information about the database, including the number of entries for each type of
           volume. Cannot be used with -quiet.

       -fix
           Try to fix errors in the database. If this option is given, vldb_check will open the  given  database
           file  read-write,  and  will update the database file in-place. It is recommended that you backup the
           database file before running with this option, in case vldb_check removes data in order  to  fix  the
           database.

       -help
           Prints the online help for this command. All other valid options are ignored.

Output

       If  there are errors in the database, the output always reports them on the standard error stream. If any
       options other than -database or -help are provided, the output written  to  the  standard  output  stream
       includes  additional  information  as described for each option in "OPTIONS".  The output is intended for
       debugging purposes and is meaningful to someone familiar with the internal structure of the VLDB.

       The -quiet option can be used to suppress the standard output stream so that the command can be used more
       easily inside scripts.

       The command exits with one of the following completion codes:

       0: No errors or warnings have been encountered.  1: One or more warnings encountered.   2:  One  or  more
       warnings  and/or  errors  encountered.   4: A fatal or internal error has occurred and the program cannot
       proceed.

Privilege Required

       The issuer must be logged in as the local superuser "root".

See Also

vldb.DB0(5), bos_shutdown(8), vlserver(8)

Synopsis

vldb_check-database <vldbfile> [-uheader] [-vheader]
           [-servers] [-entries] [-quiet | -verbose] [-fix]
           [-help]

       vldb_check-d <vldbfile> [-u] [-vh] [-s] [-e]
           [-ve] [-f] [-h]

See Also