VLDB_CHECK(8)

πŸ’– VLDB_CHECK(8) πŸ’–

okay bestie, welcome to the AFS Command Reference β€” this is the vldb_check page and honestly it's giving "database detective" energy πŸ•΅οΈβ™€οΈβœ¨

✨ NAME ✨

vldb_check β€” checks the integrity of the VLDB πŸ©ΊπŸ’Ύ


🌸 SYNOPSIS 🌸

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

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

πŸ¦‹ DESCRIPTION πŸ¦‹

So vldb_check literally goes through the Volume Location Database (aka the VLDB) and vibe-checks its integrity, reporting any errors or corruption it stumbles across. πŸ”

⚠️ bestie listen β€” if there ARE problems, do NOT issue any vos commands until the database is repaired. periodt. πŸ›‘

😭 CAUTIONS 😭

ngl, the results can be unpredictable if the Volume Location (VL) Server is making changes to the VLDB while this command is running. messy behavior fr fr πŸ’€

So what you wanna do: use the bos shutdown command to shut down the local vlserver process before you run this command β€” or before you make a second copy of the vldb.DB0 file (with a different name) to run the command on instead. 🫢


πŸ’… OPTIONS πŸ’…

  • -database <vldb file> β€” names the VLDB (a copy of the vldb.DB0 file) you want checked. If your current working directory isn't where the file lives, hand over a pathname β€” full or relative to the current working directory, either works bestie. πŸ“
  • -uheader β€” shows you the info that Ubik keeps in the database's header. πŸ‘‘
  • -vheader β€” shows you the info the VL Server keeps in the database's header. 🌈
  • -servers <authentication servers>+ β€” spits out the server entries from the VLDB, which list the IP addresses registered for each file server machine in the cell. πŸ–₯️✨
  • -entries β€” outputs every single volume entry in the database. The info 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 extra deets about the database, including the number of entries for each type of volume. Cannot be used with -quiet. πŸ—£οΈ
  • -fix β€” tries to fix errors in the database. If you give this option, vldb_check opens the given database file read-write and updates the database file in-place.
🚨 bestie PLS β€” 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. like. it might delete stuff. no cap. πŸ˜­πŸ’€
  • -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 info, as described for each option up in OPTIONS. The output is intended for debugging purposes and is meaningful to someone familiar with the internal structure of the VLDB. πŸ”¬ (iykyk)

The -quiet option can be used to suppress the standard output stream so the command is easier to use inside scripts. πŸ€–βœ¨

The command exits with one of the following completion codes:

  1. 0: No errors or warnings have been encountered. βœ…
  2. 1: One or more warnings encountered. ⚠️
  3. 2: One or more warnings and/or errors encountered. 😬
  4. 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. πŸ‘‘πŸ” (main character energy only, sorry not sorry)


🌈 SEE ALSO 🌈

vldb.DB0(5), bos_shutdown(8), vlserver(8) πŸ’œ


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. 🫢


and that's the whole page bestie!! ✨ this was OpenAFS, dated 2026-07-27, and you absolutely ate that read πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from