From owner-freebsd-fs@freebsd.org Wed Aug 23 19:27:39 2017 Return-Path: Delivered-To: freebsd-fs@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 A473BDED91F for ; Wed, 23 Aug 2017 19:27:39 +0000 (UTC) (envelope-from cross+freebsd@distal.com) Received: from hydra.pix.net (hydra.pix.net [IPv6:2001:470:e254::4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.pix.net", Issuer "Pix.Com Technologies LLC CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3DA157F551 for ; Wed, 23 Aug 2017 19:27:38 +0000 (UTC) (envelope-from cross+freebsd@distal.com) Received: from mail.distal.com (mail.distal.com [IPv6:2001:470:e24c:200:0:0:0:ae25]) (authenticated bits=0) by hydra.pix.net (8.16.0.19/8.15.2) with ESMTPSA id v7NJRHaw001352 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 23 Aug 2017 15:27:24 -0400 (EDT) (envelope-from cross+freebsd@distal.com) Received: from [IPv6:2001:420:c0c4:1005::2f2] ([IPv6:2001:420:c0c4:1005:0:0:0:2f2]) (authenticated bits=0) by mail.distal.com (8.15.2/8.15.2) with ESMTPSA id v7NJREAU068843 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 23 Aug 2017 15:27:15 -0400 (EDT) (envelope-from cross+freebsd@distal.com) From: Chris Ross Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_92FF6035-E83E-436D-B31A-85FD975AB3FB"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: zfs import from old TXG Date: Wed, 23 Aug 2017 15:27:00 -0400 In-Reply-To: Cc: freebsd-fs@freebsd.org To: Volodymyr Kostyrko References: <3408A832-BF2E-4525-9EAC-40979BA3555B@distal.com> <20170813000323.GC95431@server.rulingia.com> <5B508AED-4DAC-42E4-8C56-4619C0D1A1C6@distal.com> <035BFBCB-BA43-4568-89E9-8E8DCDFAA8CA@kraus-haus.org> <928F1F16-0777-4D66-BD27-8224DF80363C@distal.com> <06EEEF86-E466-44EA-86F1-866DA32DD92D@kraus-haus.org> <1d3771a3-9c3a-1af9-9c48-032a01629630@b1t.name> X-Mailer: Apple Mail (2.3273) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (mail.distal.com [IPv6:2001:470:e24c:200:0:0:0:ae25]); Wed, 23 Aug 2017 15:27:16 -0400 (EDT) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Aug 2017 19:27:39 -0000 --Apple-Mail=_92FF6035-E83E-436D-B31A-85FD975AB3FB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Aug 23, 2017, at 14:31, Volodymyr Kostyrko wrote: >>> That's -T, it was intentionally left undocumented. >>>=20 >>> /usr/src/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c /starting = txg >>=20 >> Looking back at this, and trying to recover some data without = multi-day clean/restore cycles. I want to import my pool to an earlier = txg. I used zfs history to log the actions, and am trying to use = =E2=80=9Czpool import -N [-F] -T 7428 tank=E2=80=9D. With or without a = -F argument, I get: >>=20 >> cannot import 'tank': one or more devices is currently unavailable >>=20 >> However, zpool import shows all of its devices ONLINE, and I only = exported it a short while ago. Is there something I=E2=80=99m missing = that I can provide to proceed with effectively importing an earlier = state of this pool? >=20 > Available transactions can be listed with: >=20 > zdb -ul >=20 > I can't remember how long it takes to overwrite old transactions but = if the pool was imported more then a few hours after the disk was added = older transactions would already be overwritten... >=20 > PS: If not minutes. It was imported, though not mounted, for a few minutes during which = time I broke something I=E2=80=99m trying to recover, and a few minutes = after until I exported it and started evaluating whether it was = recoverable. Using zdb -ul, I see no tag=E2=80=99s around where I was aiming = (7428), but I do see three in the 7300=E2=80=99s. But, trying =E2=80=9Czp= ool import -N -T 7375 tank=E2=80=9D produces the same error. As with = the other two txg=E2=80=99s (7378, 7381) I saw. Any other ideas, since it looks like =E2=80=9Cavailable transaction=E2=80= =9D isn=E2=80=99t my [only] problem? - Chris --Apple-Mail=_92FF6035-E83E-436D-B31A-85FD975AB3FB Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJZndcNAAoJEPFBDnXvoNg0mkQP/R2pHRn5AdLp0vSB0lGvzkNm znbSho4H5CENat/ZQz7ug89MELDRC7zyyyKFvdQIs+x1bhZY2p3p/rykkVMWK4Vc /mb2L9H5ZP38u8tZRnpOeLLcbK2I/q6+uy1SoJ5A4rF8s+oS9OMiuWaUuVAlcbB7 lpfFEQQU80WjEq+yom7Et+I1eK0rBqYVeNwmVV8tht6BY/04LrciNuCSwR8y4BfR sGC7PDRwbFBjnmN0hEYIXogsHJJWVY5PgAzyd+3wVAzO085I4gW9lO3wvpGNO1be axRDMuaEzp9wD6if+KRDvDU+U3PEB1DzAvji4Bbr5ykxqaZLqA7v5QAUE2pbMez8 CvlbB0jUzYPVz1WB0XAaFEGFB/TjK2sir6Khi6LDZQ10g3haHfCe68zACG6wq/S2 KXl6kjSKPGDswEXWwjsOczDi12Zd7TvsDREXcDlwpF0VvRcToLV4NlHtZw+ZaND5 Jb+x+jTKVqSAvtvro0tCvkfcrVEXeC7KakbcgXiO7AVoigqr6b/sReE3Rm1szOF2 v4m5dRvBE9LPng2jCNBonLE+mNBIjnYh8UbYB5NeaRQMge+yRf+hun3LnZh+5xLI eVqaJ1WPUBqo9KlySBvaVHFSXxlKFX7AaIqrgGscmbl6kDZGbBlT3MbtVHc87Wpb mvS5JO35c32v0Nm3+q4O =ycmX -----END PGP SIGNATURE----- --Apple-Mail=_92FF6035-E83E-436D-B31A-85FD975AB3FB--