Find the physical disk (LUN) you want to use to create the storage repository with the list command, for example:
OVM>
list PhysicalDisk
id:0004fb000018000067ce80973e18374e name:MyLUN1 id:0004fb000018000035ce16ee4d58dc4d name:MyLUN2 id:0004fb0000180000a9c7a87ba52ce5ec name:MyLUN3 OVM>Find a local file system on an Oracle VM Server that has access to the LUN with the list command, for example:
OVM>
list FileServer
id:0004fb0000090000d773cb3fe655865a name:Local FS MyServer1 id:0004fb000009000014baa666cdf62317 name:Local FS MyServer2 id:0004fb00000900008ae3eb6203f5646c name:MyNFSStorage id:0004fb00000900001d523e2a6ce1f8c8 name:Local FS MyServer3 OVM>Create an OCFS2 file system on the LUN using the local file system on the Oracle VM Server as the FileServer. Use the syntax:
create FileSystem
physicalDisk=
value
name=
[value
description=
]value
on FileServer
instance
For example:
OVM> create FileSystem name=MyRepoFileSystem physicalDisk="MyLUN1" on FileServer \ name="Local FS MyServer1"
For more information on the syntax and usage, see Section A.37, “create FileSystem” .
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=MyRepoFileSystem
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” .