本文列出執行下列任一工作時可能發生的錯誤:
- 建立 Persistent Disk 或 Google Cloud Hyperdisk 磁碟區。
- 修改 Google Cloud Hyperdisk 或 Extreme 永久磁碟磁碟區的佈建大小或效能。
指定的尺寸或效能無效
建立 Hyperdisk 和 Extreme Persistent Disk 磁碟區,或更新其佈建效能時,如果為新磁碟指定的大小或效能限制過低或過高,可能會發生錯誤。
-
ERROR: (gcloud.compute.disks.create) Could not fetch resource: - Requested provisioned IOPS cannot be higher than 100,000.
-
ERROR: (gcloud.compute.disks.create) Could not fetch resource: - Requested provisioned throughput cannot be higher than 2,400. -
ERROR: (gcloud.compute.disks.create) Could not fetch resource: - Disk size cannot be greater than 65,536 GB for disk type hyperdisk-ml. -
ERROR: (gcloud.compute.disks.create) Could not fetch resource: Requested provisioned throughput cannot be smaller than 20.
解決方法:
如要解決這個問題,請為每個 Hyperdisk 類型指定允許範圍內的限制。如要瞭解各 Hyperdisk 類型的有效值,請參閱本文的「大小限制」和「效能限制」一節。
磁碟大小不符規定,因此無法增加佈建的 IOPS
建立極端永久磁碟或 Hyperdisk 磁碟區,或是更新現有磁碟的佈建效能時,如果指定的 IOPS 或處理量上限過高,導致磁碟大小無法負荷,可能會發生下列其中一個錯誤:
-
Requested provisioned IOPS is too high for the current disk size
-
Requested provisioned throughput is too high for the requested disk size.
如要解決這個問題,請按照下列步驟操作。
決定要將磁碟大小增加到支援所需效能限制的值,還是選擇磁碟目前大小支援的效能限制。如要瞭解磁碟類型的有效限制,請參閱下列清單中的對應頁面:
如要使用其他限制,請使用上一個步驟中選擇的效能限制重試作業。否則,如要瞭解如何增加 Hyperdisk 或 Extreme 永久磁碟的大小,請分別參閱「增加 Hyperdisk 的大小」或「增加永久磁碟的大小」一文。
將可用區磁碟轉換為區域性磁碟時,未指定 Hyperdisk Balanced High Availability 做為磁碟類型
嘗試從可用區 Hyperdisk Balanced 或 Hyperdisk Extreme 磁碟建立區域磁碟時,可能會收到類似下列的訊息。
ERROR: (gcloud.compute.disks.create) ... - Creating a regional disk of type hyperdisk-balanced is not supported.
解決方法
如要從區域性 Hyperdisk Balanced 或 Hyperdisk Extreme 磁碟建立區域性磁碟,請將磁碟複製到新的 Hyperdisk Balanced High Availability 磁碟。如果使用 gcloud CLI 或 REST 複製磁碟,則必須指定這個磁碟類型。
- 如果使用 gcloud CLI,請加入
--disk-type=hyperdisk-balanced-high-availability旗標。 - 如果您使用 Compute Engine API,請在要求主體中加入
type欄位,並將值設為hyperdisk-balanced-high-availability。
詳情請參閱「從區域磁碟建立地區磁碟副本」。
缺少 Hyperdisk Balanced 或 Hyperdisk Balanced High Availability 的效能限制
建立 Hyperdisk Balanced 或 Hyperdisk Balanced High Availability 磁碟區時,如要指定磁碟的自訂大小,必須明確指定佈建的 IOPS 和佈建的處理量。如果您指定自訂大小,但省略一或兩項成效限制,就會收到錯誤訊息。
解決方法
如要解決這個問題,請在建立磁碟時指定自訂大小,並同時指定佈建的 IOPS 和佈建的總處理量。如要瞭解各 Hyperdisk 類型的有效值,請參閱本頁的「效能限制」一節。
- 如果使用 gcloud CLI,請同時加入
--provisioned-iops和--provisioned-throughput旗標。 - 如果使用 REST,請在要求內容中加入
provisionedIops和provisionedThroughput欄位。
Hyperdisk 磁碟區的大小限制
為 Hyperdisk 磁碟區指定的大小必須在下表列出的範圍內。
| 磁碟類型 |
|---|
不過,附加至執行個體的所有 Hyperdisk 磁碟區總大小,不得超過 執行個體的 Hyperdisk 大小和附加限制。
Hyperdisk 磁碟區的效能限制
下表列出各 Hyperdisk 類型可指定的效能限制。不過,您可以指定的 IOPS 和總處理量等級也取決於磁碟區大小。如需各項限制的詳細摘要,請參閱 大小和效能限制一節,瞭解 Hyperdisk Balanced、Hyperdisk Balanced High Availability、Hyperdisk Extreme、Hyperdisk ML 和 Hyperdisk Throughput。
| Hyperdisk 類型 | IOPS 上限 | 處理量上限 (MiB/秒) |
|---|---|---|
| Hyperdisk Balanced | 160,000 | 2,400 |
| Hyperdisk Balanced High Availability | 100,000 | 2,400 |
| Hyperdisk Extreme | 350,000 | 您無法為 Hyperdisk Extreme 磁碟區佈建處理量等級。每 1,000 IOPS 的磁碟區可獲得 250 MiB/s 的總處理量,最高可達 5,000 MiB/s。 |
| Hyperdisk ML | 您無法佈建 IOPS 層級,但每佈建 1 MiB/s 的總處理量,就會有 16 個 IOPS,最多可達 33,554,432 個 IOPS。 | 2,097,152 |
| Hyperdisk Throughput | 您無法佈建 IOPS 級別,但每佈建 1 MiB/s 的處理量,就會有 4 個 IOPS,最多可達 9,600 個 IOPS。 | 2,400 |