A.23 create PhysicalDisk

Creates a physical disk on a volume group.

Syntax

create PhysicalDisk size=value [extraInfo=value] shareable= { yes | no } [thinProvision= { yes | no }] name=value [description=value] on VolumeGroup instance

Where instance is:

{ id=id | name=name }

Description

This command creates a physical disk on a volume group. Local storage and generic storage plug-ins are not supported with this command.

Options

The following table shows the available options for this command.

Option

Description

size=value

The size of the physical disk in GiB.

extraInfo=value

shareable= { yes | no }

Whether the physical disk is shareable. Shareable disks have read/write privileges in multiple virtual machines and should be used with caution.

thinProvision= { yes | no }

Whether to create a thin or non-thin physical disk.

name=value

A name to identify the physical disk.

description=value

Optional description for the physical disk.

{ id=id | name=name }

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

Note

Any create command only creates a single instance of an object, and therefore only accepts a single object instance as an attribute. Providing more than one object of the same attribute type as a parameter always results in the last attribute value taking precedence.

Examples

Example A.30 Creating a physical disk on a volume group

OVM> create PhysicalDisk size=10 name=MyPhysicalDisk shareable=no on VolumeGroup \
  id='Storage_Volume_Group @ 0004fb0000090000325a36dad3b3b7d8'

See Also