June 2018
Intermediate to advanced
372 pages
8h 44m
English
Resizing the disk does not configure the filesystem to use additional space automatically. We have to do it ourselves. If our persistent disk has both a filesystem and partition table, we must edit both:
gcloud compute disk resize [DISK NAME] —size [DISK_SIZE]
sudo growpart /dev/sda [PARTITION NUMBER]
sudo resize2fs /dev/sda/[PARTITION_NUMBER] ...