From owner-freebsd-current@freebsd.org Mon Jan 25 22:08:53 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B223A4F3D18 for ; Mon, 25 Jan 2021 22:08:53 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DPkXj0dzJz3hdp for ; Mon, 25 Jan 2021 22:08:52 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: by mail-wm1-x336.google.com with SMTP id e15so992713wme.0 for ; Mon, 25 Jan 2021 14:08:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=j55MbzB0ZEmVLzE3w7BjPQuEXJsKULKhbTN+FjZTJOI=; b=cex+/xf2zy/kMpxYXOzEIkm11GprLommcmKy3f5qkty45XU+JC+g7KYB4W2HZNW/59 bikagJ7fthVWQjcpUriSrNA1zHwBgyhAE1PxRBMPR7dHYVE0aLyJOjsx9lqX3YD2uzJh ceyvGRxgFh0YmpEsN1R3Xnk3cneJfZBvuHJLwHlImJWEdfUCbVYry6hl5c5Cx3tgCtCy 1F02TvmNw1ExKl/QGzgyxR++f+iAPwskOx2SiVS+If7BSOqzoGe+y8Y/+/rRC1WgRvol RCIJU6ykCWZjkpvOFVnrUihx0OdVx5NbMs7JtWU+U1SGpEyI1Y1JLWmdu3dhN7WLL6H/ 4I1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=j55MbzB0ZEmVLzE3w7BjPQuEXJsKULKhbTN+FjZTJOI=; b=p9lJWJPi5qdjXBGRws/7rdDL+UPec8VNEDR5KS0Z2LgDzPhoLV73qtmP/NzCffhCOU v7q9sU7HaDQHH5gCAo3GfzzPervVVdJIfNfK/UV/OlIMlLtKgO+21uMR1bPakM+tRpR6 oBLCTrzxABFncjgt9q9K9tOFry7NtlZUQosg+zv/oxmZjQ8Px1V9hoA4iZY2KXIrg5Ud taljO1cDTRwUtbPGoFRI6Q1+dWc8dL3LBNC0ItCEDoajcjHdxHmdffdWpieENCF3oiDO J708av4bLP6zQ2v2JLBs3IntJDBjQGPuOYJI22Cjp+xFG6b2+Qp/CPzdfYIYJ3s/EzfG j2lQ== X-Gm-Message-State: AOAM5303tet4fi2X8WtbSYqXzjRmPttg/RAs4AhD4EN2LxI1rKVjTN2m jjyUwbtqs7b91bCCFsPYcw46EJWFvLWsVg== X-Google-Smtp-Source: ABdhPJxfK/7y194U3k/NX0JU9EREgwaDMB2bsw5WTcIaQQWBW3zYjfHkMHeRvDZm62YqovEzlhz+Qw== X-Received: by 2002:a1c:6608:: with SMTP id a8mr1914731wmc.132.1611612530673; Mon, 25 Jan 2021 14:08:50 -0800 (PST) Received: from [192.168.1.11] (88-105-96-80.dynamic.dsl.as9105.com. [88.105.96.80]) by smtp.gmail.com with ESMTPSA id s23sm616150wmc.35.2021.01.25.14.08.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Jan 2021 14:08:49 -0800 (PST) Subject: Re: FreeBSD-provided .vhd with VirtualBox: gpart I/O errors after resizing the virtual hard disk From: Graham Perrin To: freebsd-current@freebsd.org References: Message-ID: <1826b286-b7da-9fa0-989f-bba3bc1f88e4@gmail.com> Date: Mon, 25 Jan 2021 22:08:48 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-GB X-Rspamd-Queue-Id: 4DPkXj0dzJz3hdp X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=cex+/xf2; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of grahamperrin@gmail.com designates 2a00:1450:4864:20::336 as permitted sender) smtp.mailfrom=grahamperrin@gmail.com X-Spamd-Result: default: False [-2.28 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[88.105.96.80:received]; FROM_EQ_ENVFROM(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::336:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::336:from:127.0.2.255]; MIME_TRACE(0.00)[0:+,1:+,2:~]; NEURAL_SPAM_SHORT(0.72)[0.723]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::336:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2021 22:08:53 -0000 On 17/01/2021 18:22, Graham Perrin wrote: > VirtualBox 5.2.44 r139111 on FreeBSD-CURRENT. > > 01. Add FreeBSD-12.2-RELEASE-amd64.vhd to a machine > 02. use Virtual Disk Manager to resize it to 2.0 TB > 03. apply, close > 04. boot single user > 05. gpart show /dev/ada0 > 07. observe reported corruption > 08. gpart recover /dev/ada0 > 09. I/O error > 10. gpart show /dev/ada0 > 11. no reported corruption > 12. shutdown -r now > 13. observe reported corruption: > > > gptboot: invalid backup GPT header > > > > For me, this seems to be consistently reproducible. > > Thoughts? > > Boot proceeds and I guess that the > UFS file system is automatically grown, but the reported I/O errors > make me nervous. > > % uname -v > FreeBSD 13.0-CURRENT #75 main-c572-g82397d791: Sun JanĀ  3 20:00:09 GMT > 2021 > root@mowa219-gjp4-8570p:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG > % > With FreeBSD-provided 'FreeBSD-12.1-RELEASE-amd64.vhd', things seem even worse. Please see, for example, this screen recording: What's going wrong? Is it necessary to boot first from something _other_ than the resized disk, for things such as gpart recover to proceed without I/O error for the resized disk?