jwesonga
jwesonga

Reputation: 4383

Unable to resize /dev/sda1 of GCP postgres

I created a postgres VM in GCP using this instructions https://joncloudgeek.com/blog/deploy-postgres-container-to-compute-engine/#create-a-compute-instance-running-a-postgres-container with a 10GB disk, everything has worked fine for the last couple of months but I seem to have run out of space on /dev/sda1. So i increased the disk size to 400GB but I can't seem to be able to resize /dev/sda1 using the standard command "sudo growpart /dev/sda 1" I keep getting command not found.

Upvotes: 0

Views: 180

Answers (1)

jwesonga
jwesonga

Reputation: 4383

Solution for me:

  1. Create a machine image of the container.
  2. Spin up a new VM based on the machine image created.
  3. Delete old VM.

This created a new Postgres VM with 400GB of disk.

Upvotes: 1

Related Questions