I have disk of space 10G in google cloud with name disk1.
Root persistent disk has already occupied around 4 to 5 GB and remaining 5 GB is occupied by other programs ,so it is almost full to 10GB .MY case is I can not add other disk ,i have to work on same disk.
I want to increase this disk size from 10 GB to 20 GB,In https://cloud.google.com/compute/docs/disks#repartitionrootpd i can not see way of increasing size of existing disk in my case increasing size of disk1 to 20GB Is it possible to update existing disk size ?
Update disk size on the fly without restarts
sudo growpart /dev/sda 1
sudo resize2fs /dev/sda1
df -h
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With