本文說明如何建立 Hyperdisk 集區。Hyperdisk 集區是區塊儲存空間資源,可協助您匯總管理 Hyperdisk 區塊儲存空間資源。Hyperdisk 集區有下列變體:
- Hyperdisk 儲存空間集區:適用於大多數工作負載
- Hyperdisk Exapool:建議用於需要超過 100 GiB/s 並行效能的超大型工作負載
如要瞭解不同類型的 Hyperdisk 集區,請參閱 Hyperdisk 集區總覽。
事前準備
-
如果尚未設定驗證,請先完成設定。
驗證可確認您的身分,以便存取 Google Cloud 服務和 API。如要從本機開發環境執行程式碼或範例,可以選取下列任一選項,向 Compute Engine 進行驗證:
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
-
安裝 Google Cloud CLI。 完成後,執行下列指令來初始化 Google Cloud CLI:
gcloud init若您採用的是外部識別資訊提供者 (IdP),請先使用聯合身分登入 gcloud CLI。
- Set a default region and zone.
Go
如要在本機開發環境中使用本頁的 Go 範例,請安裝並初始化 gcloud CLI,然後使用使用者憑證設定應用程式預設憑證。
安裝 Google Cloud CLI。
若您採用的是外部識別資訊提供者 (IdP),請先使用聯合身分登入 gcloud CLI。
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.
If an authentication error is returned, and you are using an external identity provider (IdP), confirm that you have signed in to the gcloud CLI with your federated identity.
詳情請參閱 Set up authentication for a local development environment。
Java
如要在本機開發環境中使用本頁的 Java 範例,請安裝並初始化 gcloud CLI,然後使用使用者憑證設定應用程式預設憑證。
安裝 Google Cloud CLI。
若您採用的是外部識別資訊提供者 (IdP),請先使用聯合身分登入 gcloud CLI。
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.
If an authentication error is returned, and you are using an external identity provider (IdP), confirm that you have signed in to the gcloud CLI with your federated identity.
詳情請參閱 Set up authentication for a local development environment。
Node.js
如要在本機開發環境中使用本頁的 Node.js 範例,請安裝並初始化 gcloud CLI,然後使用使用者憑證設定應用程式預設憑證。
安裝 Google Cloud CLI。
若您採用的是外部識別資訊提供者 (IdP),請先使用聯合身分登入 gcloud CLI。
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.
If an authentication error is returned, and you are using an external identity provider (IdP), confirm that you have signed in to the gcloud CLI with your federated identity.
詳情請參閱 Set up authentication for a local development environment。
REST
如要在本機開發環境中使用本頁的 REST API 範例,請使用您提供給 gcloud CLI 的憑證。
安裝 Google Cloud CLI。
若您採用的是外部識別資訊提供者 (IdP),請先使用聯合身分登入 gcloud CLI。
詳情請參閱 Google Cloud 驗證說明文件中的「使用 REST 進行驗證」。
必要角色和權限
如要取得建立 Hyperdisk 集區所需的權限,請要求管理員授予您專案的下列 IAM 角色:
- Compute 執行個體管理員 (v1) (
roles/compute.instanceAdmin.v1) -
如要連線至可當做服務帳戶執行的 VM 執行個體:
服務帳戶使用者 (v1) (
roles/iam.serviceAccountUser角色)
如要進一步瞭解如何授予角色,請參閱「管理專案、資料夾和組織的存取權」。
這些預先定義的角色具備建立 Hyperdisk 集區所需的權限。如要查看確切的必要權限,請展開「Required permissions」(必要權限) 部分:
所需權限
如要建立 Hyperdisk 集區,必須具備下列權限:
-
專案的
compute.storagePools.create -
專案的
compute.storagePools.setLabels
限制
建立 Hyperdisk 儲存空間集區時,須遵守下列限制:
資源限制:
- 您可以建立 Hyperdisk 儲存空間集區,佈建容量最高可達 5 PiB。
- 每小時最多可建立 5 個儲存集區。
- 你每天最多可以建立 10 個儲存集區。
- 每個專案最多可建立 10 個儲存集區。
- 集區的佈建模式無法變更。舉例來說,您無法將標準容量儲存空間集區變更為進階容量儲存空間集區,也無法將進階效能儲存空間集區變更為標準效能儲存空間集區。
- 集區是可用區資源。
- 一個儲存集區最多可建立 10,000 個磁碟。
- Hyperdisk 儲存空間集區只能與 Compute Engine 搭配使用。Cloud SQL 執行個體無法使用 Hyperdisk Storage 集區。
- 在 24 小時內,您最多可以變更儲存空間集區的佈建容量或效能兩次。
- 您只能在 Hyperdisk Balanced 集區中建立 Hyperdisk Balanced 磁碟,且只能在 Hyperdisk Throughput 集區中建立 Hyperdisk Throughput 磁碟
- 如要變更 Exapool 的佈建容量、IOPS 或輸送量,請務必與帳戶團隊聯絡。
- 如要刪除 Exapool,請與帳戶團隊聯絡。
儲存空間集區的磁碟限制:
- 只有位於相同專案和可用區的新磁碟,才能在集區中建立。
- 您無法將磁碟移入或移出集區。如要將磁碟移進或移出集區,必須透過快照重新建立磁碟。詳情請參閱「變更磁碟類型」。
- 如要在集區中建立開機磁碟,必須使用 Hyperdisk Balanced 儲存空間集區或 Hyperdisk Balanced Exapool。
- 集區不支援區域性磁碟。
- 您無法複製、建立即時快照,或設定集區中磁碟的非同步複製。
容量範圍和佈建效能限制
建立儲存空間集區時,佈建的容量、IOPS 和處理量不得超過「集區限制」一文所述的限制。
建立 Hyperdisk 儲存空間集區
如要建立新的 Hyperdisk 儲存集區,請使用 Google Cloud 控制台、Google Cloud CLI 或 REST。建立儲存集區時,必須指定下列屬性:
- 可用區
- 儲存空間集區類型
- 容量佈建模式
- 已佈建的集區容量
- 效能佈建類型
已佈建集區的 IOPS 和處理量
控制台
- 前往 Google Cloud 控制台的「Create a storage pool」(建立儲存集區) 頁面。
前往「建立儲存集區」頁面 - 在「Name」(名稱) 欄位中,輸入儲存集區的專屬名稱。
- 選用:在「Description」(說明) 欄位中輸入儲存集區的說明。
- 選取要建立儲存空間集區的「Region」(區域) 和「Zone」(可用區)。
- 選擇「儲存空間集區類型」的值。
在「容量類型」欄位中選擇佈建類型,並在「儲存空間集區容量」欄位中指定要為儲存空間集區佈建的容量。大小範圍為 10 TiB 至 1 PiB。
如要建立大容量儲存空間集區,您可能需要申請調整配額。
在「效能類型」欄位中選擇佈建類型。您可以在 Hyperdisk 儲存空間集區中使用下列佈建類型:
- 標準容量:系統會從儲存空間集區的已佈建總容量中,扣除在儲存空間集區中建立的每個磁碟所佈建的容量。
- 進階容量:儲存空間集區可享有自動精簡配置和資料縮減功能。系統只會從儲存空間集區的總佈建容量中,扣除實際寫入的資料量。
- 標準效能:系統會從儲存空間集區的已佈建總效能中,扣除為儲存空間集區中建立的每個磁碟佈建的效能。
- 效能進階:每個磁碟的佈建效能都受益於精簡佈建。只有磁碟使用的效能量會從儲存空間集區的已佈建總效能扣除。
如果是 Hyperdisk Balanced 儲存空間集區,請在「佈建 IOPS」欄位中,輸入要為儲存空間集區佈建的 IOPS。
如果是 Hyperdisk Throughput 儲存空間集區或 Hyperdisk Balanced 儲存空間集區,請在「佈建輸送量」欄位中,輸入要為儲存空間集區佈建的輸送量。
按一下「提交」即可建立儲存集區。
gcloud
如要建立 Hyperdisk 儲存空間集區,請使用
gcloud compute storage-pools create指令。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更改下列內容:
- NAME:專屬的儲存空間集區名稱。
- ZONE:要建立 Storage Pool 的區域,例如
us-central1-a。 - STORAGE_POOL_TYPE:要儲存在儲存空間集區中的磁碟類型。允許的值為
hyperdisk-throughput和hyperdisk-balanced。 - CAPACITY_TYPE:選用:儲存空間集區的容量佈建類型。允許的值為
advanced和standard。如未指定,則會使用advanced值。 - POOL_CAPACITY:為新儲存空間集區佈建的總容量,預設以 GiB 為單位。
- PERFORMANCE_TYPE:選用:儲存空間集區的效能佈建類型。允許的值為
advanced和standard。如未指定,則會使用advanced值。 - IOPS:為儲存空間集區佈建的 IOPS。這個旗標只能與 Hyperdisk Balanced 儲存空間集區搭配使用。
- THROUGHPUT:為儲存空間集區佈建的處理量 (以 MB/秒為單位)。
- DESCRIPTION:(選用) 描述儲存集區的文字字串。
REST
使用
storagePools.insert方法建構POST要求,以建立 Hyperdisk 儲存空間集區。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" }更改下列內容:
- PROJECT_ID:專案 ID
- ZONE:要建立 Storage Pool 的區域,例如
us-central1-a。 - NAME:儲存集區的專屬名稱。
- DESCRIPTION:(選用) 描述儲存集區的文字字串。
- POOL_CAPACITY:新儲存空間集區的總佈建容量,預設以 GiB 為單位。
- STORAGE_POOL_TYPE:要儲存在儲存空間集區中的磁碟類型。允許的值為
hyperdisk-throughput和hyperdisk-balanced。 - IOPS:(選用) 為儲存集區佈建的 IOPS。這個旗標只能與 Hyperdisk Balanced 儲存空間集區搭配使用。
- THROUGHPUT:(選填) 要為儲存空間集區佈建的 MB/秒輸送量。
- CAPACITY_TYPE:選用:儲存空間集區的容量佈建類型。允許的值為
advanced和standard。如未指定,則會使用advanced值。 - PERFORMANCE_TYPE:選用:儲存空間集區的效能佈建類型。允許的值為
advanced和standard。如未指定,則會使用advanced值。
Go
Java
Node.js
建立 Hyperdisk Exapool
Hyperdisk Exapool 現已正式發布,但僅限許可清單中的使用者。 如要建立 Hyperdisk Exapool,請與帳戶團隊聯絡。
後續步驟
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-02-18 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2026-02-18 (世界標準時間)。"],[],[]] -