如何在Google Compute Engine上获得更大的启动盘 [英] How to get a bigger boot disk on Google Compute Engine

查看:63
本文介绍了如何在Google Compute Engine上获得更大的启动盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认图像有10GB,但我需要更多(约30GB).如果使用其中一个默认映像创建30GB的磁盘,则可用空间为10GB,而不是30GB.我知道我可以使用debootstrap之类的工具安装发行版,但这似乎不必要地复杂.还有其他方法吗?

Default images have 10GB, but I need more (30GB approx). If I create a disk of 30GB using one of that default images, the usable space it's 10GB, not 30GB. I know I can install the distro using tools like debootstrap, but that seems unnecessarily complicated. is there any other way to do it?

推荐答案

在撰写本文时,这可能是一项新功能,但请转到

This may be a new feature as of this writing, but go to

  1. https://console.cloud.google.com/compute/
  2. 单击左侧菜单中的磁盘
  3. 在加载的主窗格中,单击您的实例
  4. 在加载的上层水平菜单中,单击编辑"
  5. 以前的磁盘大小将变为可编辑的.将磁盘大小更改为所需的大小.
  6. 重新启动实例(立即sudo restart -r).重新启动后,df -h会列出您的新磁盘大小.
  1. https://console.cloud.google.com/compute/
  2. Click on Disks in the left menu
  3. In the main pane that loads, click on your instance
  4. In the upper horizontal menu that loads, click on Edit
  5. The former disk size will become editable. Change the disk size to your desired size.
  6. Restart your instance (sudo restart -r now). On reboot, df -h lists your new disk size.

因此,回答问题的一种方法是使用默认磁盘创建实例,然后只需通过Compute Engine GUI调整其大小.

So, one approach to answering your question is to create an instance with the default disk and simply resize it via the Compute Engine GUI.

这篇关于如何在Google Compute Engine上获得更大的启动盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆