From nobody Mon Aug 15 16:22:30 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M601T5QVbz4ZPK8 for ; Mon, 15 Aug 2022 16:22:37 +0000 (UTC) (envelope-from tsoome@me.com) Received: from pv50p00im-ztdg10012001.me.com (pv50p00im-ztdg10012001.me.com [17.58.6.51]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4M601T0XdCz3s2W for ; Mon, 15 Aug 2022 16:22:37 +0000 (UTC) (envelope-from tsoome@me.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1660580554; bh=+BO1isPZme0INyxX4tMYHYGLozxHhM8XVqdxxS5ncT4=; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:To; b=yOQaK5ivWZe5TTkK8P5yI8MFU2pWJDFX+bqJV/6NghLx28/R9JECDy/oftVrHNxzW Tct5OIArxWJj1ubChVcDhPrcTZCiBXv+RO18+qBIqaRjWzncaP+rDDgCkmpdl0Gd4d +iXyOkHQifH/PwhxrnvjAVDFD3iWrhq2qikzUMgA1VkweVSemy+pqHHztXauwcfUH6 rCJF0+Lwp1RtzNLogzZHWUco+HzNmZN4/KsoB6QxrSa1EGflO9V9o+cBuXq/7/tMBJ Pj+ESUo2NUZusEs/EfA6vo7y2BMJH9VGfE7P1lvz4beRRX/ODB/gBZMbtK87+PU6WT mObwEMNKBSySQ== Received: from smtpclient.apple (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-ztdg10012001.me.com (Postfix) with ESMTPSA id 56431A00C8; Mon, 15 Aug 2022 16:22:33 +0000 (UTC) From: Toomas Soome Message-Id: <7B040730-5115-4BC9-A45A-53FA2145810C@me.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_4EBF50BE-5D7B-448D-A57C-5AF069043DE1" List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: ZFS: cannot import zroot: I/O error Date: Mon, 15 Aug 2022 19:22:30 +0300 In-Reply-To: <20220815170159.2394b5dd@thor.intern.walstatt.dynvpn.de> Cc: FreeBSD CURRENT To: FreeBSD User References: <20220815170159.2394b5dd@thor.intern.walstatt.dynvpn.de> X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Proofpoint-GUID: FyXvmTpDcGEDqxFCZwgjTbBaHXkUUw4N X-Proofpoint-ORIG-GUID: FyXvmTpDcGEDqxFCZwgjTbBaHXkUUw4N X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.517,18.0.883,17.0.605.474.0000000_definitions?= =?UTF-8?Q?=3D2022-06-21=5F08:2022-06-21=5F01,2022-06-21=5F08,2020-01-23?= =?UTF-8?Q?=5F02_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 mlxlogscore=999 spamscore=0 phishscore=0 clxscore=1015 adultscore=0 bulkscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2208150063 X-Rspamd-Queue-Id: 4M601T0XdCz3s2W X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=me.com header.s=1a1hai header.b=yOQaK5iv; dmarc=pass (policy=quarantine) header.from=me.com; spf=pass (mx1.freebsd.org: domain of tsoome@me.com designates 17.58.6.51 as permitted sender) smtp.mailfrom=tsoome@me.com X-Spamd-Result: default: False [-2.59 / 15.00]; URI_COUNT_ODD(1.00)[5]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; NEURAL_HAM_MEDIUM(-0.99)[-0.994]; DMARC_POLICY_ALLOW(-0.50)[me.com,quarantine]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[me.com:s=1a1hai]; R_SPF_ALLOW(-0.20)[+ip4:17.58.0.0/16]; RCVD_IN_DNSWL_LOW(-0.10)[17.58.6.51:from]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FREEFALL_USER(0.00)[tsoome]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ASN(0.00)[asn:714, ipnet:17.58.0.0/20, country:US]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[me.com]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[me.com:+]; TO_DN_ALL(0.00)[]; FREEMAIL_FROM(0.00)[me.com]; DWL_DNSWL_NONE(0.00)[me.com:dkim]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_4EBF50BE-5D7B-448D-A57C-5AF069043DE1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 15. Aug 2022, at 18:01, FreeBSD User = wrote: >=20 > Hello, >=20 > I'm running a FreeBSD 13.1-RELENG-p1 zroot-based guest in a VirtualBox = 4.1.24/26 (do not know > exactly). The host is a special system based on Linux und VirtualBox = and I have no chances to > configure the VBox. >=20 > Somehow the VBox crashed and hung up the complete computer, so I had = to cold start it after > approx. 30 minutes of waiting. After that, rhe virtual drive and its = ZFS filesystem was > wrecked, shwing a stream of=20 >=20 > zio_read error: 5 > ZFS: i/o error - all block copies unavailable >=20 > After a quick search I found some advices howto try fixing, last an = longest one was=20 >=20 > zpool import -fFX -N -R /alternate/path zroot >=20 > which took approx 20 minutes - with no success. >=20 > There are some valuable data on the partition, which are all backed = up, but it would take its > time to restore everything, so I'd like to ask whether there is any = cance to "repair" the > mysterious damage. >=20 > I'm able to boot off from an USB flash drive =E2=80=A6 >=20 This happens when vbox is telling zfs that data is written on disk, but = is actually still in caches=E2=80=A6 So yea, the standard answer could = be =E2=80=9Crestore from backup=E2=80=9D, but it also may help to use = ability to revert TXG (it does drop data!). See also = https://gist.github.com/mkhon/34d979c78077a20648456272d7f2cc15 = rgds, toomas --Apple-Mail=_4EBF50BE-5D7B-448D-A57C-5AF069043DE1 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On 15. Aug 2022, at 18:01, FreeBSD User <freebsd@walstatt-de.de> wrote:

Hello,

I'm running a FreeBSD = 13.1-RELENG-p1 zroot-based guest in a VirtualBox 4.1.24/26 (do not = know
exactly). The host is a special system based on Linux = und VirtualBox and I have no chances to
configure the = VBox.

Somehow the VBox crashed and hung up = the complete computer, so I had to cold start it after
approx. 30 minutes of waiting. After that, rhe virtual drive = and its ZFS filesystem was
wrecked, shwing a stream of

zio_read error: 5
ZFS: i/o error = - all block copies unavailable

After a = quick search I found some advices howto try fixing, last an longest one = was

zpool import -fFX -N -R = /alternate/path zroot

which took approx 20 = minutes - with no success.

There are some = valuable data on the partition, which are all backed up, but it would = take its
time to restore everything, so I'd like to ask = whether there is any cance to "repair" the
mysterious = damage.

I'm able to boot off from an USB = flash drive =E2=80=A6


This = happens when vbox is telling zfs that data is written on disk, but is = actually still in caches=E2=80=A6 So yea, the standard answer could be = =E2=80=9Crestore from backup=E2=80=9D, but it also may help to use = ability to revert TXG (it does drop data!).  See also https://gist.github.com/mkhon/34d979c78077a20648456272d7f2cc15<= /a>





= --Apple-Mail=_4EBF50BE-5D7B-448D-A57C-5AF069043DE1--