Error during resizing a persistent disk

645 views
Skip to first unread message

Rohit Manglik

unread,
Sep 8, 2016, 3:49:30 PM9/8/16
to gce-discussion

I changed size of my persistent disk from 10GB to 20GB.

ScreenshotScreenshot of persistent disk image in Google Compute Engine


After resizing, I ran following output from resize2fs

sudo resize2fs /dev/sda1 resize2fs 1.42.12 (29-Aug-2014) The filesystem is already 2620416 (4k) blocks long. Nothing to do!



Now when I run df command in my server, I can still see only 10GB space.

user@edudrona-prod-vm:~$ df

Filesystem     1K-blocks    Used Available Use% Mounted on

/dev/sda1       10186040 7636992   2008584  80% /

udev               10240       0     10240   0% /dev

tmpfs            1535964    8528   1527436   1% /run

tmpfs            3839908       0   3839908   0% /dev/shm

tmpfs               5120       0      5120   0% /run/lock

tmpfs            3839908       0   3839908   0% /sys/fs/cgroup

tmpfs             767984       0    767984   0% /run/user/1003


I am just running simple Wordpress site using Bitnami. 


(I also asked same question on http://stackoverflow.com/questions/39364836/persistent-disk-size-is-not-changing-google-compute-engine but got no answers over there.)


Thanks

Kamran (Google Cloud Support)

unread,
Sep 8, 2016, 9:58:30 PM9/8/16
to gce-discussion

Hello Rohit,

Bitnami's WordPress stack uses Debian 8 as its operating system. This article provides a list of GCE operating systems that performs automatic disk resizing during boot time. Since Debian 8 supports automatic resizing you just need to reboot your VM for automatic disk resizing to take effect.

I hope this helps.

Sincerely,

Rohit Manglik

unread,
Sep 9, 2016, 9:15:29 AM9/9/16
to gce-discussion
Hi Kamran,

This resolved the issue. 

Thanks :)
Reply all
Reply to author
Forward
0 new messages