将Google Compute/Cloud服务器更改为SSD永久磁盘 [英] Change Google Compute/Cloud Server to SSD Persistent Disk

查看:59
本文介绍了将Google Compute/Cloud服务器更改为SSD永久磁盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在标准永久性磁盘上运行的实时生产网站.

I have a live production website running on a standard persistent disk.

如何安全地将其升级到SSD磁盘?

How do I safely upgrade this to an SSD disk?

是否有使用仪表板而不是控制台命令的简单方法?

Is there a simple way to do it using the dashboard and not console commands?

请注意,将实例关闭10分钟左右是可以的.

Just to be clear, it's fine to take the instance down for 10 minutes or so.

这项工作可以吗?

  1. 快照实例
  2. 克隆实例(使用快照-创建SSD驱动器)
  3. 移动到静态IP上进行克隆.
  4. 检查一切正常,并最终删除原始实例

推荐答案

OP提供了问题中的步骤,为仍在寻找解决方案的用户发布了答案:

OP has provided the steps in the question, posting an answer for users still looking for a solution:

  1. 创建永久性磁盘的快照.
  2. 从快照创建SSD磁盘.
  3. 此时,您有两种选择:
  1. Create snapshot of the persistent disk.
  2. Create SSD disk from the snapshot.
  3. At this point you have two choices:
  1. 使用SSD磁盘作为启动磁盘创建新实例,从旧实例取消分配静态IP,然后将其附加到新实例.完成后,删除旧实例.这将减少或几乎没有停机时间.
  2. 删除旧实例,使用SSD创建新实例并分配静态IP.这样可以降低成本,但会造成停机.

这篇关于将Google Compute/Cloud服务器更改为SSD永久磁盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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