Create a Disk Offering
On the main menu of ZStack Cloud, choose . On the Disk Offering page, click Create Disk Offering. The Create Disk Offering page appears.
On the displayed page, set the following parameters:
- Name: Enter a name for the disk offering.
The name must be 1 to 128 characters in length and can contain Chinese characters, English letters, digits, hyphens (-), underscores (_), periods (.), parenthesis (), colons (:), and plus signs (+).
- Description: Optional. Enter a description for the disk offering.
- Disk Size: Set the capacity of a volume.
- Set Disk Bandwidth: Optional. Set an upper limit for the I/O
bandwidth of a volume.If you do not set this parameter, the I/O bandwidth of a volume is not limited. Unit: MB/s, GB/s, and TB/s. You can set the I/O bandwidth by using either of the following methods:
- Total Speed: Set an upper limit for the total read and write speed of a volume.
- Read/Write Speed: Set an upper limit for the read or write
speed of a volume.
- Read Speed: Optional. Set an upper limit for the read speed of a volume.
- Write Speed: Optional. Set an upper limit for the write speed of a volume.
- Advanced Parameter: Optional. Configure a JSON file to customize
disk performance.The following is a sample JSON configuration file:
The preceding configuration settings can be divided into the following three parts:{ "allocate": { "primaryStorage": { "type": "Enter a primary storage type. Valid values: Ceph, LocalStorage, NFS, and SharedBlock.", "uuid": "Enter the UUID of a primary storage.", "poolNames": [ "Enter the name of a Ceph pool. Delete this parameter if you do not specify a Ceph primary storage." ] } }, "priceUserConfig": { "volume": { "priceKeyName": "Set a display name of the billing type for data volumes. The advanced parameter setting of the billing type in the pricing list must be consistent with this setting. Otherwise, this billing type cannot be generated." } }, "displayAttribute": { "volume": { "diskType": "Set the attribute display name of data volumes. You can view this parameter setting on the volume details page." } } }
- Configure the primary storage where a data volume is
stored:
"allocate": { "primaryStorage": { "type": "Enter a primary storage type. Valid values: Ceph, LocalStorage, NFS, and SharedBlock.", "uuid": "Enter the UUID of a primary storage.", "poolNames": [ "Enter the name of a Ceph pool. Delete this parameter if you do not specify a Ceph primary storage." ] } }
type
: Enter a primary storage type. Valid values: Ceph, LocalStorage, NFS, and SharedBlock. If you specify a Ceph primary storage, you can specify a Ceph pool.uuid
: Enter the UUID of a primary storage.poolNames
: Enter the name of a Ceph pool. Delete this parameter if you do not specify a Ceph primary storage.
Note: If you do not specify a primary storage, delete the preceding parameter settings.
- Configure the billing type of a data
volume:
"priceUserConfig": { "volume": { "priceKeyName": "Set a display name of the billing type for data volumes. The advanced parameter setting of the billing type in the pricing list must be consistent with this setting. Otherwise, this billing type cannot be generated." } }
priceKeyName
: Set a billing item for data volumes. The advanced parameter setting of the billing item in the pricing list must be consistent with this setting. Otherwise, this billing item cannot be generated.
Note: If you do not need billing settings, delete the preceding parameter settings.
- Configure the display attributes of a data
volume:
"displayAttribute": { "volume": { "diskType": "Set the attribute display name of data volumes. You can view this parameter setting on the volume details page." } }
volume
: Set the attribute display name of data volumes. You can view this parameter setting on the volume details page. You can set multiple attributes in key-value pair format.
Note: If you do not need special display, delete the preceding parameter settings.
- Configure the primary storage where a data volume is
stored:
