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

vos_delentry - Removes a volume entry from the VLDB.

Cautions

       Do not use this command to remove a volume in normal circumstances; it does not remove a volume from  the
       file  server  machine, and so is likely to make the VLDB inconsistent with state of the volumes on server
       machines. Use the vosremove command to remove both the volume and its VLDB entry.

Description

       The vosdelentry command removes the Volume Location Database (VLDB) entry for each specified volume. A
       specified volume can be any of the three types (read/write, read-only, or backup), but the entire entry
       is removed no matter which type is provided. The command has no effect on the actual volumes on file
       server machines, if they exist.

       This command is useful if a volume removal operation did not update the VLDB (perhaps because the voszap
       command was used), but the system administrator does not feel it is necessary to use the vossyncserv and
       vossyncvldb commands to synchronize an entire file server machine.

       To remove the VLDB entry for a single volume, use the -id argument. To remove groups of volumes, combine
       the -prefix, -server, and -partition arguments. The following list describes how to remove the VLDB entry
       for the indicated group of volumes:

       •   For  every volume whose name begins with a certain character string (for example, "sys." or "user."):
           use the -prefix argument.

       •   Every volume for which the VLDB lists a site on a certain  file  server  machine:  specify  the  file
           server name with the -server argument.

       •   Every  volume  for  which the VLDB lists a site on a partition of the same name (for instance, on the
           /vicepa partition on any file server  machine):  specify  the  partition  name  with  the  -partition
           argument.

       •   Every  volume  for  which  the  VLDB  lists a site one a specific partition of a file server machine:
           specify both the -server and -partition arguments.

       •   Every volume whose name begins with a certain prefix and for which the VLDB lists a site  on  a  file
           server  machine:  combine  the  -prefix  and -server arguments. Combine the -prefix argument with the
           -partition argument, or both the -server and -partition arguments, to remove a more specific group of
           volumes.

Examples

       The following command removes the VLDB entry for the volume "user.temp".

          % vos delentry user.temp

       The following command removes the VLDB entry for every volume whose name begins with  the  string  "test"
       and for which the VLDB lists a site on the file server machine "fs3.example.com".

          % vos delentry -prefix test -server fs3.example.com

Name

       vos_delentry - Removes a volume entry from the VLDB.

Options

-id <volumenameorID>+
           Specifies the complete name or the volume ID number of each volume  for  which  to  remove  the  VLDB
           entry.  The  entire  entry  is  removed,  regardless  of whether the read/write, read-only, or backup
           version is indicated.  Provide this argument  or  some  combination  of  the  -prefix,  -server,  and
           -partition arguments.

       -prefix <prefixofvolumeentry
           Specifies  a  character  string of any length; the VLDB entry for a volume whose name begins with the
           string is removed. Include field separators (such as periods) if appropriate. Combine  this  argument
           with the -server argument, -partition argument, or both.

       -server <servername>
           Identifies  a file server machine; if a volume's VLDB entry lists a site on the machine, the entry is
           removed. Provide the machine's IP address or its host  name  (either  fully  qualified  or  using  an
           unambiguous abbreviation). For details, see vos(1).

           Combine this argument with the -prefix argument, the -partition argument, or both.

       -partition <partitionname>
           Identifies a partition; if a volume's VLDB entry lists a site on the partition, the entry is removed.
           Provide  the  partition's complete name with preceding slash (for example, /vicepa) or use one of the
           three acceptable abbreviated forms. For details, see vos(1).

           Combine this argument with the -prefix argument, the -server argument, or both.

       -dryrun
           Show the actions which would be taken, but do not make changes.

       -cell <cellname>
           Names the cell in which to run the command. Do not combine this argument with  the  -localauth  flag.
           For more details, see vos(1).

       -noauth
           Assigns  the  unprivileged  identity  "anonymous"  to  the  issuer. Do not combine this flag with the
           -localauth flag. For more details, see vos(1).

       -localauth
           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).

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

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

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

       -config <configurationdirectory>
           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.

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

Output

       The  following  message  confirms  the  success  of  the command by indicating how many VLDB entries were
       removed.

          Deleted <number> VLDB entries

Privilege Required

       The  issuer  must  be  listed  in the /etc/openafs/server/UserList file on the machine specified with the
       -server argument and on each database server machine. If the -localauth flag is included, the issuer must
       instead be logged on to a server machine as the local superuser "root".

See Also

vos(1), vos_remove(1), vos_syncserv(1), vos_syncvldb(1), vos_zap(1)

Synopsis

vosdelentry [-id <volumenameorID>+]
          [-prefix <prefixofvolumewhoseVLDBentryistobedeleted>]
           [-server <machinename>]
           [-partition <partitionname>]
           [-cell <cellname>] [-noauth] [-localauth]
           [-dryrun] [-verbose] [-encrypt] [-noresolve]
           [-config <configdirectory>]
           [-help]

       vosde [-i <volumenameorID>+]
           [-pr <prefixofvolumewhoseVLDBentryistobedeleted>]
           [-s <machinename>] [-pa <partitionname>]
           [-c <cellname>] [-noa] [-l]
           [-d] [-v] [-e] [-nor]
           [-co <configdirectory>]
           [-h]

See Also