Find the file system you want to use to create the storage repository with the list command, for example:
OVM>
list FileSystem
id:66a61958-e61a-44fe-b0e0-9dd64abef7e3 name:nfs on 10.172.76.125:/mnt/vol1/poolfs03 id:0004fb0000050000b85745f78b0c4b61 name:fs on 350014ee2568cc0cf id:4ebb1575-e611-4662-87b9-a84b40ce3db7 name:nfs on 10.172.76.125:/mnt/vol1/poolfs04 id:858d98c5-3d8b-460e-9160-3415cbdda738 name:nfs on 10.172.76.125:/mnt/vol1/poolfs01 id:0dea4818-20e6-4d3a-958b-b12cf91588b5 name:nfs on 10.172.76.125:/mnt/vol1/poolfs02 id:35b4f1c6-182b-4ea5-9746-51393f3b515c name:nfs on 10.172.76.125:/mnt/vol2/repo03 id:aeb6143d-0a96-4845-9690-740bbf1e225e name:nfs on 10.172.76.125:/mnt/vol1/repo01 id:05e8536f-8d9c-4d7c-bbb2-29b3ffafe011 name:nfs on 10.172.76.125:/mnt/vol2/repo02 id:0004fb00000500006a46a8dbd2461939 name:MyServerPool_cluster_heartbeat id:0004fb00000500000809e28f4fab56b1 name:fs on 350014ee20137ee44 OVM>Then, refresh the file system you intend to use for the storage repository. To refresh the file system, use the syntax:
refresh
{AccessGroup
|Assembly
|FileServer
|FileSystem
|PhysicalDisk
|Repository
|Server
|StorageArray
}instance
For example:
OVM> refresh FileSystem name="nfs on 10.172.76.125://mnt//vol1//repo01"
For more information on the syntax and usage, see Section A.124, “refresh” .
Create the storage repository. Use the syntax:
create Repository
[sharePath=
]value
name=
[value
description=
]value
on
FileSystem
instance
For example:
OVM> create Repository name=MyRepository on FileSystem \ name="nfs on 10.172.76.125://mnt//vol2//repo01"
For more information on the syntax and usage, see Section A.40, “create Repository” .
To grant access to the storage repository to a server pool, you must present the repository. To present the storage repository to server pool, use the syntax:
add ServerPool
instance
to
{AccessGroup
|Repository
}instance
For example:
OVM> add ServerPool name=MyServerPool to Repository name=MyRepository
For more information on the syntax and usage, see Section A.12, “add ServerPool” .
Finally, refresh the storage repository using the syntax:
refresh
{AccessGroup
|Assembly
|FileServer
|FileSystem
|PhysicalDisk
|Repository
|Server
|StorageArray
}instance
For example:
OVM> refresh Repository name=MyRepository
For more information on the syntax and usage, see Section A.124, “refresh” .