2008-06-27 05:19:07 +01:00
|
|
|
=head1 NAME
|
|
|
|
|
|
|
|
vos_clone - Creates a shared-space copy of a volume on a partition
|
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
|
|
|
=for html
|
|
|
|
<div class="synopsis">
|
|
|
|
|
|
|
|
B<vos clone> S<<< [B<-id>] <I<volume name or ID>> >>>
|
|
|
|
S<<< [B<-server>] <I<server name>> >>>
|
|
|
|
S<<< [B<-partition>] <I<partition name>> >>>
|
|
|
|
S<<< [B<-toname> <I<volume name on destination>>] >>>
|
2009-10-08 18:31:00 +01:00
|
|
|
S<<< [B<-toid> <I<volume ID on destination>>] >>>
|
2013-06-20 23:45:05 +01:00
|
|
|
[B<-offline>] [B<-readonly>] [B<-readwrite>]
|
2009-10-08 18:31:00 +01:00
|
|
|
S<<< [B<-cell> <I<cell name>>] >>> [B<-noauth>] [B<-localauth>]
|
2013-06-20 23:45:05 +01:00
|
|
|
[B<-verbose>] [B<-encrypt>] [B<-noresolve>]
|
|
|
|
S<<< [B<-config> <I<config directory>>] >>>
|
|
|
|
[B<-help>]
|
2009-10-08 18:31:00 +01:00
|
|
|
|
|
|
|
B<vos cl> S<<< [B<-i>] <I<volume name or ID>> >>>
|
|
|
|
S<<< [B<-s>] <I<server name>> >>>
|
|
|
|
S<<< [B<-p>] <I<partition name>> >>>
|
|
|
|
S<<< [B<-ton> <I<volume name on destination>>] >>>
|
2013-06-20 23:45:05 +01:00
|
|
|
S<<< [B<-toi> <I<volume ID on destination>>] >>> [B<-o>]
|
|
|
|
[B<-reado>] [B<-readw>]
|
2009-10-08 18:31:00 +01:00
|
|
|
S<<< [B<-c> <I<cell name>>] >>> [B<-noa>]
|
2013-06-20 23:45:05 +01:00
|
|
|
[B<-l>] [B<-v>] [B<-e>] [B<-nor>]
|
|
|
|
S<<< [B<-co> <I<config directory>>] >>>
|
|
|
|
[B<-h>]
|
2008-06-27 05:19:07 +01:00
|
|
|
|
|
|
|
=for html
|
|
|
|
</div>
|
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
|
|
|
The B<vos clone> command creates a copy-on-write copy of a volume on the
|
2011-02-02 16:49:31 +00:00
|
|
|
same partition and server as the parent volume.
|
2008-06-27 05:19:07 +01:00
|
|
|
|
2011-02-02 16:49:31 +00:00
|
|
|
A clone is a copy of a volume that only stores the changes from the
|
2008-06-27 05:19:07 +01:00
|
|
|
parent volume. Cloning is a primitive operation that is used by the B<vos
|
|
|
|
move>, B<vos backup>, and B<vos release> commands. A clone functions using
|
|
|
|
the same mechanism as a backup volume, but it is persistent. Clone volumes
|
2011-02-03 20:22:02 +00:00
|
|
|
can be used as point-in-time copies of the parent volume, but they must be
|
2008-06-27 05:19:07 +01:00
|
|
|
used with care.
|
|
|
|
|
|
|
|
=head1 CAUTIONS
|
|
|
|
|
|
|
|
This command is not used during normal OpenAFS administration and may
|
|
|
|
have adverse effects on the VLDB if not used properly! This command
|
|
|
|
should only be used by an expert.
|
|
|
|
|
|
|
|
Deleting or moving the parent volume makes the clone volume inaccessible,
|
|
|
|
but the clone volume remains in the VLDB and on disk, and it needs to be
|
|
|
|
cleaned up manually.
|
|
|
|
|
|
|
|
There is a maximum limitation of 7 clones when using the namei
|
|
|
|
fileserver. You may safely create up to 4 clones using the B<vos clone>
|
|
|
|
command. The other three clone slots are used by the backup volume, a
|
|
|
|
read-only replica and the temporary clone that is created when executing a
|
|
|
|
B<vos move>, B<vos dump>, or other B<vos> commands.
|
|
|
|
|
|
|
|
Some commands do not work properly on clone volumes. B<vos move> is one
|
|
|
|
such command.
|
|
|
|
|
2012-06-28 21:30:40 +01:00
|
|
|
=include fragments/volsize-caution.pod
|
2008-06-27 05:19:07 +01:00
|
|
|
|
|
|
|
=head1 OPTIONS
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
2013-06-20 23:45:05 +01:00
|
|
|
=item B<-id> <I<volume name or ID>>
|
2008-06-27 05:19:07 +01:00
|
|
|
|
|
|
|
Specifies either the complete name or volume ID number of a read/write
|
|
|
|
volume.
|
|
|
|
|
2013-06-20 23:45:05 +01:00
|
|
|
=item B<-server> <I<machine name>>
|
2008-06-27 05:19:07 +01:00
|
|
|
|
|
|
|
Identifies the file server machine where the source volume resides. Provide
|
|
|
|
the machine's IP address or its host name (either fully qualified or using
|
|
|
|
an unambiguous abbreviation). For details, see L<vos(1)>.
|
|
|
|
|
2013-06-20 23:45:05 +01:00
|
|
|
=item B<-partition> <I<partition name>>
|
2008-06-27 05:19:07 +01:00
|
|
|
|
|
|
|
Names the partition where the source volume resides. Provide the full
|
|
|
|
partition name (for, example, B</vicepa>) or one of the abbreviated forms
|
|
|
|
described in L<vos(1)>.
|
|
|
|
|
|
|
|
=item B<-toname> <I<volume name for new copy>>
|
|
|
|
|
|
|
|
The complete name of the new volume to create.
|
|
|
|
|
|
|
|
=item B<-toid> <I<volume id for new copy>>
|
|
|
|
|
|
|
|
The complete id of the new volume to create.
|
|
|
|
|
|
|
|
=item B<-offline>
|
|
|
|
|
|
|
|
Leaves the new volume flagged as off-line in the volume database.
|
|
|
|
|
|
|
|
=item B<-readonly>
|
|
|
|
|
|
|
|
Flags the new volume as read-only in the volume database.
|
|
|
|
|
2013-06-20 23:45:05 +01:00
|
|
|
=item B<-readwrite>
|
|
|
|
|
|
|
|
Flags the new volume as read-write in the volume database.
|
|
|
|
|
2013-06-30 03:06:51 +01:00
|
|
|
=include fragments/vos-common.pod
|
2008-06-27 05:19:07 +01:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=head1 OUTPUT
|
|
|
|
|
|
|
|
This command has no output unless C<-verbose> is specified or there is
|
|
|
|
an error.
|
|
|
|
|
|
|
|
=head1 PRIVILEGE REQUIRED
|
|
|
|
|
|
|
|
The issuer must be listed in the F</usr/afs/etc/UserList> file on the
|
|
|
|
machines specified with the B<-toserver> and B<-fromserver> arguments and
|
|
|
|
on each database server machine. If the B<-localauth> flag is included,
|
|
|
|
the issuer must instead be logged on to a server machine as the local
|
|
|
|
superuser C<root>.
|
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
|
|
|
L<vos(1)>,
|
|
|
|
L<vos_backup(1)>,
|
|
|
|
L<vos_copy(1)>,
|
|
|
|
L<vos_move(1)>,
|
|
|
|
L<vos_shadow(1)>
|
|
|
|
|
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
|
|
|
Copyright 2008 Jason Edgecombe <jason@rampaginggeek.com>
|
|
|
|
|
|
|
|
This documentation is covered by the BSD License as written in the
|
|
|
|
doc/LICENSE file. This man page was written by Jason Edgecombe for
|
|
|
|
OpenAFS.
|