A.143 resize

Resizes a physical or virtual disk.

Syntax

resize { PhysicalDisk | VirtualDisk } instance size=value sparse= { Yes | No }

Where instance is:

{ id=value | name=value }

Description

This command resizes a physical or virtual disk. The sparse option is only available when resizing a virtual disk.

Options

The following table shows the available options for this command.

Option

Description

size=value

The size of the physical or virtual disk in GiB.

sparse= { Yes | No }

Whether to create a sparse or non-sparse virtual disk. This option is only available with the resize VirtualDisk command.

{ id=value | name=value }

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

Examples

Example A.191 Resizing a virtual disk

OVM> resize VirtualDisk name=MyVMDisk size=200 sparse=Yes

Example A.192 Resizing a physical disk

OVM> resize PhysicalDisk name=MyVMDisk size=200

See Also