A.40 create Repository

Creates a storage repository.

Syntax

create Repository [ sharePath=value ] name=value [ description=value ] on FileSystem instance

Where instance is:

{ id=value | name=value }

Note that if the instance name contains forward slashes and you need to quote the name, you must escape forward slashes by using additional forward slashes. This is illustrated in the example.

Description

This command creates a storage repository on a file system. To create a repository on a LUN, you should first create an OCFS2 file system on it using the create FileSystem command.

After you create a repository, you should refresh it.

Options

The following table shows the available options for this command.

Option

Description

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. value is a maximum of 4,000 characters.

{ id=value | name=value }

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

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

OVM> create Repository name=MyRepository on FileSystem \
  name="nfs on 10.172.76.125://mnt//vol2//repo01"

Example A.55 Creating a storage repository on a SAN server

OVM> create Repository name=MyRepository on FileSystem name=MyRepoFileSystem

See Also