How to test a Compute Engine data disk restore before a zone migration
A practical checklist for restoring and validating a Compute Engine data disk in a new zone before migrating a Linux service.
Yang Li
Author & Contributor
A snapshot is only one part of a recovery plan. Before moving a Linux service to another Compute Engine zone, restore its data disk on a temporary VM in the destination zone and record what the application can actually read.
Record what the service writes
List the attached disks in the instance details. On the VM, use lsblk -f and findmnt to match filesystems to their mount points. Record the relevant paths and note which data lives outside the disk you intend to restore. If a database spans volumes or is actively accepting writes, follow its own backup procedure to obtain a consistent recovery point.
Restore without changing the source
Wait for the snapshot to finish, then create a disk from it in the destination zone. Attach that disk to a temporary instance in the same zone. Compare the restored filesystem and directory structure with your inventory. For a read-only inspection, follow filesystem-specific instructions, particularly if its journal may require replay.
Validate what the application needs
Check a sample of known files against recorded checksums. Run the application’s own integrity check or a representative read-only query when appropriate. Record the time required to attach and verify the disk, along with any missing IAM permissions or packages. Before cutover, decide how to synchronize writes that occurred after the snapshot and what will trigger a rollback.
For related deployment checklists, see the Google Cloud Compute Engine field notes. Questions about the migration checklist can go to Telegram.


