doc: vos manpage fixes
[openafs.git] / doc / man-pages / pod1 / vos_shadow.pod.in
1 =head1 NAME
2
3 vos_shadow - Creates a shadow copy of a volume on a different server/partition
4
5 =head1 SYNOPSIS
6
7 =for html
8 <div class="synopsis">
9
10 B<vos shadow> S<<< [B<-id>] <I<volume name or ID on source>> >>>
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     S<<< [B<-toname> <I<volume name on destination>>] >>>
16     S<<< [B<-toid> <I<volume ID on destination>>] >>>
17     [B<-offline>] [B<-readonly>] [B<-live>] [B<-incremental>]
18     S<<< [B<-cell> <I<cell name>>] >>>
19     [B<-noauth>] [B<-localauth>]
20     [B<-verbose>] [B<-encrypt>] [B<-noresolve>]
21     S<<< [B<-config> <I<config directory>>] >>>
22     [B<-help>]
23
24 B<vos sh> S<<< [B<-id>] <I<volume name or ID on source>> >>>
25     S<<< [B<-froms>] <I<machine name on source>> >>>
26     S<<< [B<-fromp>] <I<partition name on source>> >>>
27     S<<< [B<-tos>] <I<machine name on destination>> >>>
28     S<<< [B<-top>] <I<partition name on destination>> >>>
29     S<<< [B<-ton> <I<volume name on destination>>] >>>
30     S<<< [B<-toi> <I<volume ID on destination>>] >>>
31     [B<-o>] [B<-r>] [B<-l>] [B<-in>]
32     S<<< [B<-c> <I<cell name>>] >>>
33     [B<-noa>] [B<-lo>] [B<-v>] [B<-e>] [B<-nor>]
34     S<<< [B<-co> <I<config directory>>] >>>
35     [B<-h>]
36
37 =for html
38 </div>
39
40 =head1 DESCRIPTION
41
42 The B<vos shadow> command creates a shadow copy of a volume on a
43 different partition or server.
44
45 A shadow volume is a copy of a volume that does not normally appear in
46 the volume location database (VLDB). It is a primitive operation that
47 is meant to be used in backup or disaster recovery situations.
48
49 =head1 CAUTIONS
50
51 This command is not used during normal OpenAFS administration and may
52 have adverse effects on the VLDB if not used properly! This command
53 should only be used by an expert.
54
55 Using this command on a volume when the source volume is not the same
56 as parent volume used to create the shadow will leave the destination
57 volume in a unknown state.
58
59 Running B<vos syncserv> or B<vos syncvldb> on a fileserver containing 
60 shadow volumes will not update the VLDB with the shadowed Read/Write
61 volumes as long as the entries for the source volumes still exist. In
62 a disaster recovery situation the VLDB entries for the corresponding
63 source volumes need hence to be deleted first.
64
65 =include fragments/volsize-caution.pod
66
67 =head1 OPTIONS
68
69 =over 4
70
71 =item B<-id> <I<volume name or ID>>
72
73 Specifies either the complete name or volume ID number of a read/write
74 volume.
75
76 =item B<-fromserver> <I<machine name for source>>
77
78 Identifies the file server machine where the source volume resides. Provide
79 the machine's IP address or its host name (either fully qualified or using
80 an unambiguous abbreviation). For details, see L<vos(1)>.
81
82 =item B<-frompartition> <I<partition name for source>>
83
84 Names the partition where the source volume resides. Provide the full
85 partition name (for, example, B</vicepa>) or one of the abbreviated forms
86 described in L<vos(1)>.
87
88 =item B<-toserver> <I<machine name for destination>>
89
90 Identifies the file server machine to which to copy the volume.  Provide
91 the machine's IP address or its host name (either fully qualified or using
92 an unambiguous abbreviation). For details, see L<vos(1)>.
93
94 =item B<-topartition> <I<partition name for destination>>
95
96 Names the partition to which to copy the volume. Provide the full partition
97 name (for, example, B</vicepa>) or one of the abbreviated forms described in
98 L<vos(1)>.
99
100 =item B<-toname> <I<volume name for new copy>>
101
102 The complete name of the new volume to create.
103
104 =item B<-toid> <I<volume ID for new copy>>
105
106 The volume ID number to use for the new volume.
107
108 =item B<-offline>
109
110 Leaves the new volume flagged as off-line in the volume database.
111
112 =item B<-readonly>
113
114 Flags the new volume as read-only in the volume database.
115
116 =item B<-live>
117
118 Copies the live volume without cloning.  This is normally not necessary and
119 causes the volume to be kept locked for longer than the normal copy
120 mechanism.
121
122 =item B<-incremental>
123
124 Copy the changes from the source volume to a previously created shadow
125 volume.
126
127 =item B<-cell> <I<cell name>>
128
129 Names the cell in which to run the command. Do not combine this argument
130 with the B<-localauth> flag. For more details, see L<vos(1)>.
131
132 =item B<-noauth>
133
134 Assigns the unprivileged identity C<anonymous> to the issuer. Do not
135 combine this flag with the B<-localauth> flag. For more details, see
136 L<vos(1)>.
137
138 =item B<-localauth>
139
140 Constructs a server ticket using a key from the local
141 F</usr/afs/etc/KeyFile> file. The B<vos> command interpreter presents
142 it to the Volume Server and Volume Location Server during mutual
143 authentication. Do not combine this flag with the B<-cell> argument or
144 B<-noauth> flag. For more details, see L<vos(1)>.
145
146 =item B<-verbose>
147
148 Produces on the standard output stream a detailed trace of the command's
149 execution. If this argument is omitted, only warnings and error messages
150 appear.
151
152 =item B<-encrypt>
153
154 Encrypts the command so that the operation's results are not transmitted
155 across the network in clear text. This option is available in OpenAFS
156 versions 1.4.11 or later and 1.5.60 or later.
157
158 =item B<-noresolve>
159
160 Shows all servers as IP addresses instead of the DNS name. This is very
161 useful when the server address is registered as 127.0.0.1 or when dealing
162 with multi-homed servers. This option is available in OpenAFS
163 versions 1.4.8 or later and 1.5.35 or later.
164
165 =item B<-help>
166
167 Prints the online help for this command. All other valid options are
168 ignored.
169
170 =back
171
172 =head1 OUTPUT
173
174 This command has no output unless C<-verbose> is specified or there is
175 an error.
176
177 =head1 PRIVILEGE REQUIRED
178
179 The issuer must be listed in the F</usr/afs/etc/UserList> file on the
180 machines specified with the B<-toserver> and B<-fromserver> arguments and
181 on each database server machine.  If the B<-localauth> flag is included,
182 the issuer must instead be logged on to a server machine as the local
183 superuser C<root>.
184
185 =head1 SEE ALSO
186
187 L<vos(1)>,
188 L<vos_backup(1)>,
189 L<vos_copy(1)>,
190 L<vos_move(1)>
191
192 L<http://www.openafs.org/pipermail/openafs-info/2005-July/018469.html>
193 discusses motivation for the creation of this command.
194
195 L<http://workshop.openafs.org/afsbpw06/talks/drh.scs.html> discusses
196 one possible use for it.
197
198 =head1 COPYRIGHT
199
200 Copyright 2008 Jason Edgecombe <jason@rampaginggeek.com>
201
202 This documentation is covered by the BSD License as written in the
203 doc/LICENSE file. This man page was written by Jason Edgecombe for
204 OpenAFS.