Can't grow disk on Google Cloud
matthew at FreeBSD.org
Thu Aug 10 16:37:37 UTC 2017
On 10/08/2017 17:27, Matthew Seaman wrote:
> 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?
gpart resize -i 3 da0
> 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.
... but it should be fixed anyhow when you do 'gpart resize'
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 931 bytes
Desc: OpenPGP digital signature
More information about the freebsd-questions