Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod1 / vos_shadow.pod.in
CommitLineData
805e021f
CE
1=head1 NAME
2
3vos_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
10B<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
24B<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
42The B<vos shadow> command creates a shadow copy of a volume on a
43different partition or server.
44
45A shadow volume is a copy of a volume that does not normally appear in
46the volume location database (VLDB). It is a primitive operation that
47is meant to be used in backup or disaster recovery situations.
48
49=head1 CAUTIONS
50
51This command is not used during normal OpenAFS administration and may
52have adverse effects on the VLDB if not used properly! This command
53should only be used by an expert.
54
55Using this command on a volume when the source volume is not the same
56as parent volume used to create the shadow will leave the destination
57volume in a unknown state.
58
59Running B<vos syncserv> or B<vos syncvldb> on a fileserver containing
60shadow volumes will not update the VLDB with the shadowed Read/Write
61volumes as long as the entries for the source volumes still exist. In
62a disaster recovery situation the VLDB entries for the corresponding
63source 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
73Specifies either the complete name or volume ID number of a read/write
74volume.
75
76=item B<-fromserver> <I<machine name for source>>
77
78Identifies the file server machine where the source volume resides. Provide
79the machine's IP address or its host name (either fully qualified or using
80an unambiguous abbreviation). For details, see L<vos(1)>.
81
82=item B<-frompartition> <I<partition name for source>>
83
84Names the partition where the source volume resides. Provide the full
85partition name (for, example, B</vicepa>) or one of the abbreviated forms
86described in L<vos(1)>.
87
88=item B<-toserver> <I<machine name for destination>>
89
90Identifies the file server machine to which to copy the volume. Provide
91the machine's IP address or its host name (either fully qualified or using
92an unambiguous abbreviation). For details, see L<vos(1)>.
93
94=item B<-topartition> <I<partition name for destination>>
95
96Names the partition to which to copy the volume. Provide the full partition
97name (for, example, B</vicepa>) or one of the abbreviated forms described in
98L<vos(1)>.
99
100=item B<-toname> <I<volume name for new copy>>
101
102The complete name of the new volume to create.
103
104=item B<-toid> <I<volume ID for new copy>>
105
106The volume ID number to use for the new volume.
107
108=item B<-offline>
109
110Leaves the new volume flagged as off-line in the volume database.
111
112=item B<-readonly>
113
114Flags the new volume as read-only in the volume database.
115
116=item B<-live>
117
118Copies the live volume without cloning. This is normally not necessary and
119causes the volume to be kept locked for longer than the normal copy
120mechanism.
121
122=item B<-incremental>
123
124Copy the changes from the source volume to a previously created shadow
125volume.
126
127=include fragments/vos-common.pod
128
129=back
130
131=head1 OUTPUT
132
133This command has no output unless C<-verbose> is specified or there is
134an error.
135
136=head1 PRIVILEGE REQUIRED
137
138The issuer must be listed in the F</usr/afs/etc/UserList> file on the
139machines specified with the B<-toserver> and B<-fromserver> arguments and
140on each database server machine. If the B<-localauth> flag is included,
141the issuer must instead be logged on to a server machine as the local
142superuser C<root>.
143
144=head1 SEE ALSO
145
146L<vos(1)>,
147L<vos_backup(1)>,
148L<vos_copy(1)>,
149L<vos_move(1)>
150
151L<http://www.openafs.org/pipermail/openafs-info/2005-July/018469.html>
152discusses motivation for the creation of this command.
153
154L<http://workshop.openafs.org/afsbpw06/talks/drh.scs.html> discusses
155one possible use for it.
156
157=head1 COPYRIGHT
158
159Copyright 2008 Jason Edgecombe <jason@rampaginggeek.com>
160
161This documentation is covered by the BSD License as written in the
162doc/LICENSE file. This man page was written by Jason Edgecombe for
163OpenAFS.