Date: Thu, 10 Aug 2017 17:37:32 +0100 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-questions@freebsd.org Subject: Re: Can't grow disk on Google Cloud Message-ID: <a259253c-755c-23c0-1293-fcf9601e99df@FreeBSD.org> In-Reply-To: <c08f18bb-f705-3a54-953f-90f95e40e459@FreeBSD.org> References: <c631d642-4718-3e3c-9e5a-dab52a340d47@motumweb.com> <c08f18bb-f705-3a54-953f-90f95e40e459@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --IoLvrh3JMBeDT7do47UhaPUSEoteucMUJ Content-Type: multipart/mixed; boundary="2Kucq160iiorpSQXHieXaH4U7L41hRFb6"; protected-headers="v1" From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-questions@freebsd.org Message-ID: <a259253c-755c-23c0-1293-fcf9601e99df@FreeBSD.org> Subject: Re: Can't grow disk on Google Cloud References: <c631d642-4718-3e3c-9e5a-dab52a340d47@motumweb.com> <c08f18bb-f705-3a54-953f-90f95e40e459@FreeBSD.org> In-Reply-To: <c08f18bb-f705-3a54-953f-90f95e40e459@FreeBSD.org> --2Kucq160iiorpSQXHieXaH4U7L41hRFb6 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable On 10/08/2017 17:27, Matthew Seaman wrote: > On 10/08/2017 17:10, Efra=C3=ADn D=C3=A9ctor 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 tha= t >> gpart knows the new size of the disk: >> >> $ gpart show da0 >> =3D> 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? Also: gpart resize -i 3 da0 and then... > growfs(8)? growfs /dev/da0p3 > gpart is reporting corrupt because it's second copy isn't present at th= e > end of the drive now. You can use 'gpart recover' to fix it. =2E.. but it should be fixed anyhow when you do 'gpart resize' Cheers, Matthew --2Kucq160iiorpSQXHieXaH4U7L41hRFb6-- --IoLvrh3JMBeDT7do47UhaPUSEoteucMUJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJZjIvMXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATQ5oP/RAwMN831OCyEqR855wLaQ4U Pe+digOYlaWJQcbyecX+XHnrcr4z6S788dldCUAZ30z8GUc7RgMGVahsP3ZrwKFc K1Eg68L9lZVJNDqhzi5anakWKkCLykNS3UWVLAd6j251+AzfPnitTld3wTb854xP AMOgIwTutZ0ScAUmtCJuu01bSb8T3Ty7igspOa5eRdMpNWsRf3Q3nAvdHNckJkNj 8jNcfadiZxVbKr/+UXgaIhquGovDrkOtVs24/Kf9BNKGH9HsEY7D11ye/MHXj0i5 VJpI13yK+Vj7SFHw4esq4CF5WqenPflHGsFbA2PWctSHQGxVhBVOXJ+0YfsSmxLV O/Aa/gGNLwvMidO3iPHBLjBNLBsqUYBTw2Dq9I5AwWayqGEyaHfDX/v3A1e3Dmug TETtOPYtP4VEv1zOi0eGpapBXLCmFsisr1c+Lkww9pbdC9ROtI0wdjKDZ9WEta3W DB0Wp/ryUavzHb+hJ6EfJulyS4VfG0FgmOlcQWdpt6nmIb7ik7nG8iBQhCr3OqNp 7kKdm8F0jqFHj3EVUbG644+lLWXwkOozZc6mO0Kz7ispTk4cOE5dMpYoyQ/ciorF D0YueVKzvrJTV5pc4jL74rTdb+ur+hjoX5D1Yn8gwhJZ/oF+w7116o7rL9f7Ne2P 8tvEbEeDtGJxqGE2CV0v =rSBf -----END PGP SIGNATURE----- --IoLvrh3JMBeDT7do47UhaPUSEoteucMUJ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a259253c-755c-23c0-1293-fcf9601e99df>