Copy a volume.
volume copy <src> <dst> [comment=<val> | --stripcomment] [size=<val>] [fs_options=<val>] [--use-filer] [--fscpy [--prefill]] [ -n ] [--overwrite [--force]]
Name of the existing volume to copy. May specify any volume
Name of the new copied volume. Must specify an application user or singleton class volume or global volume
Comment that is to be set for the destination volume
Set the comment for the destination volume to empty.
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.
File system-specific options. Only valid if --fscpy argument is specified.
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.
Perform filesystem level copy when copying the volume. If this option is not specified, block-level copy is performed.
Allocate ALL blocks for new volume. This option is only valid if --fscpy is specified; otherwise it is ignored.
Overwrite destination volume if it exists
Do not prompt for confirmation of overwrite
Skip verification that volume reference is in the class descriptor if destination volume is an application singleton class volume.
Notes:
<any option> - any option understood by mkfs.<filesystem>. The options will be passed directly to the mkfs tool for the chosen filesystem.
vol_group_name - string specifying the name of the LVM volume group to create on the volume. If not specified, a volume group name is randomly generated.
data_percentage - percentage of the volume that is used to store data, remaining portion of the volume is for snapshots. If not specified, 80% of the volume is used for data.
<any option> - any option understood by mkfs.ext3. The options will be passed directly to the mkfs tool and will be used for the data volume.
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
|
Copyright © 2013 CA.
All rights reserved.
|
|