From owner-freebsd-questions@freebsd.org Thu Aug 10 16:37:36 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DE4BDDD75F9 for ; Thu, 10 Aug 2017 16:37:36 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6E610686AA for ; Thu, 10 Aug 2017 16:37:35 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (unknown [IPv6:2001:8b0:151:1:1c1d:86a1:a200:b700]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id F2B5990F6 for ; Thu, 10 Aug 2017 16:37:32 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/F2B5990F6; dkim=none; dkim-atps=neutral Subject: Re: Can't grow disk on Google Cloud To: freebsd-questions@freebsd.org References: From: Matthew Seaman Message-ID: Date: Thu, 10 Aug 2017 17:37:32 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="IoLvrh3JMBeDT7do47UhaPUSEoteucMUJ" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Aug 2017 16:37:37 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --IoLvrh3JMBeDT7do47UhaPUSEoteucMUJ Content-Type: multipart/mixed; boundary="2Kucq160iiorpSQXHieXaH4U7L41hRFb6"; protected-headers="v1" From: Matthew Seaman To: freebsd-questions@freebsd.org Message-ID: Subject: Re: Can't grow disk on Google Cloud References: In-Reply-To: --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--