Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod1 / vos_addsite.pod.in
CommitLineData
805e021f
CE
1=head1 NAME
2
3vos_addsite - Adds a read-only site definition to a volume's VLDB entry
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10B<vos addsite> S<<< B<-server> <I<machine name for new site>> >>>
11 S<<< B<-partition> <I<partition name for new site>> >>>
12 S<<< B<-id> <I<volume name or ID>> >>>
13 S<<< [B<-roid> <I<readonly volume name or ID>>] >>>
14 [B<-valid>] S<<< [B<-cell> <I<cell name>>] >>>
15 [B<-noauth>] [B<-localauth>]
16 [B<-verbose>] [B<-encrypt>] [B<-noresolve>]
17 S<<< [B<-config> <I<config directory>>] >>>
18 [B<-help>]
19
20B<vos ad> S<<< B<-s> <I<machine name for new site>> >>>
21 S<<< B<-p> <I<partition name for new site>> >>>
22 S<<< B<-i> <I<volume name or ID>> >>>
23 S<<< [B<-r> <I<readonly volume name or ID>>] >>>
24 [B<-va>] [B<-c> <I<cell name>>] >>> [B<-noa>] [B<-l>]
25 [B<-ve>] [B<-e>] [B<-nor>]
26 S<<< [B<-co> <I<config directory>>] >>>
27 [B<-h>]
28
29=for html
30</div>
31
32=head1 DESCRIPTION
33
34The B<vos addsite> command defines a new read-only site (partition on a
35file server machine, specified by the B<-server> and B<-partition>
36arguments) in the Volume Location Database (VLDB) entry of the read/write
37volume named by the B<-id> argument. When the B<vos release> command is
38next issued against the read/write volume, a read-only copy of it is
39distributed to all of the read-only sites, including the newly defined
40one.
41
42=head1 CAUTIONS
43
44A volume's VLDB entry accommodates a maximum number of 16 site
45definitions. The site housing the read/write and backup versions of the
46volume counts as one site, the backup snapshot counts as one site, and one
47site should be reserved for a transient clone for volume moves and similar
48operations. Each read-only site counts as an additional site (even the
49read-only site defined on the same file server machine and partition as
50the read/write site counts as a separate site). The limit in the VLDB
51entry effectively determines the maximum number of copies of the volume
52that are available to AFS clients.
53
54Attempts to create additional sites by using this command fail with an
55error.
56
57=head1 OPTIONS
58
59=over 4
60
61=item B<-server> <I<machine name>>
62
63Identifies the file server machine where the read-only volume is to
64reside. Provide the machine's IP address or its host name (either fully
65qualified or using an unambiguous abbreviation). For details, see
66L<vos(1)>.
67
68=item B<-partition> <I<partition name>>
69
70Identifies the partition where the read-only volume is to reside, on the
71file server machine named by the B<-server> argument. Provide the
72partition's complete name with preceding slash (for example, C</vicepa>)
73or use one of the three acceptable abbreviated forms. For details, see
74L<vos(1)>.
75
76=item B<-id> <I<volume name or ID>>
77
78Specifies either the complete name or volume ID number of the read/write
79source volume.
80
81=item B<-roid> <I<readonly volume name or ID>>
82
83Specifies either the complete name or volume ID number of the readonly
84volume. This will only be honored if the source read/write volume does not
85already have a readonly volume ID associated with it. If the source
86read/write volume already has a readonly volume ID, the specified ID will
87be ignored, and a warning will be printed.
88
89If this is not specified and the source read/write volume does not already
90have a readonly volume ID, a volume ID for the readonly volume will be
91allocated for it when the B<vos release> command is run.
92
93The automatically allocated readonly volume IDs should be fine for almost
94all cases, so you should almost never need to specify them explicitly.
95This option is available in OpenAFS versions 1.5.61 or later.
96
97=item B<-valid>
98
99Marks the site as up-to-date in the VLDB. You should only do this if the
100new site already has a current readonly replica of the volume, but for
101some reason it is not in the VLDB as a replica site. This is useful when
102an existing read-only volume is dumped and restored with the B<-readonly>
103flag at the new site. This option is available in OpenAFS clients 1.4.7 or
104later and 1.5.31 or later. This option can be used with OpenAFS server
105versions later than 1.4.1 or 1.5.0.
106
107=include fragments/vos-common.pod
108
109=back
110
111=head1 EXAMPLES
112
113The following example, appropriate in the Example Organization cell, defines a
114read-only site for the cell's C<root.afs> volume.
115
116 % vos addsite -server sv7.example.org -partition /vicepb -id root.afs
117
118=head1 PRIVILEGE REQUIRED
119
120The issuer must be listed in the F</usr/afs/etc/UserList> file on the
121machine specified with the B<-server> argument and on each database server
122machine. If the B<-localauth> flag is included, the issuer must instead be
123logged on to a server machine as the local superuser C<root>.
124
125=head1 SEE ALSO
126
127L<vos(1)>,
128L<vos_examine(1)>,
129L<vos_release(1)>
130
131=head1 COPYRIGHT
132
133IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
134
135This documentation is covered by the IBM Public License Version 1.0. It was
136converted from HTML to POD by software written by Chas Williams and Russ
137Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.