Last active
August 2, 2024 09:28
-
-
Save tudormunteanu/ed9d78041668ba71c395e83e6b87467d to your computer and use it in GitHub Desktop.
Update persistent disk on GCP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SSH into your vm | |
gcloud compute ssh --project=<project_id> --zone=<zone> <instance_name> | |
# for non-boot disk | |
sudo resize2fs /dev/sdb | |
# Reference: | |
https://cloud.google.com/compute/docs/disks/resize-persistent-disk#resize_partitions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment