|
The create-lun operation triggers the creation of a volume (generally called a LUN) in the specified RAID Group or Thin Pool in the specified storage system.
Once a LUN has been created, it usually needs to be added to a storage group so that a server (a host) can access the newly created volume.
Adapter Request Elements for 'create-lun' Operation
|
|
|
|
operation-name
|
Specifies the name of the operation you want to perform.
| • | Valid value: create-lun. |
|
Yes
|
arguments
|
Parent element for <argument> element.
|
Yes
|
argument
|
Specifies a list of arguments that is required for this operation
|
Yes
|
target
|
Specifies the connection information for an EMC SMI-S Provider.
| • | Valid value: The value specified for <target> element must be the same as the value that has been specified for the name attribute of <config> element in the adapter configuration. You can skip this element. In this case the request will be executed on the first defined adapter configuration. You can leave this element empty. In this case the request will be executed on the first defined adapter configuration. |
| • | Default value: The first defined adapter configuration. |
|
No
|
timeout-secs
|
Specifies the time in seconds after which the attempt to connect to the EMC SMI-S Provider times out. The "timeout-secs" specified in adapter request overrides the value specified in adapter configuration.
| • | Valid value: A numeric value which specifies the time in seconds. |
| • | Default Value: 180, if no "timeout-secs" is provided in adapter configuration. |
|
No
|
You can specify one or more of the following elements to retrieve specific information. If none of the elements is specified, then all the details are fetched.
|
storage-system-name
|
Specifies the user defined storage system name.
| • | Valid value: Please refer to the get-storage-system operation to list the valid values of this field. |
|
No
|
size-bytes
|
Specifies the size of the LUN to be created.
| • | Example value: 1073741824 |
|
No
|
raid-group
or
thin-pool
|
Specifies the correct RAID group name or thin pool name on which the LUN must be created. The RAID group or thin pool must already exist.
|
No
|
element-type
|
Specifies the type of LUN (Thin or Traditional) to be created.
| • | Valid value: 2 = Traditional, 5 = Thin |
|
No
|
synchronous
|
Specifies whether to wait until the job completes. Any action performed by the EMC SMI-S Provider results in creating a job. If the 'synchronous' element is set to yes, the adapter waits until the job completes. Otherwise the job will be queued.
|
No
|
number-of-luns
|
Number of LUNs to be created
| • | Valid value: numeric value |
|
No
|
job-completion-timeout-secs
|
Specifies the time in seconds after which the attempt to complete the job times out.
| • | Valid value: A numeric value which specifies the time in seconds. |
| • | Default value: 180 seconds |
|
No
|
Sample Adapter Request for 'create-lun' Operation
<emc-storage-request>
<operation-name>create-lun</operation-name>
<arguments>
<argument>
<storage-system-name>CLARiiON+CKM00083900053</storage-system-name>
<raid-group>0003</raid-group>
<size-bytes>104857180</size-bytes>
<number-of-luns>5</number-of-luns>
<synchronous>yes</synchronous>
</argument>
</arguments>
</emc-storage-request>
Adapter Response Elements for 'create-lun' Operation
|
|
|
storage-system-name
|
Name of the storage system.
|
raid-group
|
Name of the RAID group.
|
lun-name
|
Name of the LUN.
|
size-bytes
|
Size of the LUN in bytes.
|
job-id
|
Number identifying the job.
|
job-status
|
Status of the job.
|
job-status-description
|
Detailed information about the status of the job.
|
Sample Adapter Response for 'create-lun' Operation
<emc-storage-response>
<metadata>
<status>success</status>
<response-count>1</response-count>
</metadata>
<responses>
<response>
<metadata>
<status>success</status>
<execution-milliseconds>25422</execution-milliseconds>
<line-count>7</line-count>
<target>pythagoras-p27p</target>
<config-name>pythagoras-p27p</config-name>
</metadata>
<output>
<luns>
<lun>
<storage-system-name>CLARiiON+CKM00083900053</storage-system-name>
<raid-group>0003</raid-group>
<lun-name>00018</lun-name>
<size-bytes>104857180</size-bytes>
<job-id>260920567</job-id>
<job-status>Completed</job-status>
<job-status-description>Completed - Volume Create</job-status-description>
</lun>
</luns>
</output>
</response>
</responses>
</emc-storage-response>
|