A DevOps engineer manages a critical application running on a Linux-based Compute Engine virtual machine. The attached persistent disk containing application data is approaching full capacity. The engineer needs to expand the storage capacity of this persistent disk with minimal disruption and without recreating the instance. Which procedure should the engineer follow?
- Resize the disk using the Cloud Console or gcloud CLI, and then extend the file system partition inside the guest operating system.Cevap
- BSubmit a GCP quota increase request for persistent disk capacity, which automatically expands the disk volume and guest file system.
- CConfigure a Compute Engine autoscaling policy based on disk utilization to automatically resize the attached disk when usage exceeds 80%.
- DMigrate the Compute Engine instance to a Spot VM configuration to enable automatic dynamic resizing of persistent disks.
Cevap
The correct procedure is to resize the disk using the Cloud Console or gcloud CLI, and then extend the file system partition inside the guest operating system.
Resizing a persistent disk in Google Cloud is a two-step process: first, increase the size of the persistent disk resource using GCP tools (Console or gcloud compute disks resize), and second, use guest OS utilities (such as growpart and resize2fs/xfs_growfs) to expand the file system into the newly available space.
Adım Adım Çözüm
Anahtar Kavram
Compute Engine Persistent Disk Management and Expansion