Create a volume using iSCSI
You can use this workflow to create a volume accessed through iSCSI protocol.
Choose the workflow to use based on the type of Cloud Volumes ONTAP deployment:
Create a volume using iSCSI for a single node
You can use this workflow to create volume using iSCSI for a single node system.
There are two workflows available depending on whether a new or existing iGroup is used. You need to select the correct workflow:
Create a volume using iSCSI with a new iGroup
|
|
If the properties aggregateName and maxNumOfDisksApprovedToAdd are not provided on the REST API call, the response will fail with a suggested name for the aggregate and the number of disks needed to fulfill the request.
|
Step 1. Select the system
Perform the workflow Get systems and choose the publicId value for the workingEnvironmentId parameter and the svmName value for the svmName parameter. From the capacityFeatures field in the response, choose the value of s3 for the capacityTier parameter.
Step 2. Select the aggregate
Perform the workflow Get aggregates and choose the name for the aggregateName value. From the providerVolumes field in the response, you must also choose the value of diskType for the providerVolumeType parameter, the value of iops for the iops parameter, and the value of throughput for the throughput parameter.
Step 3. Choose the size for the disk
Choose the size value for the size:size parameter. The size:unit must be one of the following: TB, GB, MB, KB, or Byte.
Step 4. Choose the iscasiInfo parameters
You must choose the following values for the REST API call:
-
A unique igroup name for
igroupCreationRequest→igroupNameparameter -
The required iqn’s to
igroupCreationRequest→initiatorsparameter. -
The required operating system for the
osNameparameter from one of the following:-
windows
-
linux
-
vmware
-
windows_2008
-
windows_gpt
-
Step 5. Create the quote
Perform the workflow Create a quote. This is a recommended step but is not mandatory.
Step 6. Create the volume
You can issue the REST API call to create a volume.
This REST API call uses the following method and endpoint.
| HTTP method | Path |
|---|---|
POST |
/occm/api/vsa/volumes |
curl --request POST \
--location "https://api.bluexp.netapp.com/occm/api/vsa/volumes?createAggregateIfNotFound=false" \
--header 'Content-Type: application/json' \
--header 'x-agent-id: <AGENT_ID>' \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--d @JSONinput
The JSON input example includes the minimum list of parameters.
| Parameter | Type | Required | Description |
|---|---|---|---|
<SVM_NAME> |
Query |
Yes |
Identifies the SVM |
|
Query |
Yes |
Identifies the system ID |
<AGGR_NAME> |
Query |
Yes |
Identifies the aggregate |
|
Query |
Yes |
Specifies the provider volume type. |
|
Query |
Yes |
Specifies the input/output operations per second. |
|
Query |
Yes |
Specifies the throughput. |
If aggregate name does not exist, you can set the createAggregateIfNotFound query parameter to true which allows the aggregate not-found condition.
{
"workingEnvironmentId": "VsaWorkingEnvironment-Z1bEUQE6",
"svmName": "svm_testcvosn",
"aggregateName": "aggr1",
"name": "mysql_data_volume",
"size": {
"size": "1",
"unit": "GB"
},
"snapshotPolicyName": "default",
"iscsiInfo": {
"igroupCreationRequest": {
"igroupName": "myIgroup",
"initiators": [
"iqn.1994-05.com.redhat:96de86825216",
"iqn.1994-05.com.redhat:96de86823426"
]
},
"osName": "linux"
},
"enableThinProvisioning": true,
"enableCompression": true,
"enableDeduplication": true,
"maxNumOfDisksApprovedToAdd": 0,
"evCapacityApprovedToAdd": null,
"verifyNameUniqueness": true,
"providerVolumeType": "gp3",
"iops": 3000,
"throughput": 250,
"capacityTier": "S3",
"tieringPolicy": "auto",
"minimumCoolingDays": 31
}
None
Create a volume using iSCSI with an existing iGroup
|
|
If the properties aggregateName and maxNumOfDisksApprovedToAdd are not provided on the REST API call, the response will fail with a suggested name for the aggregate and the number of disks needed to fulfill the request.
|
Step 1. Select the system
Perform the workflow Get systems and choose the publicId value for the workingEnvironmentId parameter and the svmName value for the svmName parameter.
Step 2. Select the aggregate
Perform the workflow Get aggregates and choose the name for the aggregateName parameter.
Step 3. Choose the size for the disk
Choose the size value for the size:size parameter. The size:unit must be one of the following: TB, GB, MB, KB, or Byte.
Step 4. Choose the iGroup
Perform the workflow Get iGroups and choose the igroups for the iscasiInfo → igroups value. Also select the osType value for the iscasiInfo → osName.
Step 5. Create the quote
Perform the workflow Create a quote. This is a recommended step but is not mandatory.
Step 6. Create the volume
You can issue the REST API call to create a volume.
This REST API call uses the following method and endpoint.
| HTTP method | Path |
|---|---|
POST |
/occm/api/vsa/volumes |
curl --request POST \
--location "https://api.bluexp.netapp.com/occm/api/vsa/volumes?createAggregateIfNotFound=false" \
--header "Content-Type: application/json" \
--header "x-agent-id: <AGENT_ID>" \
--header "Authorization: Bearer <ACCESS_TOKEN>" \
--d @JSONinput
The JSON input example includes the minimum list of parameters.
| Parameter | Type | Required | Description |
|---|---|---|---|
<SVM_NAME> |
Query |
Yes |
Identifies the SVM |
|
Query |
Yes |
Identifies the system ID |
<AGGR_NAME> |
Query |
Yes |
Identifies the aggregate |
If an aggregate name does not exist, you can set the createAggregateIfNotFound query parameter to true which allows the aggregate not-found condition.
{
"workingEnvironmentId": "VsaWorkingEnvironment-UvFmWXoD",
"svmName": "svm_zivaws01we01",
"aggregateName": "aggr1",
"name": "zivaws01we01vol05Iscsi",
"size": {
"size": 100,
"unit": "GB"
},
"iscsiInfo": {
"igroups": ["zivIgroup1"],
"osName": "linux"
},
"snapshotPolicyName": "default",
"enableThinProvisioning": true,
"enableCompression": true,
"enableDeduplication": true,
"maxNumOfDisksApprovedToAdd": 0
}
None
Create a volume using iSCSI for a high availability pair
You can use this workflow to create volume using iSCSI for an HA system.
There are two workflows available depending on whether a new or existing iGroup is used. You need to select the correct workflow:
Create a volume using iSCSI with a new iGroup
|
|
If the properties aggregateName and maxNumOfDisksApprovedToAdd are not provided on the REST API call, the response will fail with a suggested name for the aggregate and the number of disks needed to fulfill the request.
|
Step 1. Select the system
Perform the workflow Get systems and choose the publicId value for the workingEnvironmentId parameter and the svmName value for the svmName parameter. From the capacityFeatures field in the response, choose the value of s3 for the capacityTier parameter.
Step 2. Select the aggregate
Perform the workflow Get aggregates and choose the name for the aggregateName parameter. From the providerVolumes field in the response, you must also choose the value of diskType for the providerVolumeType parameter, the value of iops for the iops parameter, and the value of throughput for the throughput parameter.
Step 3. Choose the size for the disk
Choose the size value for the size:size parameter. The size:unit must be one of the following: TB, GB, MB, KB, or Byte.
Step 4. Choose the iscasiInfo parameters
You must choose the following values for the REST API call:
-
A unique igroup name for
igroupCreationRequest→igroupNameparameter -
The required iqn’s to
igroupCreationRequest→initiatorsparameter. -
The required operating system for the
osNameparameter from one of the following:-
windows
-
linux
-
vmware
-
windows_2008
-
windows_gpt
-
Step 5. Create the quote
Perform the workflow Create a quote.This is a recommended step but is not mandatory.
Step 6. Create the volume
You can issue the REST API call to create a volume.
This REST API call uses the following method and endpoint.
| HTTP method | Path |
|---|---|
POST |
/occm/api/aws/ha/volumes |
curl --request POST \
--location "https://api.bluexp.netapp.com/occm/api/aws/ha/volumes?createAggregateIfNotFound=false" \
--header "Content-Type: application/json" \
--header "x-agent-id: <AGENT_ID>" \
--header "Authorization: Bearer <ACCESS_TOKEN>" \
--d @JSONinput
The JSON input example includes the minimum list of parameters.
| Parameter | Type | Required | Description |
|---|---|---|---|
<SVM_NAME> |
Query |
Yes |
Identifies the SVM |
|
Query |
Yes |
Identifies the system ID |
<AGGR_NAME> |
Query |
Yes |
Identifies the aggregate |
If aggregate name does not exist, you can set the createAggregateIfNotFound query parameter to true which allows the aggregate not-found condition.
{
"workingEnvironmentId": "VsaWorkingEnvironment-ogAu9i3S",
"svmName": "svm_testcvoha",
"aggregateName": "aggr1",
"name": "volume_iscsi",
"size": {
"size": "1",
"unit": "GB"
},
"snapshotPolicyName": "default",
"iscsiInfo": {
"igroupCreationRequest": {
"igroupName": "myIgroup",
"initiators": [
"iqn.1994-05.com.redhat:96de86825216",
"iqn.1994-05.com.redhat:96de86823426"
]
},
"osName": "linux"
},
"enableThinProvisioning": true,
"enableCompression": true,
"enableDeduplication": true,
"maxNumOfDisksApprovedToAdd": 0,
"evCapacityApprovedToAdd": null,
"verifyNameUniqueness": true,
"providerVolumeType": "gp3",
"iops": 3000,
"throughput": 250,
"capacityTier": "S3",
"tieringPolicy": "auto",
"minimumCoolingDays": 31
}
None
Create a volume using iSCSI with an existing iGroup
|
|
If the properties aggregateName and maxNumOfDisksApprovedToAdd are not provided on the REST API call, the response will fail with a suggested name for the aggregate and the number of disks needed to fulfill the request.
|
Step 1. Select the system
Perform the workflow Get systems and choose the publicId value for the workingEnvironmentId parameter and the svmName value for the svmName parameter.
Step 2. Select the aggregate
Perform the workflow Get aggregates and choose the name for the aggregateName parameter.
Step 3. Choose the size for the disk
Choose the size value for the size:size parameter. The size:unit must be one of the following: TB, GB, MB, KB, or Byte.
Step 4. Choose the iGroup
Perform the workflow Get iGroups and choose the igroups for the iscasiInfo → igroups value. Also select the osType value for the iscasiInfo → osName.
Step 5. Create the quote
Perform the workflow Create a quote. This is a recommended step but is not mandatory.
Step 6. Create the volume
You can issue the REST API call to create a volume.
This REST API call uses the following method and endpoint.
| HTTP method | Path |
|---|---|
POST |
/occm/api/vsa/volumes |
curl --request POST \
--location "https://api.bluexp.netapp.com/occm/api/aws/ha/volumes?createAggregateIfNotFound=false" \
--header "Content-Type: application/json" \
--header "x-agent-id: <AGENT_ID>" \
--header "Authorization: Bearer <ACCESS_TOKEN>" \
--d @JSONinput
The JSON input example includes the minimum list of parameters.
| Parameter | Type | Required | Description |
|---|---|---|---|
<SVM_NAME> |
Query |
Yes |
Identifies the SVM |
|
Query |
Yes |
Identifies the system ID |
<AGGR_NAME> |
Query |
Yes |
Identifies the aggregate |
If an aggregate name does not exist, you can set the createAggregateIfNotFound query parameter to true which allows the aggregate not-found condition.
{
"workingEnvironmentId": "VsaWorkingEnvironment-UvFmWXoD",
"svmName": "svm_zivaws01we01",
"aggregateName": "aggr1",
"name": "zivaws01we01vol05Iscsi",
"size": {
"size": 100,
"unit": "GB"
},
"iscsiInfo": {
"igroups": ["zivIgroup1"],
"osName": "linux"
},
"snapshotPolicyName": "default",
"enableThinProvisioning": true,
"enableCompression": true,
"enableDeduplication": true,
"maxNumOfDisksApprovedToAdd": 0
}
None