From owner-freebsd-questions@freebsd.org Thu Aug 10 16:27:53 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 44906DD7201 for ; Thu, 10 Aug 2017 16:27:53 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (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 00D87680E7 for ; Thu, 10 Aug 2017 16:27:53 +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 6725A90F2 for ; Thu, 10 Aug 2017 16:27:51 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/6725A90F2; 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:27:45 +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="DjunEBnuj8S1Ha89wVjLsHVhvsdDR0EH4" 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:27:53 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --DjunEBnuj8S1Ha89wVjLsHVhvsdDR0EH4 Content-Type: multipart/mixed; boundary="dH49DPh4pahsv3DbU7HNx9u2wh2IPQuCC"; 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: --dH49DPh4pahsv3DbU7HNx9u2wh2IPQuCC Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable 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: >=20 > $ 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 >=20 > As you can see, the partition didn't grow, what is more strange is that= > gpart knows the new size of the disk: >=20 > $ 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) >=20 > 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 --dH49DPh4pahsv3DbU7HNx9u2wh2IPQuCC-- --DjunEBnuj8S1Ha89wVjLsHVhvsdDR0EH4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJZjImHXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkAT//oP/jmCE1bFA9YLe+xHw9KI8y2w MMEPlJf0b3S/3qsnCAh231Ki/Arw6Ehp6wDjt7ZYlUETMMIx/+kHv2Fzn0vJHPID Swe52GKGNdlMdIEfavPptmIoDSvg2NqDlSqIThnhzeESKmVj8bpmqQTEPnbxDyFD 7KMqJHXASyzZUKuY6UEkEOy+T3znhv2NuGQzhV7NVXJ/hWLPtub9auIb4AvkOUao sj2YyGxPBONCBPxASWDqapjIuQ0zP4FwAzSFbrbVj6IEav99v3ojZT/mEhjrMCI+ mbNK7o1F9LJCH/WoZSWks8bmBUNpRxUzVDCpMuw8Z2/wTraCGaVypXnRMxomG3H4 5TYYcNuiaLj9++Wv3DgXMY/9p7J3+WwzYTPuoKMW35YQgcTlntFXzXw12O2wd93k Ge7srtm7cWFXutBly6aKxG63Pmp3wVtnmqL2igukw2URgNyt42B1MCPXGeIky0sO 6J1SSF0STFLsMCMCQUQHXNqNHc3tDthJFvNQYS3fPVE36MLGDnapU848MWL4JyEJ Mqalv9aQ/ur7nlsML0sc0J/7Ow1IeUfTlMGvykx8hiBtrxWNKFQL9Abidzts/pVI XCNOUx9FqWWL/Pox9nfXlY2vO6VAPDRb7YEBreXOpGNqrp7uw4c6TjN1bTx2BEL1 uUDT2QuKIdDrVVQKsBU6 =FnCa -----END PGP SIGNATURE----- --DjunEBnuj8S1Ha89wVjLsHVhvsdDR0EH4--