DEV Community

云智慧 Yunzhihui Cloud
云智慧 Yunzhihui Cloud

Posted on

How to validate a Google Compute Engine VM after a restart

A VM can be running while its workload is still unavailable. Record the restart time and evaluate three independent signals before returning the instance to service.

Confirm the storage layout

Compare the expected disk names and mount points with the guest view. On Linux, lsblk -f identifies filesystems and findmnt --target /path/to/data shows which filesystem backs a particular directory. Check this before allowing any service to write to that path.

Read logs from the current boot

On a systemd-based guest, use journalctl -b to inspect the current boot and systemctl --failed to find failed units. Correlate the messages with the change window and verify that any startup scripts finished.

Test from the same path as users

Check the production hostname, certificate and a representative request. If a load balancer fronts this instance, check backend health and compare error rate and latency before restoring full traffic. Record who can roll back and what would trigger that decision.

Written with AI assistance for Yunzhihui. Related GCE operations notes and business contact.

Top comments (0)