VOS_COPY(1) | AFS Command Reference | VOS_COPY(1) |
vos_copy - Make a copy of a volume
vos copy
[-id] <volume name or ID of source>
[-fromserver] <machine name for source>
[-frompartition] <partition name for source>
[-toname] <volume name for new copy>
[-toserver] <machine name for destination>
[-topartition] <partition name for destination>
[-offline] [-readonly] [-live]
[-cell <cell name>]
[-noauth] [-localauth] [-verbose] [-encrypt]
[-noresolve]
[-config <config directory>]
[-help]
vos cop
[-i] <volume name or ID of source>
[-froms] <machine name for source>
[-fromp] <partition name for source>
[-ton] <volume name for new copy>
[-tos] <machine name for destination>
[-top] <partition name for destination>
[-o] [-r] [-li]
[-c <cell name>]
[-noa] [-lo] [-v] [-e] [-nor]
[-co <config directory>]
[-h]
The vos copy command makes a copy of a volume with a new name. It is equivalent to vos dump followed by vos restore, but doesn't require the volume be stored locally by the client.
Currently, the maximum quota for a volume is 2 terabytes (2^41 bytes). Note that this only affects the volume's quota; a volume may grow much larger if the volume quota is disabled. However, volumes over 2 terabytes in size may be impractical to move, and may have their size incorrectly reported by some tools, such as fs_listquota(1).
This command has no output unless "-verbose" is specified or there is an error.
The following example makes a verbose copy of the "test" volume named "test2" in the cell "localcell". The volume and copy both reside on "/vicepa" of "server1".
% vos copy test server1 a test2 server1 a -cell localcell -verbose Starting transaction on source volume 536870921 ... done Allocating new volume id for clone of volume 536870921 ... done Allocating new volume id for copy of volume 536870921 ... done Cloning source volume 536870921 ... done Ending the transaction on the source volume 536870921 ... done Starting transaction on the cloned volume 536870926 ... done Setting flags on cloned volume 536870926 ... done Getting status of cloned volume 536870926 ... done Creating the destination volume 536870927 ... done Setting volume flags on destination volume 536870927 ... done Dumping from clone 536870926 on source to volume 536870927 on destination ... done Ending transaction on cloned volume 536870926 ... done Starting transaction on source volume 536870921 ... done Doing the incremental dump from source to destination for volume 536870921 ... done Setting volume flags on destination volume 536870927 ... done Ending transaction on destination volume 536870927 ... done Ending transaction on source volume 536870921 ... done Starting transaction on the cloned volume 536870926 ... done Deleting the cloned volume 536870926 ... done Ending transaction on cloned volume 536870926 ... done Created the VLDB entry for the volume test2 536870927 Volume 536870921 copied from server1 /vicepa to test2 on server1 /vicepa
The issuer must be listed in the /etc/openafs/server/UserList file on the machine specified with the -server argument and on each database server machine. If the -localauth flag is included, the issuer must instead be logged on to a server machine as the local superuser "root".
Copyright 2007 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.
2021-01-27 | OpenAFS |