To discover a storage array use the following syntax:
create StorageArray
plugin=
value
storageType=
{FIBRECHANNEL
|ISCSI
|LOCAL
|UNKNOWN
} [storageName=
] [value
accessHost=
] [value
accessPort=
] [value
accessUsername=
value
accessPassword=
] [value
useChap=
{Yes
|No
} ] [adminHost=
value
adminUserName=
value
adminPassword=
] [value
pluginPrivateData=
]value
name=
[value
description=
]value
For example:
OVM> create StorageArray plugin="Oracle Generic SCSI Plugin" name=MyISCSIServer \ storageType=ISCSI accessHost=10.172.76.130 accessPort=3260
For more information on the syntax and usage, see Section A.47, “create StorageArray” .
After discovering a storage array, you should attach at least one admin server to it so that administrative operations can be performed on the storage array by Oracle VM Manager. To add an admin server to the storage array, use the syntax:
addAdminServer
{FileServer
|StorageArray
}instance
server=
value
For example:
OVM> addAdminServer StorageArray name=MyISCSIServer server=MyServer
For more information on the syntax and usage, see Section A.4, “addAdminServer” .
Next you should add the storage initiators to an access group for each Oracle VM Server that is to be granted access to the storage. In this example we add the storage initiators for each Oracle VM Server to the default access group that is created when a storage array is discovered. First, find the name of the access group by listing the access groups for the server using the show StorageArray command, for example:
OVM>
show StorageArray name=MyISCSIServer
... Access Group 1 = Default access group @ MyISCSIServer @ 0004fb00000900005264cefc5b9a1cb8 [Default access group @ MyISCSIServer] Access group name Storage Plug-in = oracle.generic.SCSIPlugin.GenericPlugin (1.1.0) [Oracle Generic SCSI Plugin] ...Next, find the storage initiator name for each Oracle VM Server using the show Server command, for example:
OVM>
show Server name=MyServer1
... Storage Initiator 1 = iqn.1988-12.com.oracle:e774e056fd3 Storage initiator name Storage Initiator 2 = storage.LocalStorageInitiator in 00:e0:81:4d:40:f5:00:e0:81:4d:40:be:00:e0:81:4d ...Then add the storage initiator for each Oracle VM Server to the default access group using the syntax:
add StorageInitiator
instance
to AccessGroup
instance
For example:
OVM> add StorageInitiator name=iqn.1988-12.com.oracle:d72d82d0817f to AccessGroup \ name='Default access group @ MyISCSIServer'
For more information on the syntax and usage, see Section A.13, “add StorageInitiator” .
Validate the storage array. Validation should be performed when any changes are made to the storage. To validate the storage array, use the syntax:
validate
StorageArray
instance
For example:
OVM> validate StorageArray name=MyISCSIServer
For more information on the syntax and usage, see Section A.161, “validate” .
Refresh the storage array so Oracle VM Manager has the most current information about the storage. To refresh the storage array, use the syntax:
refresh
{AccessGroup
|Assembly
|FileServer
|FileSystem
|PhysicalDisk
|Repository
|Server
|StorageArray
}instance
For example:
OVM> refresh StorageArray name=MyISCSIServer
For more information on the syntax and usage, see Section A.124, “refresh” .