A.40 create Repository

Creates a storage repository.


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.


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.


The following table shows the available options for this command.




A path to a subdirectory on the selected file system.


A name to identify the storage repository.


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.


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.


Example A.54 Creating a storage repository on a file server

OVM> create Repository name=MyRepository on FileSystem \
  name="nfs on"

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

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

See Also