From owner-freebsd-current@freebsd.org Sun Jan 17 18:22:19 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 87B8D4D31CF for ; Sun, 17 Jan 2021 18:22:19 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (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 4DJjty45G8z3qXc for ; Sun, 17 Jan 2021 18:22:18 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: by mail-wm1-x32c.google.com with SMTP id u14so7770096wmq.4 for ; Sun, 17 Jan 2021 10:22:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=j/sBhAFS2njVDa1nZHtNSnTHNPDfVepQJN/mSfV+uN4=; b=m4ynIr3aNhXEhLmFkOYY4GlfPbb/kcKQfe5O5Z9Lt6luX5lD4f1+nL8ArYno0JFdNF KVEpDBy4zlMGQHyec3jkuyaA3EGQgSX2ovByE6axL6Jbn2j/vD2feS1zbZce3ZqCbcbr q0Fj7ymCuKhs3U3DE9TUjae1LXPRX5sxm0W7j+73EK/uM4tiAmzNuSho2G4YlJwyuaPb +yAZpdN6W+P9u5WsVzMQsrrS1JAnfsCkvKp7O+9ds1xGerL0P7vWdUi2zYTlaTKxsh6v oQ5avFK1RSSX3VK4j0IniD0RXiNIdB+QSC2pmPoms4pmWSLGXrJtcih/UZEy3RWXd32/ GvxA== X-Gm-Message-State: AOAM530RHaLg9kbWRxrowQsbQEL3ktlonIHqomnbvIAQcmD826AN5Ovn o3kfiAT3xcYBMp4ZEynKNxxrFT8aIQxNeA== X-Google-Smtp-Source: ABdhPJwkwwsTgIT1PEKpiBfptr+CCp8TOVQMMtXkBLDVdQAiJJ4cJZKz00JJX4hhE/cKrGvasLgGvA== X-Received: by 2002:a1c:cb:: with SMTP id 194mr8687517wma.30.1610907735722; Sun, 17 Jan 2021 10:22:15 -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 s3sm19922580wmc.44.2021.01.17.10.22.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 17 Jan 2021 10:22:14 -0800 (PST) To: freebsd-current@freebsd.org From: Graham Perrin Subject: FreeBSD-provided .vhd with VirtualBox: gpart I/O errors after resizing the virtual hard disk Message-ID: Date: Sun, 17 Jan 2021 18:22:14 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB X-Rspamd-Queue-Id: 4DJjty45G8z3qXc X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.17 / 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::32c: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)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::32c:from:127.0.2.255]; MIME_TRACE(0.00)[0:+]; NEURAL_SPAM_SHORT(0.83)[0.828]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::32c:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] 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: Sun, 17 Jan 2021 18:22:19 -0000 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 %