Creates a storage repository.
Syntax
create Repository
[
sharePath=
]
value
name=
[
value
description=
]
value
on
FileSystem
instance
Where
is:
instance
{
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 |
---|---|
| A path to a subdirectory on the selected file system. |
| A name to identify the storage repository. |
|
Optional description for the storage repository.
|
{
|
The instance of the object using either the
|
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