Overview

A disk offering is a specification of a volume, which defines the size of a volume and how the volume will be created.

Disk offerings can be used to create both root volumes and data volumes.


Inventory

Properties

Name Description Optional Optional Value Starting Version
uuid The UUID. For more information, see Resource Property. 0.6
name The name. For more information, see Resource Property. 0.6
description The description. For more information, see Resource Property. Yes 0.6
diskSize The disk size. Unit: byte. For more information, see Disk Size. 0.6
state The state. For more information, see State.
  • Enabled
  • Disabled
0.6
type The reserved field.
  • zstack
0.6
allocatorStrategy The allocator strategy. For more information, see Allocator Strategy.
  • DefaultHostAllocatorStrategy
  • LastHostPreferredAllocatorStrategy
  • LeastVmPreferredHostAllocatorStrategy
  • MinimumCPUUsageHostAllocatorStrategy
  • MinimumMemoryUsageHostAllocatorStrategy
  • MaxInstancePerHostHostAllocatorStrategy
0.6
sortKey 0.6
createDate The creation date. For more information, see Resource Property. 0.6
lastOpDate The last operation date. For more information, see Resource Property. 0.6

Sample

{     "inventories": [         {             "allocatorStrategy": "DefaultPrimaryStorageAllocationStrategy",             "createDate": "Oct 30, 2017 3:09:45 PM",             "description": "",             "diskSize": 10737418240,             "lastOpDate": "Oct 30, 2017 3:09:45 PM",             "name": "10G",             "sortKey": 0,             "state": "Enabled",             "type": "DefaultDiskOfferingType",             "uuid": "6c2385bb60f84c269504ca6ea71fe2d1"         }     ],     "success": true }

Disk Size

DiskSize defines the virtual size of a volume. Virtual size is the size that a volume claims for. In other word, the virtual size is the maximum size that a volume can occupy in storage system after it is fully filled.

State

A disk offering has the following two states:
  • Enabled:

    Indicates that volumes can be created from this disk offering.

  • Disabled:

    Indicates that volumes cannot be created from this disk offering.

Allocator Strategy

Allocator strategy defines how ZStack selects a primary storage when creating a new volume. Currently, the only supported strategy is DefaultPrimaryStorageAllocationStrategy, which finds a primary storage according to the following conditions:
1. The state is Enabled. 2. The status is Connected. 3. The available capacity (availableCapacity) is greater than the disk size (diskSize) of the disk offering. 4. The primary storage is attached to the cluster that runs the VM instance to which the volume will be attached.






Back to Top

Download

Already filled the basic info?Click here.

Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

An email with a verification code will be sent to you. Make sure the address you provided is valid and correct.

Download

Not filled the basic info yet? Click here.

Invalid email address or mobile number.

Email Us

contact@zstack.io
ZStack Training and Certification
Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

Email Us

contact@zstack.io
Request Trial
Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

Email Us

contact@zstack.io

The download link is sent to your email address.

If you don't see it, check your spam folder, subscription folder, or AD folder. After receiving the email, click the URL to download the documentation.

The download link is sent to your email address.

If you don't see it, check your spam folder, subscription folder, or AD folder.
Or click on the URL below. (For Internet Explorer, right-click the URL and save it.)

Thank you for using ZStack products and services.

Submit successfully.

We'll connect soon.

Thank you for using ZStack products and services.