本文介绍了实时更新Google Compute Engine实例类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以将一个实例的类型更改为另一个实例,例如:

I would like to know if you can change the type of one instance to another, e.g:

n1-standard-1至n1-standard-2

n1-standard-1 to n1-standard-2

我在文档中没有看到任何内容,但可能是我错过了一些事情.

I don't see nothing to that in the documentation, but may be I miss something.

在不可能的情况下,我该如何处理,还有另一种方法来进行此更改?

In case that is not posible, how i deal with this, there is another way to do this change?

推荐答案

您需要使用新类型创建一个新实例.

You need create a new instance with the new type.

  1. 从n1-standard-1断开永久磁盘.

  1. Disconnect your persistent disk from n1-standard-1.

在同一区域中以类型n1-standard-2创建新实例,然后选择从磁盘启动". (选择永久磁盘)

Create new instance in the same zone with the type n1-standard-2 and choose boot from disk. (choose the persistent disk)

运行新实例.

注意:建议您先尝试从磁盘上获取快照,然后再尝试此过程.

Note: I recommend have a snapshot from the disk before to try this procedure.

对于实时,您可以在从磁盘启动"中选择快照而不是永久磁盘.然后,当您测试该实例是否正常运行时,将IP地址从VM1关联到VM2.

for realtime you can choose in "boot from disk" choose the snapshot instead of the persistent disk. and when you test that this instance its working, associate the ip address from VM1 to VM2.

这篇关于实时更新Google Compute Engine实例类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 18:31