A.24 create Repository

Creates a storage repository.

Syntax

create Repository { fileSystem=value | serverPool=value physicalDisk=value } [ sharePath=value ] name=value [ description=value ]

Description

This command creates a storage repository. You must supply either a fileSystem, or a serverPool and physicalDisk value(s).

After you create a repository, you should refresh it, and also refresh any disks individually to make them available in Oracle VM Manager.

Options

The following table shows the available options for this command.

Option

Description

fileSystem=value

The name or identifier of the file system to use for the storage repository.

serverPool=value

The name or identifier of the server pool to which the storage repository should be made available. This must be used with the physicalDisk option.

physicalDisk=value

The name or identifier of the physical disk to use for the storage repository. This must be used with the serverPool option.

sharePath=value

A path to a subdirectory on the selected file system.

name=value

A name to identify the storage repository.

description=value

Optional description for the storage repository.

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.31 Creating a storage repository on a file server

OVM> create Repository name=MyRepository fileSystem=nfs:/mnt/vol1/repo01

Example A.32 Creating a storage repository on a physical disk

OVM> create Repository name=MySANRepository serverPool=MyServerPool \
  physicalDisk=0004fb0000180000ba63ec88aa330640

See Also