NAME

vos_copy - Make a copy of a volume

SYNOPSIS

vos copy -id <volume name or ID of source> -toname <volume name for new copy> -toserver <machine name for destination> -topartition <partition name for destination> [-fromserver <machine name for source>] [-frompartition <partition name for source>] [-offline] [-readonly] [-clone [<yes|no>]] [-cell <cell name>] [-noauth] [-auth] [-localauth] [-encrypt [<yes|no>]] [-verbose] [-noresolve] [-config <configuration file>] [-help]

DESCRIPTION

The vos copy command makes a copy of a volume with a new name. It is equivalent to vos_dump(1) followed by vos_restore(1) without the overhead of copying data through the vos(1) process.

The vos(1) command interpreter consults the Location Service to determine the File Server and partition to read the volume from. The -fromserver and -frompartition arguments can be provided to force the use of an explicit File Server and partition. When the -id argument provides a volume ID number (rather than a name) and is combined with both -server and -partition the Location Service query is skipped.

If the -id argument identifies a read-only volume that resides at multiple sites, vos copy copies the contents of one of them; the one listed first in the output of vos_examine(1) or vos_listloc(1). To dump the read-only volume from a particular site, use the -fromserver and -frompartition arguments to specify the site.

CAUTIONS

Currently, the maximum partition size and volume quota is 16 zettabytes (2^74 bytes). Note that tools such as fs_listquota(1) can only report sizes up to 2 terabytes (2^41 bytes) when accessing a volume housed on an IBM AFS or OpenAFS File Server.

OPTIONS

-id <volume name or ID>

Specifies either the complete name or volume ID number of a read/write volume.

-fromserver <source file server hostname or IP address>

Identifies the File Server where the source volume resides. Provide a fully qualified host name, an IP address or UUID as reported by vos_listfs(1).

The -fromserver argument must be combined with the -frompartition argument.

-frompartition <partition name for source>

Identifies the partition on the File Server named by the -fromserver argument where the source volume resides. Provide the partition's complete name with preceding slash (for example, /vicepa) or use one of the three acceptable abbreviated forms. For details, see vos(1).

The -frompartition argument must be combined with the -fromserver argument.

-toname <volume name for new copy>

The complete name of the new volume to create.

-toserver <destination file server hostname or IP address>

Identifies the File Server where the volume copy is to be created. Provide a fully qualified host name, an IP address or UUID as reported by vos_listfs(1).

-topartition <destination partition name>

Identifies the partition on the File Server named by the -toserver argument where the volume copy is to be created. Provide the partition's complete name with preceding slash (for example, /vicepa) or use one of the three acceptable abbreviated forms. For details, see vos(1).

-offline

Flags the new volume as off-line with the Location Service.

-readonly

Creates the new volume as a read-only volume.

-clone [<yes|no>]

The -clone option defaults to yes for readwrite volumes and no for readonly and backup volumes. When set to no, vos copy copies the source volume without first creating a temporary clone on the source partition. Disabling cloning will keep the source volume offline for as long as is required to copy the data to the File Server designated by the -toserver argument.

-cell <cell name>

Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see vos(1).

-noauth

Assigns the unprivileged identity anonymous to the issuer. Do not combine this flag with the -localauth flag. For more details, see vos(1).

-localauth

Obtains an authentication token using the server encryption key with the highest key version number in the local /etc/yfs/server/KeyFileExt file. The resulting token never expires and has Super User privileges. Do not combine this flag with the -cell argument or -noauth flag. For more details, see vos(1).

-auth

Use the calling user's tokens from the kernel or as obtained using the active Kerberos ticket granting ticket to communicate with the Volume Server and Location Service. This is the default if neither -localauth nor -noauth is given.

Since this option is the default, it is usually not useful for running single command line operations. However, it can be useful when running commands via vos_interactive(1) or vos_source(1), since otherwise it would be impossible to switch from, for example, -localauth back to using regular tokens during a bulk operation.

-verbose

Produces on the standard output stream a detailed trace of the command's execution. If this argument is omitted, only warnings and error messages appear.

-encrypt [<yes|no>]

Enables or disables encrytion for the command so that the operation's results are not transmitted across the network in clear text.

-noresolve

Shows all servers as IP addresses instead of the reverse DNS lookup hostname. -noresolve useful when troubleshooting no such volume and volume moved errors.

-config <configuration file>

Set the location of the configuration file to be used. The default file is /etc/yfs/yfs-client.conf.

-help

Prints the online help for this command. All other valid options are ignored.

OUTPUT

This command has no output unless -verbose is specified or there is an error.

EXAMPLES

The following example makes a verbose copy of the test volume named test2 in the cell your-cell-name.com. The volume and copy both reside on /vicepa of fs1.your-cell-name.com which is abbreviated as fs1:

   % vos copy test fs1 a test2 fs1 a -cell your-cell-name.com -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
   Listed the volume test2 536870927 with the location service
   Volume 536870921 copied from fs1 /vicepa to test2 on fs1 /vicepa

PRIVILEGE REQUIRED

The issuer must be listed in the /etc/yfs/server/UserListExt file on the File Server specified by the -server argument and on each Location Server. If the -localauth flag is included, the issuer must instead be logged on to a server with an account capable of reading the /etc/yfs/server/KeyFileExt file.

SEE ALSO

vos(1), vos_dump(1), vos_listfs(1), vos_move(1), vos_restore(1)

COPYRIGHT

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.

ACKNOWLEDGEMENTS

"AFS" is a registered mark of International Business Machines Corporation, used under license. (USPTO Registration 1598389)

"OpenAFS" is a registered mark of International Business Machines Corporation. (USPTO Registration 4577045)

The "AuriStor" name, log 'S' brand mark, and icon are registered marks of AuriStor, Inc. (USPTO Registrations 4849419, 4849421, and 4928460) (EUIPO Registration 015539653).

"Your File System" is a registered mark of AuriStor, Inc. (USPTO Registrations 4801402 and 4849418).

"YFS" and "AuriStor File System" are trademarks of AuriStor, Inc.