Change Google Compute/Cloud Server to SSD Persistent Disk

前端 未结 2 995
野趣味
野趣味 2021-02-05 17:11

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

How do I safely upgrade this to an SSD disk?

Is there a simple way to do it using the das

相关标签:
2条回答
  • 2021-02-05 17:46

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

    1. Create snapshot of the persistent disk.
    2. Create SSD disk from the snapshot.
    3. At this point you have two choices:
      1. Create a new instance with the SSD disk as a boot disk, unassign the static IP from old instance and attach it to the new instance. Once done delete the old instance. This will have has less or almost no downtime.
      2. Delete the old instance, create a new instance with SSD and assign the static IP. This will reduce the cost but will have downtime.
    0 讨论(0)
  • 2021-02-05 17:57

    The process for changing boot disk type of a Google Cloud VM is as follows:

    1. (Optional) Flush disk buffers sudo sync.
    2. Stop your instance
    3. Take a snapshot of existing disk
    4. Create a new persistent disk based on the snapshot. From the Type dropdown list, select "SSD persistent disk".
    5. Detach old boot disk & attach new SSD boot disk

    For more details, visit docs

    Note: there is NO NEED to delete your VM

    0 讨论(0)
提交回复
热议问题