Copy a volume.
volume copy <src>[%<spar>] <dst>[%<dpar>] [comment=<val> | --stripcomment] [mirrored=<val>] [size=<val>] [fs_options=<val>] [--use-filer] [--fscpy [--prefill]] [ -n ] [--overwrite [--force]]
Name of the existing volume to copy. May specify any volume
Specifies the partition/logical volume to copy from (for example, '%parN[.parN]'). By default, a block level copy is done, leaving any additional space on the destination partition unused. If --fscpy is used, a filesystem level copy is done, in this case the filesystem will be created with the full size of the destination partition/volume and the fs_options property will be honored when creating the fs. If the source volume has no partition table, this property should not be specified to copy of the whole volume.
Name of the new copied volume. Must specify an application user or singleton class volume or global volume
Specifies the partition/logical volume to copy to (for example, '%parN[.parN]'). To copy the source to the whole destination volume (instead of a partition), this property should be left blank.
Comment that is to be set for the destination volume
Set the comment for the destination volume to empty.
Set to 1 for mirrored volume.
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.
pool_name - The name of the pool - defaults to volume name if this is not set.
mountpoint - Mount path of the pool root (or "legacy" or "none", that is, mountpoint=legacy). Defaults to /pool_name.
autoreplace - On/off - Controls automatic device replacement. Defaults to off.
delegation - On/off - Controls whether a non-privileged user is granted access based on the dataset permissions defined on the dataset. -Defaults to on.
failmode - Wait/continue/panic. Defaults to wait.
version - 1-10 - Defaults to 10 (current).
volume_label - The volume label for the dst volume. If empty, the vol_name property value is used instead.
active - Create the new partition as active (bootable). Valid values are yes and no. If omitted, the default value of no is used during format while the value defaults to the src volume type during fscopy
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
Copy application singleton class volume.
volume copy my-app:data1%par3.par1 my-app:data2%par3.par1
Copy logical partition 1 of extended partition 3 of a volume to logical partition 1 of extended partition 3 of another volume. Volume data2 must exist and have a partitioning table that has extended partition 3 with logical partition 1 in it that is large enough to fit the source partition.
volume copy my-app:data1%par3.par1.home my-app:data2
Copy lvm logical volume "home" (on the first logical partition of extended partition 3) to a separate unpartitioned volume. If the destination volume exists, --overwrite can be used to replace it.
volume copy my-app:data1 my-app:data2%par2 --fscpy
Copy an unpartitioned volume as partition 2 on the destination volume, doing filesystem copy and using all of the space on the destination partition.
|
Copyright © 2011 CA.
All rights reserved.
|
|