Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod1 / vos_move.pod.in
CommitLineData
805e021f
CE
1=head1 NAME
2
3vos_move - Moves a read/write volume to another site
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10B<vos move> S<<< B<-id> <I<volume name or ID>> >>>
11 S<<< B<-fromserver> <I<machine name on source>> >>>
12 S<<< B<-frompartition> <I<partition name on source>> >>>
13 S<<< B<-toserver> <I<machine name on destination>> >>>
14 S<<< B<-topartition> <I<partition name on destination>> >>>
15 [B<-live>] S<<< [B<-cell> <I<cell name>>] >>> [B<-noauth>] [B<-localauth>]
16 [B<-verbose>] [B<-encrypt>] [B<-noresolve>]
17 S<<< [B<-config> <I<config directory>>] >>>
18 [B<-help>]
19
20B<vos m> S<<< B<-i> <I<volume name or ID>> >>>
21 S<<< B<-froms> <I<machine name on source>> >>>
22 S<<< B<-fromp> <I<partition name on source>> >>>
23 S<<< B<-tos> <I<machine name on destination>> >>>
24 S<<< B<-top> <I<partition name on destination>> >>>
25 [B<-li>] S<<< [B<-c> <I<cell name>>] >>> [B<-noa>]
26 [B<-lo>] [B<-v>] [B<-e>] [B<-nor>]
27 S<<< [B<-co> <I<config directory>>] >>>
28 [B<-h>]
29
30=for html
31</div>
32
33=head1 DESCRIPTION
34
35The B<vos move> command moves the indicated read/write volume from its
36current site (specified with the B<-fromserver> and B<-frompartition>
37arguments) to the destination site (specified with the B<-toserver> and
38B<-topartition> arguments). This command automatically removes the backup
39copy from the current site, if it exists. To create a new backup volume at
40the destination site, use the B<vos backup> command.
41
42This command works on read/write volumes only. To move a read-only volume,
43use the B<vos addsite> and B<vos release> commands to define a new
44read-only site and release the volume contents to it, and then use the
45B<vos remove> command to remove the previous read-only volume's definition
46from the Volume Location Database (VLDB) and data from the partition. To
47move a backup volume, use this command to move its read/write source and
48then issue the B<vos backup> command.
49
50Before executing this command, the B<vos> command interpreter initiates a
51check that the destination partition contains enough space to house the
52volume being moved. If there is not enough space, the move operation is
53not attempted and the following message appears:
54
55 vos: no space on target partition <dest_part> to move volume <volume>
56
57=head1 CAUTIONS
58
59Unless there is a compelling reason, do not interrupt a B<vos move>
60command in progress. Interrupting a move can result in one or more of the
61following inconsistent states:
62
63=over 4
64
65=item *
66
67There are two versions of the volume, one at the source site and one at
68the destination site. (If this happens, retain the version identified by
69the VLDB and use the B<vos zap> command to remove the other version.)
70
71=item *
72
73The backup version of the volume is stranded at the old site. (If this
74happens, use the B<vos zap> command to remove it.)
75
76=item *
77
78The volume is off-line. (If this happens, run the B<bos salvage> command
79to bring it back on line.)
80
81=back
82
83If the Ctrl-C interrupt signal is pressed while a vos move operation is
84executing, the following message warns of the consequences and requests
85confirmation of the kill signal:
86
87 SIGINT handler: vos move operation in progress
88 WARNING: may leave AFS storage and metadata in indeterminate state
89 enter second control-c to exit
90
91To confirm termination of the operation, press Ctrl-C a second time; press
92any other key to continue the operation.
93
94=include fragments/volsize-caution.pod
95
96=head1 OPTIONS
97
98=over 4
99
100=item B<-id> <I<volume name or ID>>
101
102Specifies either the complete name or volume ID number of a read/write
103volume.
104
105=item B<-fromserver> <I<server name>>
106
107Identifies the file server machine where the volume currently
108resides. Provide the machine's IP address or its host name (either fully
109qualified or using an unambiguous abbreviation). For details, see
110L<vos(1)>.
111
112=item B<-frompartition> <I<partition name>>
113
114Names the partition where the volume currently resides. Provide the full
115partition name (for, example, B</vicepa>) or one of the abbreviated forms
116described in L<vos(1)>.
117
118=item B<-toserver> <I<server name>>
119
120Identifies the file server machine to which to move the volume. Provide
121the machine's IP address or its host name (either fully qualified or using
122an unambiguous abbreviation). For details, see L<vos(1)>.
123
124=item B<-topartition> <I<partition name>>
125
126Names the partition to which to move the volume. Provide the full
127partition name (for, example, B</vicepa>) or one of the abbreviated forms
128described in L<vos(1)>.
129
130=item B<-live>
131
132Avoids making a temporary copy of the volume during the move. This is
133useful if the partition is full, but the administrator needs to move
134volumes to a another partition or server to free up disk space. The
135caveat is that the volume is locked during the entire operation
136instead of the short time that is needed to make the temporary clone.
137
138=include fragments/vos-common.pod
139
140=back
141
142=head1 EXAMPLES
143
144The following example moves the volume C<user.smith> from the F</vicepb>
145partition on the file server machine C<fs3.example.com> to the F</vicepg>
146partition on the file server machine C<fs7.example.com>.
147
148 % vos move -id user.smith -fromserver fs3.example.com -frompartition b \
149 -toserver fs7.example.com -topartition g
150
151=head1 PRIVILEGE REQUIRED
152
153The issuer must be listed in the F</usr/afs/etc/UserList> file on the
154machines specified with the B<-toserver> and B<-fromserver> arguments and
155on each database server machine. If the B<-localauth> flag is included,
156the issuer must instead be logged on to a server machine as the local
157superuser C<root>.
158
159=head1 SEE ALSO
160
161L<vos(1)>,
162L<vos_addsite(1)>,
163L<vos_backup(1)>,
164L<vos_copy(1)>,
165L<vos_release(1)>,
166L<vos_listvol(1)>,
167L<vos_remove(1)>
168
169=head1 COPYRIGHT
170
171IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
172
173This documentation is covered by the IBM Public License Version 1.0. It was
174converted from HTML to POD by software written by Chas Williams and Russ
175Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.