Previous Topic: resize (Volume Management)--Resize a Volume.Next Topic: move (Volume Management)--Move a Volume to Another Application


copy (Volume Management)--Copy a Volume

Copy a volume.

Syntax
volume copy <src> <dst> [comment=<val> | --stripcomment] [size=<val>] [fs_options=<val>] [--use-filer] [--fscpy [--prefill]] [ -n ] [--overwrite [--force]]  

Options
<src>

Name of the existing volume to copy. May specify any volume

<dst>

Name of the new copied volume. Must specify an application user or singleton class volume or global volume

comment=<val>

Comment that is to be set for the destination volume

--stripcomment

Set the comment for the destination volume to empty.

size=<val>

Specify size for new volume. If not specified, the destination volume is created with the same size as the source volume. Units may be specified(for example, 128M[B], 2G[B]). If units are not specified, it is assumed that the size is in MB.

fs_options=<val>

File system-specific options. Only valid if --fscpy argument is specified.

--use-filer

If the copy operation can be done as a block level copy and this option is specified, do the block level copy in the filer instead of on the controller. This can be used for partitioned or unpartitioned volumes.

--fscpy

Perform filesystem level copy when copying the volume. If this option is not specified, block-level copy is performed.

--prefill

Allocate ALL blocks for new volume. This option is only valid if --fscpy is specified; otherwise it is ignored.

--overwrite

Overwrite destination volume if it exists

--force

Do not prompt for confirmation of overwrite

-n

Skip verification that volume reference is in the class descriptor if destination volume is an application singleton class volume.

Notes:

Examples
volume copy my-app:data my-app:data2

Copy application user volume. The volume may be partitioned or unpartitioned.

volume copy my-app:data my-app:data2 --fscpy

Copy application user volume using filesystem level copy. (The operation will fail if any of the partitions are not supported by the Filer.)

volume copy /system:MYSQL5.boot my-app:DBASE.boot -n

Copy global catalog class volume.

volume copy my-app:DBASE.boot my-app2:DBASE.boot