【问题标题】:Error to create a disk in google compute (The resource '... diskTypes/{pd-ssd}' was not found在谷歌计算中创建磁盘时出错(找不到资源“... diskTypes/{pd-ssd}”
【发布时间】:2015-06-22 18:05:37
【问题描述】:

我尝试在 Google Compute 中创建磁盘。这是过程和错误:

gcloud compute disks create test --type={pd-ssd}

    For the following disks:
 - [test]
choose a zone:
 [1] asia-east1-a
 [2] asia-east1-c
 [3] asia-east1-b
 [4] europe-west1-c
 [5] europe-west1-b
 [6] europe-west1-d
 [7] us-central1-a
 [8] us-central1-b
 [9] us-central1-c
 [10] us-central1-f
Please enter your numeric choice:  9

NAME ZONE SIZE_GB TYPE STATUS
ERROR: (gcloud.compute.disks.create) Some requests did not succeed:
 - The resource 'projects/devco-979/zones/us-central1-c/diskTypes/{pd-ssd}' was not found

为什么会这样?

【问题讨论】:

  • gcloud compute disk-types list --zone us-central1-c 的输出是什么?
  • 这是输出: $ gcloud compute disk-types list --zone us-central1-c NAME ZONE VALID_DISK_SIZES pd-standard us-central1-c 10GB-10240GB

标签: google-cloud-storage google-compute-engine


【解决方案1】:

去掉大括号:

gcloud compute disks create test --type=pd-ssd

编辑:

根据您为 gcloud compute disk-types list 提供的输出,您无权访问 pd-ssd 驱动器。通常这是因为您仍处于免费套餐中。如果您升级到付费服务,您将可以访问 pd-ssd 驱动器。

【讨论】:

  • 是的@stepen-weinberg,我需要更新我的帐户以“在免费套餐后付款”。我创建了一个超过“三个月 300 美元”的帐户。你知道会不会损失 300 美元吗?
  • 300 美元没有丢失。
猜你喜欢
  • 2021-09-11
  • 2014-10-17
  • 2019-02-18
  • 1970-01-01
  • 2021-06-19
  • 2019-04-12
  • 1970-01-01
  • 1970-01-01
  • 2018-12-24
相关资源
最近更新 更多