Soru

Zorluk: KolayManaging Compute Engine Resources

You need to migrate a standalone application's stateful data from a persistent disk located in zone us-central1-a to a newly created Compute Engine VM instance in zone us-central1-b. What is the correct sequence of steps to accomplish this cross-zone disk data migration?

  1. 1Create a persistent disk snapshot from the source disk in us-central1-a.
  2. 2Create a new zonal persistent disk in us-central1-b using the snapshot as the source.
  3. 3Create a new Compute Engine instance in us-central1-b and attach the newly created persistent disk.

Cevap

The correct order of steps is: First, create a persistent disk snapshot from the source disk in us-central1-a. Second, create a new zonal persistent disk in us-central1-b using the snapshot as the source. Third, create a new Compute Engine instance in us-central1-b and attach the newly created persistent disk.
The correct sequence requires creating a snapshot first because snapshots are global resources available across all zones in a project. Next, a new zonal persistent disk must be initialized in the target zone (us-central1-b) from that global snapshot. Finally, the Compute Engine instance is launched in us-central1-b with the new disk attached, satisfying the GCP requirement that VMs and persistent disks must reside in the same zone.

Adım Adım Çözüm

1
Take a snapshot of the source persistent disk in us-central1-a.
A point-in-time global snapshot of the persistent disk data is stored.
Persistent disk snapshots are project-level global resources, allowing them to cross zone boundaries.
2
Provision a new persistent disk in us-central1-b sourced from the snapshot.
A new persistent disk containing the original data is created in us-central1-b.
Persistent disks are single-zone resources and cannot be directly attached across different zones.
3
Deploy the Compute Engine instance in us-central1-b attaching the new disk.
The target instance in us-central1-b boots or mounts the restored disk data.
VM instances and their attached persistent disks must reside within the identical Google Cloud zone.

Anahtar Kavram

Compute Engine Persistent Disk Snapshots and Cross-Zone Migration
Tahmini Süre:1m 0s
Bu soruyu puanla