Increased Disc Size but still shown as 100G on cloud shell

Hello,

I have increased my Disk size from 100G to 150G, it is shown okay in VM manager site as 150G however in google cloud shell when i run df -h command it does still show 100G. what should i do ?

1 2 59
2 REPLIES 2

Hello @F7_Benutzer  ,Welcome on Google Cloud Community.

Did you've resized partition and filesystem AFTER resizing disk ? 
For LVM : https://www.redhat.com/sysadmin/resize-lvm-simple 
For RAW partition: https://www.alibabacloud.com/help/en/ecs/use-cases/offline-extend-partitions-and-file-systems-on-a-d...

--
cheers,
DamianS
LinkedIn medium.com Cloudskillsboost

As you see my disk size in my vm machine 150 GB

F7_Benutzer_0-1714588328567.png

Here is my df -h output  (in total 120G)

F7_Benutzer_2-1714588406114.png

But now i want to resize my disk but it shows me that it is using already maximum which is 115 Gig
sudo resize2fs /dev/sda1

F7_Benutzer_3-1714588516412.png

It is RAW Partition, but in the link that you sent some commands are not working on google cloud shell connection , for example it can not find command fdisk.

Why it is too hard just increase the disk size..... there should be an easy way.