Can't grow disk on Google Cloud
Efraín Déctor
efraindector at motumweb.com
Thu Aug 10 16:10:22 UTC 2017
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
More information about the freebsd-questions
mailing list