Hyperdisk Storage Pools are a new block storage resource that helps you manage your Hyperdisk block storage in aggregate. Hyperdisk Storage Pools are available in Hyperdisk Throughput Storage Pool and Hyperdisk Balanced Storage Pool variants.
You must specify the following properties when creating a storage pool:
- Zone
- Storage pool type
- Capacity provisioning type
- Pool provisioned capacity
- Performance provisioning type
- Pool provisioned IOPS and throughput
You can use Standard capacity, Advanced capacity, Standard performance, or Advanced performance provisioning types with Hyperdisk Storage Pools:
- Standard capacity: The capacity provisioned for each disk created in the storage pool is deducted from the total provisioned capacity of the storage pool.
- Advanced capacity: The storage pool benefits from thin-provisioning and data reduction. Only the amount of actual written data is deducted from the total provisioned capacity of the storage pool.
- Standard performance: The performance provisioned for each disk created in the storage pool is deducted from the total provisioned performance of the storage pool.
- Advanced performance: The performance provisioned for each disk benefits from
thin-provisioning. Only the amount of performance used by a disk is
deducted from the total provisioned performance of the storage pool.
Before you begin
-
If you haven't already, set up authentication.
Authentication is
the process by which your identity is verified for access to Google Cloud services and APIs.
To run code or samples from a local development environment, you can authenticate to
Compute Engine as follows.
Select the tab for how you plan to use the samples on this page:
Console
When you use the Google Cloud console to access Google Cloud services and APIs, you don't need to set up authentication.
gcloud
-
Install the Google Cloud CLI, then initialize it by running the following command:
gcloud init
- Set a default region and zone.
Go
To use the Go samples on this page in a local development environment, install and initialize the gcloud CLI, and then set up Application Default Credentials with your user credentials.
- Install the Google Cloud CLI.
-
To initialize the gcloud CLI, run the following command:
gcloud init
-
If you're using a local shell, then create local authentication credentials for your user account:
gcloud auth application-default login
You don't need to do this if you're using Cloud Shell.
For more information, see Set up authentication for a local development environment.
Java
To use the Java samples on this page in a local development environment, install and initialize the gcloud CLI, and then set up Application Default Credentials with your user credentials.
- Install the Google Cloud CLI.
-
To initialize the gcloud CLI, run the following command:
gcloud init
-
If you're using a local shell, then create local authentication credentials for your user account:
gcloud auth application-default login
You don't need to do this if you're using Cloud Shell.
For more information, see Set up authentication for a local development environment.
Node.js
To use the Node.js samples on this page in a local development environment, install and initialize the gcloud CLI, and then set up Application Default Credentials with your user credentials.
- Install the Google Cloud CLI.
-
To initialize the gcloud CLI, run the following command:
gcloud init
-
If you're using a local shell, then create local authentication credentials for your user account:
gcloud auth application-default login
You don't need to do this if you're using Cloud Shell.
For more information, see Set up authentication for a local development environment.
REST
To use the REST API samples on this page in a local development environment, you use the credentials you provide to the gcloud CLI.
Install the Google Cloud CLI, then initialize it by running the following command:
gcloud init
For more information, see Authenticate for using REST in the Google Cloud authentication documentation.
-
Required roles and permissions
To get the permissions that you need to create a storage pool, ask your administrator to grant you the following IAM roles on the project:
-
Compute Instance Admin (v1) (
roles/compute.instanceAdmin.v1
) -
To connect to a VM instance that can run as a service account:
Service Account User (v1) (
roles/iam.serviceAccountUser
role)
For more information about granting roles, see Manage access to projects, folders, and organizations.
These predefined roles contain the permissions required to create a storage pool. To see the exact permissions that are required, expand the Required permissions section:
Required permissions
The following permissions are required to create a storage pool:
-
compute.storagePools.create
on the project -
compute.storagePools.setLabels
on the project
You might also be able to get these permissions with custom roles or other predefined roles.
Limitations
Take note of the following limitations when creating Hyperdisk Storage Pools:
Resource limits:
- You can create a Hyperdisk Storage Pool with up to 1 PiB of provisioned capacity.
- You can create a maximum of 5 storage pools per hour.
- You can create a maximum of 10 storage pools per day.
- You can create at most 10 storage pools per project.
- You can't change the provisioning model for a pool; you can't change a Standard capacity storage pool to an Advanced capacity storage pool or an Advanced performance storage pool to a Standard performance storage pool.
- Storage pools are a zonal resource.
- You can create up to 1,000 disks in a storage pool.
- You can use Hyperdisk Storage Pools with only Compute Engine. Cloud SQL instances cannot use Hyperdisk Storage Pools.
- You can change the provisioned capacity or performance of a storage pool at most two times in a 24 hour period.
Limits for disks in a storage pool:
- Only new disks in the same project and zone can be created in a storage pool.
- Moving disks in or out of a storage pool is not permitted. To move a disk in or out of a storage pool, you have to recreate the disk from a snapshot. For more information, see Change the disk type.
- To create boot disks in a storage pool, you must use a Hyperdisk Balanced Storage Pool.
- Storage pools don't support regional disks.
- You can't clone, create instant snapshots of, or configure Persistent Disk Asynchronous Replication for disks in a storage pool.
- Hyperdisk Balanced disks in a storage pool can't be attached to multiple compute instances.
Capacity ranges and provisioned performance limits
When creating a storage pool, the provisioned capacity, IOPS, and throughput are subject to the limits described in Limits for storage pools.
Create a Hyperdisk Storage Pool
To create a new Hyperdisk Storage Pool, use the Google Cloud console, Google Cloud CLI, or REST.
Console
- Go to the Create a storage pool page in the Google Cloud console.
Go to the Create Storage Pool page - In the Name field, enter a unique name for the storage pool.
- Optional: In the Description field, enter a description for the storage pool.
- Select the Region and Zone in which to create the storage pool.
- Choose a value for the Storage pool type.
Choose a provisioning type in the Capacity type field and specify the capacity to provision for the storage pool in the Storage pool capacity field. You can specify a size from 10 TiB to 1 PiB.
To create a storage pool with large capacity, you might have to request a higher quota.
Choose a provisioning type in the Performance type field.
For Hyperdisk Balanced Storage Pools, in the Provisioned IOPS field, enter the IOPS to provision for the storage pool.
For a Hyperdisk Throughput Storage Pool or Hyperdisk Balanced Storage Pool, in the Provisioned throughput field, enter the throughput to provision for the storage pool.
Click Submit to create the storage pool.
gcloud
To create a Hyperdisk Storage Pool, use the
gcloud compute storage-pools create
command.gcloud compute storage-pools create NAME \ --zone=ZONE \ --storage-pool-type=STORAGE_POOL_TYPE \ --capacity-provisioning-type=CAPACITY_TYPE \ --provisioned-capacity=POOL_CAPACITY \ --performance-provisioning-type=PERFORMANCE_TYPE \ --provisioned-iops=IOPS \ --provisioned-throughput=THROUGHPUT \ --description=DESCRIPTION
Replace the following:
- NAME: the unique storage pool name.
- ZONE: the zone in which to create the storage pool,
for example,
us-central1-a
. - STORAGE_POOL_TYPE: the type of disk to store in
the storage pool. The allowed values are
hyperdisk-throughput
andhyperdisk-balanced
. - CAPACITY_TYPE: Optional: the capacity
provisioning type of the storage pool. The allowed values are
advanced
andstandard
. If not specified, the valueadvanced
is used. - POOL_CAPACITY: the total capacity to provision for the new storage pool, specified in GiB by default.
- PERFORMANCE_TYPE: Optional: the performance
provisioning type of the storage pool. The allowed values are
advanced
andstandard
. If not specified, the valueadvanced
is used. - IOPS: the IOPS to provision for the storage pool. You can use this flag only with Hyperdisk Balanced Storage Pools.
- THROUGHPUT: the throughput in MBps to provision for the storage pool.
- DESCRIPTION: Optional: a text string that describes the storage pool.
REST
Construct a
POST
request to create a Hyperdisk Storage Pool by using thestoragePools.insert
method.POST https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/zones/ZONE/storagePools { "name": "NAME", "description": "DESCRIPTION", "poolProvisionedCapacityGb": "POOL_CAPACITY", "storagePoolType": "projects/PROJECT_ID/zones/ZONE/storagePoolTypes/STORAGE_POOL_TYPE", "poolProvisionedIops": "IOPS", "poolProvisionedThroughput": "THROUGHPUT", "capacityProvisioningType": "CAPACITY_TYPE", "performanceProvisioningType": "PERFORMANCE_TYPE" }
Replace the following:
- PROJECT_ID: the project ID
- ZONE: the zone in which to create the storage pool,
for example,
us-central1-a
. - NAME: a unique name for the storage pool .
- DESCRIPTION: Optional: a text string that describes the storage pool.
- POOL_CAPACITY: the total capacity to provision for the new storage pool, specified in GiB by default.
- STORAGE_POOL_TYPE: the type of disk to store in
the storage pool. The allowed values are
hyperdisk-throughput
andhyperdisk-balanced
. - IOPS: Optional: the IOPS to provision for the storage pool. You can use this flag only with Hyperdisk Balanced Storage Pools.
- THROUGHPUT: Optional: The throughput in MBps to provision for the storage pool.
- CAPACITY_TYPE: Optional: the capacity
provisioning type of the storage pool. The allowed values are
advanced
andstandard
. If not specified, the valueadvanced
is used. - PERFORMANCE_TYPE: Optional: the performance
provisioning type of the storage pool. The allowed values are
advanced
andstandard
. If not specified, the valueadvanced
is used.
Go
Java
Node.js
What's next?
- Learn how to manage Hyperdisk Storage Pools.
-
If you haven't already, set up authentication.
Authentication is
the process by which your identity is verified for access to Google Cloud services and APIs.
To run code or samples from a local development environment, you can authenticate to
Compute Engine as follows.