Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod8 / bos_addhost.pod
CommitLineData
805e021f
CE
1=head1 NAME
2
3bos_addhost - Adds a database server machine to the CellServDB file
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10B<bos addhost> S<<< B<-server> <I<machine name>> >>> S<<< B<-host> <I<host name>>+ >>>
11 S<<< [B<-cell> <I<cell name>>] >>> [B<-clone>] [B<-noauth>] [B<-localauth>] [B<-help>]
12
13B<bos addh> S<<< B<-s> <I<machine name>> >>> S<<< B<-ho> <I<host name>>+ >>>
14 S<<< [B<-ce> <I<cell name>>] >>> [B<-cl>] [B<-n>] [B<-l>] [B<-he>]
15
16=for html
17</div>
18
19=head1 DESCRIPTION
20
21The B<bos addhost> command adds an entry for each database server machine
22specified with the B<-host> argument to the F</usr/afs/etc/CellServDB>
23file on the machine named by the B<-server> argument.
24
25=head1 CAUTIONS
26
27After executing this command (and waiting for the Update Server to
28propagate the changes, if it is used), restart the database server
29processes on all database server machines to force election of a quorum
30that includes the new set of machines listed in the
31F</usr/afs/etc/CellServDB> file. The I<OpenAFS Quick Start Guide> explains
32in more detail how to add and remove database server machines.
33
34It is best to maintain a one-to-one mapping between hostnames and IP
35addresses on a multihomed database server machine (this is actually the
36conventional configuration for any AFS machine). The BOS Server uses the
37gethostbyname() routine to obtain the IP address associated with the
38hostname specified by the B<-host> argument. If there is more than one
39address, the BOS Server records in the F<CellServDB> entry the one that
40appears first in the list of addresses returned by the routine. The
41routine possibly returns addresses in a different order on different
42machines, which can create inconsistency.
43
44=head1 OPTIONS
45
46=over 4
47
48=item B<-server> <I<machine name>>
49
50Identifies the server machine on which to change the
51F</usr/afs/etc/CellServDB> file. Identify the machine by IP address or its
52host name (either fully-qualified or abbreviated unambiguously). For
53details, see L<bos(8)>.
54
55In cells that use the Update Server to distribute the contents of the
56F</usr/afs/etc> directory, it is conventional to specify only the system
57control machine as a value for the B<-server> argument. Otherwise, repeat
58the command for each file server machine. For further discussion, see
59L<bos(8)>.
60
61=item B<-host> <I<host name>>+
62
63Specifies the fully-qualified host name (such as C<db1.example.com>) of each
64database server machine to register in the F<CellServDB> file.
65
66=item B<-cell> <I<cell name>>
67
68Names the cell in which to run the command. Do not combine this
69argument with the B<-localauth> flag. For more details, see L<bos(8)>.
70
71=item B<-clone>
72
73Register the host given by B<-host> as a non-voting clone site, which
74prevents the host from becoming a sync-site. This is an advanced feature
75and should be used with caution.
76
77=item B<-noauth>
78
79Assigns the unprivileged identity C<anonymous> to the issuer. Do not combine
80this flag with the B<-localauth> flag. For more details, see L<bos(8)>.
81
82=item B<-localauth>
83
84Constructs a server ticket using a key from the local
85F</usr/afs/etc/KeyFile> or F</usr/afs/etc/KeyFileExt> file.
86The B<bos> command interpreter presents the
87ticket to the BOS Server during mutual authentication. Do not combine this
88flag with the B<-cell> or B<-noauth> options. For more details, see
89L<bos(8)>.
90
91=item B<-help>
92
93Prints the online help for this command. All other valid options are
94ignored.
95
96=back
97
98=head1 EXAMPLES
99
100The following command adds the database server machines C<db2.example.com> and
101C<db3.example.com> to the F</usr/afs/etc/CellServDB> file on the machine
102C<fs1.example.com> (the system control machine).
103
104 % bos addhost -server fs1.example.com -host db2.example.com db3.example.com
105
106=head1 PRIVILEGE REQUIRED
107
108The issuer must be listed in the F</usr/afs/etc/UserList> file on the
109machine named by the B<-server> argument, or must be logged onto a server
110machine as the local superuser C<root> if the B<-localauth> flag is
111included.
112
113=head1 SEE ALSO
114
115L<CellServDB(5)>,
116L<KeyFile(5)>,
117L<KeyFileExt(5)>,
118L<UserList(5)>,
119L<bos(8)>,
120L<bos_listhosts(8)>,
121L<bos_removehost(8)>
122
123The I<OpenAFS Quick Start Guide> at
124L<http://docs.openafs.org/QuickStartUnix/>.
125
126=head1 COPYRIGHT
127
128IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
129
130This documentation is covered by the IBM Public License Version 1.0. It was
131converted from HTML to POD by software written by Chas Williams and Russ
132Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.