A.30 cloneVdToRepo

Clones a virtual disk to a repository.

Syntax

cloneVdToRepo VirtualDisk instance target=value cloneType= { SPARSE_COPY | NON_SPARSE_COPY | THIN_CLONE }

Where instance is:

{ id=value | name=value }

Description

This command clones a virtual disk to a target repository.

The virtual disk instance must be in a storage repository on a physical disk.

Options

The following table shows the available options for this command.

Option

Description

target=value

The repository on which to locate the cloned virtual disk. The target repository must be on a physical disk.

cloneType= { SPARSE_COPY | NON_SPARSE_COPY | THIN_CLONE }

Whether to clone a sparse, non-sparse or thin-clone virtual disk.

The THIN_CLONE parameter is only applicable when using an Oracle VM Storage Connect plug-in that supports thin provisioned cloning. The clone target must be an OCFS2-based storage repository, or a storage array.

{ id=value | name=value }

The instance of the object using either the id or name option, for example name=MyVMDisk.

Examples

Example A.41 Cloning a virtual disk to a repository

OVM> cloneVdToRepo VirtualDisk name=MyVirtualDisk target=MyRepository cloneType=SPARSE_COPY

See Also