Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod1 / vos_changeaddr.pod.in
CommitLineData
805e021f
CE
1=head1 NAME
2
3vos_changeaddr - Changes or removes a file server machine's entry in the VLDB
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10B<vos changeaddr> S<<< B<-oldaddr> <I<original IP address>> >>>
11 S<<< [B<-newaddr> <I<new IP address>>] >>> [B<-remove>] [B<-force>]
12 S<<< [B<-cell> <I<cell name>>] >>> [B<-noauth>] [B<-localauth>]
13 [B<-verbose>] [B<-encrypt>] [B<-noresolve>]
14 S<<< [B<-config> <I<config directory>>] >>>
15 [B<-help>]
16
17B<vos changea> S<<< B<-o> <I<original IP address>> >>>
18 S<<< [B<-ne> <I<new IP address>>] >>> [B<-r>] [B<-f>]
19 S<<< [B<-c> <I<cell name>>] >>>
20 [B<-noa>] [B<-l>] [B<-v>] [B<-e>] [B<-nor>]
21 S<<< [B<-co> <I<config directory>>] >>>
22 [B<-h>]
23
24=for html
25</div>
26
27=head1 DESCRIPTION
28
29The B<vos changeaddr> command removes a server entry from the Volume
30Location Database (VLDB) when the B<-remove> flag is combined with the
31B<-oldaddr> argument. There must be no VLDB entries that list the machine
32as a site for any version of a volume (if necessary, use the B<vos move>
33or B<vos remove> command to move or remove volumes). It is appropriate to
34remove a VLDB server entry when removing the corresponding file server
35machine from service.
36
37To display all VLDB server entries, use the B<vos listaddrs> command.
38
39=head1 CAUTIONS
40
41Combining the command's B<-oldaddr> and B<-newaddr> arguments is no longer
42the appropriate way to change the IP address registered for a file server
43machine. Furthermore, if a machine is multihomed and its server entry
44includes several addresses, then the address specified with the
45B<-newaddr> argument replaces all of the addresses currently listed in the
46server entry that includes the address specified by the B<-oldaddr>
47argument. This effectively makes the machine single-homed with respect to
48AFS operations, which is probably not the desired result.
49
50The recommended method for changing the IP addresses in a server entry is
51instead to restart the C<fs> process group (which includes the File
52Server) after using the utilities provided by the operating system to
53reconfigure the machine's network interfaces. For a description of how the
54File Server constructs and registers a list of its network interfaces in
55the VLDB, see L<sysid(5)>.
56
57If, counter to recommended usage, the command is used to change the IP
58address in a server entry, it does not also change the names of machine
59entries in the Protection Database. Operations fail when they refer to a
60protection group that has an obsolete IP address in it. Use the B<pts
61rename> command to change the names of machine entries that correspond to
62the addresses changed with this command. Changing the address of a
63database server machine also requires updating the client and server
64versions of the F<CellServDB> file on every machine.
65
66=head1 OPTIONS
67
68=over 4
69
70=item B<-oldaddr> <I<original IP address>>
71
72Specifies the IP address currently registered for the file server machine
73in the VLDB server entry. If there are multiple addresses registered for a
74multihomed machine, use any of them to identify the server entry.
75
76=item B<-newaddr> <I<new IP address>>
77
78Specifies the new IP address that replaces all currently registered
79addresses.
80
81Unless the B<-force> option is given, B<vos changeaddr> will refuse to change
82addresses when the address given in B<-oldaddr> is registered with a multihomed
83server entry in the VLDB. See L</CAUTIONS>.
84
85=item B<-remove>
86
87Removes from the VLDB the server entry that includes the address specified
88by the B<-oldaddr> argument.
89
90=item B<-force>
91
92Overrides the multihomed server entry check when the B<-oldaddr> and
93B<-newaddr> options are combined. The B<-force> flag is provided for historical
94compatibility and is not recommended.
95
96=include fragments/vos-common.pod
97
98=back
99
100=head1 EXAMPLES
101
102The following command removes the VLDB server entry that includes the IP
103address C<192.12.107.214>.
104
105 % vos changeaddr -oldaddr 192.12.107.214 -remove
106
107=head1 PRIVILEGE REQUIRED
108
109Issuer must be listed in the F</usr/afs/etc/UserList> file on the machine
110specified with the B<-oldaddr> argument and on each database server
111machine.
112
113=head1 SEE ALSO
114
115L<CellServDB(5)>,
116L<UserList(5)>,
117L<sysid(5)>,
118L<fileserver(8)>,
119L<pts_rename(1)>,
120L<vos(1)>,
121L<vos_listaddrs(1)>
122
123=head1 COPYRIGHT
124
125IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
126
127This documentation is covered by the IBM Public License Version 1.0. It was
128converted from HTML to POD by software written by Chas Williams and Russ
129Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.