Migrate a Persistent Disk volume to a Hyperdisk volume


You cannot change a disk type from Persistent Disk to Google Cloud Hyperdisk. You can use snapshots to migrate your existing disks to a Hyperdisk volume.

Migrating existing disks to a Hyperdisk volume

To migrate an existing disk to Hyperdisk, you create a snapshot of your disk, and then restore the snapshot to a newly created Hyperdisk volume.

Console

  1. Prepare for creating a persistent disk or Hyperdisk snapshot:

  2. Create a snapshot of your existing disk.

  3. Go to the Disks page.

    Go to Disks
  4. Click Create Disk.
  5. Under Disk Type, select Hyperdisk Extreme or Hyperdisk Throughput.
  6. Under Source type, select Snapshot, then select the name of the snapshot to restore.
  7. Select the Size of the new disk, in GiB. This number must be equal to or larger than the original source disk for the snapshot.
  8. Change the defaults, depending on the disk type you are migrating to:

    • Hyperdisk Extreme: Change the Provisioned IOPS value.
    • Hyperdisk Throughput: Change the Provisioned Throughput value.
  9. Click Create to create the Hyperdisk volume.

gcloud

  1. Prepare for creating a persistent disk or Hyperdisk snapshot:

  2. Create a snapshot of your existing disk.

  3. Use the disks create command to create a Hyperdisk volume from your snapshot.

    Hyperdisk Extreme

      gcloud compute disks create DISK_NAME \
        --size=DISK_SIZE \
        --source-snapshot=SNAPSHOT_NAME \
        --type=hyperdisk-extreme --provisioned-iops=IOPS
      

    Hyperdisk Throughput

      gcloud compute disks create DISK_NAME \
        --size=DISK_SIZE \
        --source-snapshot=SNAPSHOT_NAME \
        --type=hyperdisk-throughput \
        --provisioned-throughput=THROUGHPUT
      

    Replace the following:

    • DISK_NAME: The name of the volume that you are creating.
    • DISK_SIZE: Optional. The capacity, in GiB or TiB, of the volume that you are creating.
    • SNAPSHOT_NAME: The name of the snapshot that you are restoring.
    • IOPS: Optional. For Hyperdisk Extreme, specify the target IOPS performance, as an integer, for the volume you are creating.
    • THROUGHPUT: Optional. For Hyperdisk Throughput, specify the target disk throughput in MB/s as an integer.

You can then attach the new disk to an existing instance.

  1. Go to the VM instances page.

    Go to VM instances

  2. Click the name of the instance where you want to restore your non-boot disk.
  3. At the top of the instance details page, click Edit.
  4. Under Additional disks, click Attach existing disk.
  5. Select the name of the new disk made from your snapshot.
  6. Click Done to attach the disk.
  7. At the bottom of the instance details page, click Save to apply your changes to the instance.

What's next