From nobody Fri Feb 07 08:48:21 2025 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 4Yq71W4Fdlz5n2CR for ; Fri, 07 Feb 2025 08:49:03 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Received: from smtp6.goneo.de (smtp6.goneo.de [85.220.129.31]) (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 4Yq71T4QQFz3QBs; Fri, 07 Feb 2025 08:49:01 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=walstatt-de.de header.s=DKIM001 header.b=Bn4gjGVd; spf=pass (mx1.freebsd.org: domain of freebsd@walstatt-de.de designates 85.220.129.31 as permitted sender) smtp.mailfrom=freebsd@walstatt-de.de; dmarc=none Received: from hub2.goneo.de (hub2.goneo.de [85.220.129.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp6.goneo.de (Postfix) with ESMTPS id 1E900240D8D; Fri, 7 Feb 2025 09:48:59 +0100 (CET) Received: from hub2.goneo.de (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by hub2.goneo.de (Postfix) with ESMTPS id 43ECD240181; Fri, 7 Feb 2025 09:48:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walstatt-de.de; s=DKIM001; t=1738918137; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fGu3w9j+ImvbZAkGrI06SGcn1jds1t6fqGKG3EZopm4=; b=Bn4gjGVdLG+cnAhRn2KIRPUyanR494EzmlH+pcnhYQMJe5MImpD7i/qixbixXSncXlX1Db IcM6gwyNsRoqJ65HZyGwa5v+N8QgCenZBnVay9lz1Kxmuzwb+iwwyh1Kmxzb12ojnP1HsV 1QA5PaqsEVZpwqhjjmRVkgM4GwFZIYDu2++5H0FEKqizshwuIlBz2PdX7d1uUt4VArVKO+ HGNLwIfjQ7ipJcaSe7dwJTswAEjqKUZC2EeyAnkC5lOkmoPDLnwD7m1oX6vmJHF0AQv0oJ LhT4hBoHJsMaj8r/tqmjKVLp2btG4nUeFEy7tvu6/1i8mA5S2hHZ89fkuDLAIA== Received: from thor.sb211.local (dynamic-2a02-3100-2517-1902-f442-1900-bc24-f58f.310.pool.telefonica.de [IPv6:2a02:3100:2517:1902:f442:1900:bc24:f58f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hub2.goneo.de (Postfix) with ESMTPSA id 0A9F82405D7; Fri, 7 Feb 2025 09:48:57 +0100 (CET) Date: Fri, 7 Feb 2025 09:48:21 +0100 From: A FreeBSD User To: Andriy Gapon Cc: freebsd-current@freebsd.org Subject: Re: ZFS: Rescue FAULTED Pool Message-ID: <20250207094848.3fcdd20a@thor.sb211.local> In-Reply-To: References: <20250129112701.0c4a3236@freyja> <20250130123354.2d767c7c@thor.sb211.local> <980401eb-f8f6-44c7-8ee1-5ff0c9e1c35c@freebsd.org> <20250201095656.1bdfbe5f@thor.sb211.local> 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 Content-Type: multipart/signed; boundary="Sig_/8qEJ0GptqA804KA9UYjhtly"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Rspamd-UID: 3400fa X-Rspamd-UID: 743201 X-Spamd-Result: default: False [-5.70 / 15.00]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ip4:85.220.129.0/25]; R_DKIM_ALLOW(-0.20)[walstatt-de.de:s=DKIM001]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[85.220.129.31:from]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:25394, ipnet:85.220.128.0/17, country:DE]; RBL_SENDERSCORE_REPUT_8(0.00)[85.220.129.31:from]; RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[walstatt-de.de]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[walstatt-de.de:+] X-Spamd-Bar: ----- X-Rspamd-Queue-Id: 4Yq71T4QQFz3QBs --Sig_/8qEJ0GptqA804KA9UYjhtly Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Am Tue, 4 Feb 2025 12:18:06 +0200 Andriy Gapon schrieb: > On 01/02/2025 10:57, A FreeBSD User wrote: > > Hello, this exactly happens when trying to import the pool. Prior to th= e loss, device da1p1 > > has been faulted with numbers in the colum/columns "corrupted data"/fur= ther not seen now. > >=20 > >=20 > > ~# zpool import > > pool: BUNKER00 > > id: XXXXXXXXXXXXXXXXXXXX > > state: FAULTED > > status: The pool metadata is corrupted. > > action: The pool cannot be imported due to damaged devices or data. > > The pool may be active on another system, but can be imported = using > > the '-f' flag. > > see:https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-72 > > config: > >=20 > > BUNKER00 FAULTED corrupted data > > raidz1-0 ONLINE > > da2p1 ONLINE > > da3p1 ONLINE > > da4p1 ONLINE > > da7p1 ONLINE > > da6p1 ONLINE > > da1p1 ONLINE > > da5p1 ONLINE > >=20 > >=20 > > ~# zpool import -f BUNKER00 > > cannot import 'BUNKER00': I/O error > > Destroy and re-create the pool from > > a backup source. > >=20 > >=20 > > ~# zpool import -F BUNKER00 > > cannot import 'BUNKER00': one or more devices is currently unavailable = =20 >=20 >=20 > Too late now, but another useful command for situations like this is > zdb -G BUNKER00 > It would print a log of various pool import actions. Not "too late", very much appreciated, such helpful worst-case-scenario wou= ld have a nice place in a small section "desaster recovery" in the handbook, wouldn't it? = The handbook is quite superficial at that point ... Kind regards, Oliver >=20 > E.g., on a good pool: > # zdb -G rpool >=20 > ZFS_DBGMSG(zdb) START: > spa.c:5694:spa_open_common(): spa_open_common: opening rpool > spa_misc.c:419:spa_load_note(): spa_load(rpool, config trusted): LOADING > vdev.c:162:vdev_dbgmsg(): disk vdev '/dev/gpt/S6PEN.rpool': best uberbloc= k found=20 > for spa rpool. txg 61892397 > spa_misc.c:419:spa_load_note(): spa_load(rpool, config untrusted): using= =20 > uberblock with txg=3D61892397 > spa_misc.c:2311:spa_import_progress_set_notes_impl(): 'rpool' Loading che= ckpoint txg > spa_misc.c:2311:spa_import_progress_set_notes_impl(): 'rpool' Loading ind= irect=20 > vdev metadata > spa_misc.c:2311:spa_import_progress_set_notes_impl(): 'rpool' Checking fe= ature flags > spa_misc.c:2311:spa_import_progress_set_notes_impl(): 'rpool' Loading spe= cial=20 > MOS directories > spa_misc.c:2311:spa_import_progress_set_notes_impl(): 'rpool' Loading pro= perties > spa_misc.c:2311:spa_import_progress_set_notes_impl(): 'rpool' Loading AUX= vdevs > spa_misc.c:2311:spa_import_progress_set_notes_impl(): 'rpool' Loading vde= v metadata > spa_misc.c:2311:spa_import_progress_set_notes_impl(): 'rpool' Loading ded= up tables > spa_misc.c:2311:spa_import_progress_set_notes_impl(): 'rpool' Loading BRT > spa_misc.c:2311:spa_import_progress_set_notes_impl(): 'rpool' Verifying L= og Devices > spa_misc.c:2311:spa_import_progress_set_notes_impl(): 'rpool' Verifying p= ool data > spa_misc.c:419:spa_load_note(): spa_load(rpool, config trusted): spa_load= _verify=20 > found 0 metadata errors and 4 data errors > spa_misc.c:2311:spa_import_progress_set_notes_impl(): 'rpool' Calculating= =20 > deflated space > spa_misc.c:2311:spa_import_progress_set_notes_impl(): 'rpool' Starting im= port > spa.c:8925:spa_async_request(): spa=3Drpool async request task=3D2048 > spa_misc.c:419:spa_load_note(): spa_load(rpool, config trusted): LOADED > ZFS_DBGMSG(zdb) END >=20 > On a bad pool, the log may have helped to identify the exact problem. >=20 --=20 A FreeBSD user --Sig_/8qEJ0GptqA804KA9UYjhtly Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRQheDybVktG5eW/1Kxzvs8OqokrwUCZ6XI8AAKCRCxzvs8Oqok r8iTAPwN+WFMbpZA7R+QwEuklMFyqfFKYpuQgp32U25ZoVuQDQEA8ExkypZzniU1 pnGgZMvoM4oAnP5rYNokhaMRux9zCgc= =vBUI -----END PGP SIGNATURE----- --Sig_/8qEJ0GptqA804KA9UYjhtly--