VOS_ADDSITE(1) | AFS Command Reference | VOS_ADDSITE(1) |
vos_addsite - Adds a read-only site definition to a volume's VLDB entry
vos addsite
-server <machine name for new site>
-partition <partition name for new site>
-id <volume name or ID>
[-roid <readonly volume name or ID>]
[-valid] [-cell <cell name>]
[-noauth] [-localauth]
[-verbose] [-encrypt] [-noresolve]
[-config <config directory>]
[-help]
vos ad
-s <machine name for new site>
-p <partition name for new site>
-i <volume name or ID>
[-r <readonly volume name or ID>]
[-va] [-c <cell name>] >>> [-noa]
[-l]
[-ve] [-e] [-nor]
[-co <config directory>]
[-h]
The vos addsite command defines a new read-only site (partition on a file server machine, specified by the -server and -partition arguments) in the Volume Location Database (VLDB) entry of the read/write volume named by the -id argument. When the vos release command is next issued against the read/write volume, a read-only copy of it is distributed to all of the read-only sites, including the newly defined one.
A volume's VLDB entry accommodates a maximum number of 16 site definitions. The site housing the read/write and backup versions of the volume counts as one site, the backup snapshot counts as one site, and one site should be reserved for a transient clone for volume moves and similar operations. Each read-only site counts as an additional site (even the read-only site defined on the same file server machine and partition as the read/write site counts as a separate site). The limit in the VLDB entry effectively determines the maximum number of copies of the volume that are available to AFS clients.
Attempts to create additional sites by using this command fail with an error.
If this is not specified and the source read/write volume does not already have a readonly volume ID, a volume ID for the readonly volume will be allocated for it when the vos release command is run.
The automatically allocated readonly volume IDs should be fine for almost all cases, so you should almost never need to specify them explicitly. This option is available in OpenAFS versions 1.5.61 or later.
The following example, appropriate in the Example Organization cell, defines a read-only site for the cell's "root.afs" volume.
% vos addsite -server sv7.example.org -partition /vicepb -id root.afs
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".
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.
2022-12-22 | OpenAFS |