Copies a block device.
cpvdi -src input_disk_image -dst output_disk_image [-isp input_storage_pool] [-osp output_storage_pool] [-progress] [-overwrite] [-unconfigure] [-f]
Flag name | Description |
---|---|
-src input_disk_image | Specifies the input backing device. The input backing device might either be a physical or logical volume or a file is located in the caller's home directory, any of its subdirectories or in the /mnt directory. The root user will not have any file location restrictions. |
-dst output_disk_image | Specifies the output backing device. The output backing device might either be a physical or logical volume or a file is located in the caller's home directory, any of its subdirectories or in the /mnt directory. The root user will not have any file location restrictions. |
-f | Overwrites the destination file. However, if the source or destination file is configured as backing device, it copies the file without unconfiguring the device or devices. If the -unconfigure flag is used in addition to the -f flag, then the -unconfigure flag takes priority. |
-progress | Specifies the process status of the command will be expressed by printing a number sign (#) to stderr for every 1024 KB block of data that has been copied. |
-isp input_storage_pool | Specifies the name of the storage pool where the input file-backed device exists. Required if the argument of the -src flag is a file-backed device. |
-osp output_storage_pool | Specifies the name of the storage pool where the input file-backed device exists. Required if the argument of the -dst flag is a file-backed device. |
-overwrite | Overwrites the destination file, if the file is present. If you do not use this flag, an error message displays with a non-zero exit code. |
-unconfigure | Specifies to unconfigure the virtual target device (VTD) and reconfigure the VTD after a copy operation. Only use this flag if the source or destination file is configured as backing device. If you do not use this flag, an error message displays with a non-zero exit code. |
cpvdi -src hdisk1 -dst /home/my_home/image1_file
cpvdi -src /home/my_home/image2_file -dst hdisk2
cpvdi -src hdisk1 -dst hdisk2 -progress
cpvdi -src image1_file -dst image2_file -isp sp01 -osp sp02
cpvdi -src /home/padmin/file1 -dst /home/padmin/file2 -overwrite
cpvdi -src fbd1 -dst fbd2 -isp sp01 -osp sp01 -f