Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Aug 2017 11:10:21 -0500
From:      =?UTF-8?B?RWZyYcOtbiBEw6ljdG9y?= <efraindector@motumweb.com>
To:        freebsd-questions@freebsd.org
Subject:   Can't grow disk on Google Cloud
Message-ID:  <c631d642-4718-3e3c-9e5a-dab52a340d47@motumweb.com>

next in thread | raw e-mail | index | archive | help
Hello.

I am doing some tests on Google Cloud and I found out that FreeBSD 11.1 
does not seem to recognize that the disk grew in size.

I deployed the instance using the following gcloud command:

gcloud compute --project "pruebasedh" instances create "edh-01" \
         --image freebsd-11-0-release-p1-amd64 \
         --image-project=freebsd-org-cloud-dev

By default, a disk of 22 GB is asigned, I resized that disk to 44GB to 
do some tests, however df -h shows this:

$ df -h
Filesystem         Size    Used   Avail Capacity  Mounted on
/dev/gpt/rootfs     20G    1.7G     17G     9%    /
devfs              1.0K    1.0K      0B   100%    /dev

As you can see, the partition didn't grow, what is more strange is that 
gpart knows the new size of the disk:

$ gpart show da0
=>       3  46137333  da0  GPT  (44G) [CORRUPT]
          3       125    1  freebsd-boot  (63K)
        128   2097152    2  freebsd-swap  (1.0G)
    2097280  44040056    3  freebsd-ufs  (21G)

Is there something I need to do to resize the partition?


Thanks in advance

$ df -h
Filesystem         Size    Used   Avail Capacity  Mounted on
/dev/gpt/rootfs     20G    1.7G     17G     9%    /
devfs              1.0K    1.0K      0B   100%    /dev

$ df -h
Filesystem         Size    Used   Avail Capacity  Mounted on
/dev/gpt/rootfs     20G    1.7G     17G     9%    /
devfs              1.0K    1.0K      0B   100%    /dev




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c631d642-4718-3e3c-9e5a-dab52a340d47>