Creating a new storage volume
In the CIM Agent for the SAN Volume Controller,
the IBMTS2145_StorageConfigurationService class provides all the methods required
for creating, modifying, and deleting an IBMTS2145_StorageVolume.
Steps
Perform the following steps to create a new IBMTS2145_StorageVolume
instance:
- Create a new IBMTS2145_StorageSettingVolume instance with the intrinsic
method CreateInstance().
The new IBMTS2145_StorageSettingVolume instance
contains the parameter settings that are required for a new IBMTS2145_StorageVolume
instance. It is therefore also referred to as the goal in the final phase of the volume creation process.
- Obtain the reference (CIMObjectPath) of the IBMTS2145_StorageConfigurationService
instance that is associated with the IBMTS2145_Cluster to which you will assign
the new volume.
- Invoke the IBMTS2145_StorageConfigurationService.CreateOrModifyElementFromStoragePool()
method to create the new IBMTS2145_StorageVolume with the following parameter
specifications:
- Set ElementType to 2.
- Set Size to the desired volume size in megabytes.
- Obtain the reference (CIMObjectPath) of the IBMTS2145_StoragePool instance
from which you will allocate an IBMTS2145_StorageVolume.
- Set InPool to the reference (obtained in the previous step) of the pool
from which the volume will be allocated.
- Set Goal to the reference (CIMObjectPath) of the IBMTS2145_StorageSettingVolume
that you already created.
Related topics