CreateOrModifyElementFromStoragePool()
You can use the CreateOrModifyElementFromStoragePool()
method to create an IBMTS2145_StorageVolume instance if the Element parameter
is null, or you can modify an IBMTS2145_StorageVolume instance if the Element
parameter is not null. The CreateOrModifyElementFromStoragePool() method belongs
to the IBMTS2145_StorageConfigurationService class.
Parameters
Table 235 shows the parameters you can specify
for the CreateOrModifyElementFromStoragePool() method:
Table 235. CreateOrModifyElementFromStoragePool() parameters
|
Parameter |
Type |
Description |
|
Volume creation |
Volume modification |
| ElementType |
Uint16 |
Indicates the IBMTS2145_StorageVolume as the element
type |
Indicates the IBMTS2145_StorageVolume as the element
type |
| [Goal] |
String |
Contains special settings for the new volume |
Contains the settings for the existing volume |
| [InPool] |
String |
Specifies the IBMTS2145_StoragePool from which the new
volume is allowed |
Set to Null |
| Job |
String |
Set to Null |
Set to Null |
| Size |
Uint64 |
Specifies the allocated size (MB) of the new volume |
Specifies the size (MB) of the modified volume |
| TheElement |
String |
Specifies the IBMTS2145_StorageVolume instance to be
created |
Specifies the IBMTS2145_StorageVolume instance to be
modified |
Return values
The CreateOrModifyElementFromStoragePool() method returns one of the following
error codes:
- 0: The volume was successfully created.
- 4: An unexpected error occurred.
- 5: At least one of the parameters was invalid.
- 0x8100: One of the parameters was out of the cluster scope.
- 0x9000 to 0x9FFF: This range represents various SAN Volume Controller return
codes and messages.
Related topics