vos_zap - Removes a volume from its site without contacting the Location Service


vos zap -server <machine name> -partition <partition name> -id <volume ID> [-force] [-backup] [-cell <cell name>] [-noauth] [-auth] [-localauth] [-encrypt [<yes|no>]] [-verbose] [-noresolve] [-config <configuration file>] [-help]


The vos zap command removes the volume with the specified volume ID from the site defined by the -server and -partition arguments, without notifying the Location Service. If removing the volume can result in a Location Service inconsistency, a warning message is displayed.

The -force flag removes a volume even if it cannot be "attached" (brought online), which can happen either because the volume is extremely damaged or because the salvager(8) functioned abnormally. Without this flag, this command cannot remove volumes that are not attachable. See also "CAUTIONS".

To remove the specified read/write volume's backup version at the same time, include the -backup flag.


Do not use this command as the standard way to remove a volume, as it is likely to leave the Location Service out of sync with the volumes on the File Servers. Use the vos_remove(1) command instead.

This command is useful in situations where it is important to delete the volume, but Location Service is unreachable. The issuer can update the Location Service later with the vos_delentry(1) command, or it is removed automatically when the vos_syncfs(1) and vos_syncloc(1) commands are run.

Do not use the -force flag if the volume is online, but only when attempts to remove the volume with the vos_remove(1) or the vos zap command have failed, or the volume definitely cannot be attached. After using the -force flag, make sure that the Location Service is updated by issuing the vos_delentry(1) command (if necessary).

Adding the -force flag makes the command take considerably longer -- about as long as a salvage of the relevant partition -- since all inodes on the partition must be examined for association with the volume being zapped.


-server <server name>

Identifies the File Server from which to remove the volume. Provide a fully qualified host name, an IP address or UUID as reported by vos_listfs(1).

-partition <partition name>

Identifies the partition (on the File Server specified by the -server argument) from which to remove the volume. 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).

-id <volume ID>

Specifies the volume ID number of the volume to remove, which can be of any of the three types. The volume name can not be used as the Location Service will not be contacted.


Removes the volume even though it cannot be attached (brought online). Use only after the failure of previous attempts to remove the volume by using the vos_remove(1) command or the vos zap command without this flag.


Removes the backup version of the read/write volume specified by the -id argument. Do not use this flag if the -id argument identifies a read-only or backup volume.

-cell <cell name>

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


Obtains an authentication token using the server encryption key with the highest key version number in the local /etc/yfs/server/KeyFileExt file. The resulting token never expires and has Super User privileges. Do not combine this flag with the -cell argument or -noauth flag. For more details, see vos(1).


Use the calling user's tokens from the kernel or as obtained using the active Kerberos ticket granting ticket to communicate with the Volume Server and Location Service. This is the default if neither -localauth nor -noauth is given.

Since this option is the default, it is usually not useful for running single command line operations. However, it can be useful when running commands via vos_interactive(1) or vos_source(1), since otherwise it would be impossible to switch from, for example, -localauth back to using regular tokens during a bulk operation.


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 [<yes|no>]

Enables or disables encrytion for the command so that the operation's results are not transmitted across the network in clear text.


Shows all servers as IP addresses instead of the reverse DNS lookup hostname. -noresolve useful when troubleshooting no such volume and volume moved errors.

-config <configuration file>

Set the location of the configuration file to be used. The default file is /etc/yfs/yfs-client.conf.


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


The following example removes the volume with volume ID 536870988 from the /vicepf partition of the file server machine, without updating the Location Service.

   % vos zap -server -partition f -id 536870988


The issuer must be listed in the /etc/yfs/server/UserListExt file on the File Server specified by the -server argument and on each Location Server. If the -localauth flag is included, the issuer must instead be logged on to a server with an account capable of reading the /etc/yfs/server/KeyFileExt file.


vos(1), vos_delentry(1), vos_remove(1)


IBM Corporation 2000. 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.


"AFS" is a registered mark of International Business Machines Corporation, used under license. (USPTO Registration 1598389)

"OpenAFS" is a registered mark of International Business Machines Corporation. (USPTO Registration 4577045)

The "AuriStor" name, log 'S' brand mark, and icon are registered marks of AuriStor, Inc. (USPTO Registrations 4849419, 4849421, and 4928460) (EUIPO Registration 015539653).

"Your File System" is a registered mark of AuriStor, Inc. (USPTO Registrations 4801402 and 4849418).

"YFS" and "AuriStor File System" are trademarks of AuriStor, Inc.