Can't grow disk on Google Cloud

Matthew Seaman matthew at FreeBSD.org
Thu Aug 10 16:27:53 UTC 2017


On 10/08/2017 17:10, Efraín Déctor wrote:
> 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?

growfs(8)?

gpart is reporting corrupt because it's second copy isn't present at the
end of the drive now.  You can use 'gpart recover' to fix it.

	Cheers,

	Matthew

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 931 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20170810/3935d49d/attachment.sig>


More information about the freebsd-questions mailing list