JTa
JTa

Reputation: 341

I resized my GCP instance but the new size isn't showing up when I run "df"

I resized my GCP instance and added a few hundred gigs, but when I run df in my console, I don't see that the disk size has changed. Why isn't the new space showing up?

EDIT: So I've been following the guide here: https://cloud.google.com/compute/docs/disks/add-persistent-disk

But my partition table looks different:

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 600G 0 disk `-sda1 8:1 0 100G 0 part /

I tried the following command to grow the partition, but it threw up an error:

JTa:~$ sudo growpart /dev/sda1 1 WARN: unknown label failed [sfd_dump:1] sfdisk --unit=S --dump /dev/sda1 /dev/sda1: device contains a valid 'ext4' signature; it is strongly recommended to wipe the device with wipefs(8) if this is unexpected, in order to avoid possible collisions sfdisk: failed to dump partition table: Success FAILED: failed to dump sfdisk info for /dev/sda1

Upvotes: 2

Views: 1119

Answers (1)

melroyd16
melroyd16

Reputation: 85

Try using sudo growpart /dev/sda 1

Upvotes: 0

Related Questions