HP 3PAR CIM API Programming Reference (OS 3.1.2 MU2) (QL226-97015, June 2013)

Creating a Volume with a Non-Default Setting
The following are the steps necessary for an SMI-S client to create a volume with non-default settings:
1. Invoke the CreateSetting method to get at a reference to the TPD_StorageSetting.
The SMI-S provider creates, if one does not exist, an instance of the default or goal
TPD_StorageSetting, depending on the value in the SettingType option. If one already
exists, the provider simply returns a reference to that instance. This instance is transient only
and does not persist across reboots. The client then performs a GetInstance to obtain the
instance of the TPD_StorageSetting in order to examine the properties. If the values are
OK, then it should be used as the Goal parameter for the
CreateOrModifyElementFromStoragePool method. If not, continue with the next step.
2. If you would like to change the value of some or all of the properties in the
TPD_StorageSetting instance from step 1, then you should call the ModifyInstance
method to modify them.
3. Call the CreateOrModifyElementFromStoragePool method with the reference to the
TPD_StorageSetting from step 1 or 2 as the Goal parameter.
To create a legacy volume with FC drives, use a reference to the FC StoragePool as
the InPool parameter.
To create a legacy volume with SSDs, use reference to SSD StoragePool as the InPool
parameter.
To create a legacy volume with NL drives, use a reference to the NL StoragePool as
the InPool parameter.
To create a thinly provisioned volume or a fully provisioned volume that allocates from a
DynamicStoragepool, use reference to DynamicStoragePool as the InPool
parameter. For a TPVV, the ElementType parameter should also be set to
ThinlyProvisionedStorageVolume (5).
For a fully provisioned volume, the ElementType parameter should be set to
StorageVolume(2).
If the InPool parameter is NULL, by default, the FC drives are used to create the volume.
The parameter TheElement has to be NULL.
36 CIM API SMI-S Support