Update Google Compute Engine Instance type in real time

前端 未结 2 628
情深已故
情深已故 2021-01-05 06:09

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

n1-standard-1 to n1-standard-2

I don\'t see nothing to that in the document

2条回答
  •  囚心锁ツ
    2021-01-05 06:38

    You need create a new instance with the new type.

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

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

    3. Run the new instance.

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

    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.

提交回复
热议问题