From owner-freebsd-fs@freebsd.org Sun Aug 13 16:56:03 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 BA97ADCA5AD for ; Sun, 13 Aug 2017 16:56:03 +0000 (UTC) (envelope-from cross+freebsd@distal.com) Received: from hydra.pix.net (hydra.pix.net [IPv6:2001:470:e254:10::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 5AC1276566 for ; Sun, 13 Aug 2017 16:56:02 +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 v7DGtbQS022197 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 13 Aug 2017 12:55:44 -0400 (EDT) (envelope-from cross+freebsd@distal.com) Received: from magrathea.distal.com (magrathea.distal.com [IPv6:2001:470:e24c:200:ea06:88ff:feca:960e]) (authenticated bits=0) by mail.distal.com (8.15.2/8.15.2) with ESMTPSA id v7DGtZOs097287 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 13 Aug 2017 12:55:36 -0400 (EDT) (envelope-from cross+freebsd@distal.com) Content-Type: multipart/signed; boundary="Apple-Mail=_BDF2A781-B1CF-43FB-9688-07F2EBF6AF76"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Oh no, what have I done... From: Chris Ross In-Reply-To: <1d3771a3-9c3a-1af9-9c48-032a01629630@b1t.name> Date: Sun, 13 Aug 2017 12:55:25 -0400 Cc: freebsd-fs@freebsd.org Message-Id: <8EE368A2-D2BA-4E43-8B84-47E8F50B5B1B@distal.com> 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> To: Volodymyr Kostyrko X-Mailer: Apple Mail (2.3124) 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]); Sun, 13 Aug 2017 12:55:36 -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: Sun, 13 Aug 2017 16:56:03 -0000 --Apple-Mail=_BDF2A781-B1CF-43FB-9688-07F2EBF6AF76 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Aug 13, 2017, at 09:54 , Volodymyr Kostyrko = wrote: >=20 > Paul Kraus wrote: >=20 >> Using zdb you can examine the TXGs and there is a way to force an = import to a certain TXG (at least under Illumos there is, I assume the = FBSD ZFS code is the same). I do not remember the specific procedure, = but it went by on one of the ZFS mailing lists a few years ago. The goal = at the time was not to deal with a changed pool configuration but a = series of writes that corrupted something (possibly due to a feature = being turned on at a certain point in time). You would lose all data = written after the TXG you force the import to. >>=20 >> Looking at the manpages for zpool and zdb, it looks like doing this = has gotten easier with `zdb -e -F` =E2=80=A6 operate on exported pool = and rollback TXG until the pool is importable =E2=80=A6 but I=E2=80=99m = sure there are limits :-) >=20 > That's -T, it was intentionally left undocumented. >=20 > /usr/src/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c /starting txg Thanks Peter, Paul, Volodymyr, and all. So I got my pool back online, = just in a way I don=E2=80=99t like it, so I=E2=80=99m trying to find a = place I can export (zfs send) the 5+ TB of data. Disadvantage of having = my largest data-store machine be the problem machine. :-) But, were I in a state as I was earlier in recent days, and I = understand the above, I might=E2=80=99ve been able to =E2=80=9Czfs = import -T=E2=80=9D to a TXG that was before I added the single-drive = vdev, and it would=E2=80=99ve imported just the working raidz1 and been = okay? If any data had been written in the very small time the new vdev = was added, that would be lost, but I would=E2=80=99ve been fine with = that. And, if I understand correctly, I would=E2=80=99ve used =E2=80=9Czdb=E2=80= =9D to find out what the TXG that I wanted to refer to was? Paul, you = mention using zdb against an exported pool, which of course I didn=E2=80=99= t have. Could I have found the old TXG to import from without having an = export? Just that that seems to be the gap I=E2=80=99m missing in the = above. But, all is well. Or at least, 99+% recoverable, it seems. Thank you = all for your time and information. What do rebuild after I find a way = to back the pool up will be this next weeks problem. - Chris --Apple-Mail=_BDF2A781-B1CF-43FB-9688-07F2EBF6AF76 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJZkISGAAoJEPFBDnXvoNg0wVwP/jT7fT/cy5SpJAvBIOyQ4SIZ ifaWO8u/lyAVJQGOUpqR4RGmZWSlxmn3IzLhInPFxXV9PGjzRDUJrDSGza2RWV8k Kzj2wSQEJGUmbEYlSY8ssZ51wMsjcFLrfsKAzJgfFztsy6XOdUR+3sGWAZKA/t7M B1lCgr+75rlfQZrX52aZOw3n3+S9c/Z5ggHBoAvw3gT66JOqyKbm2IkjyWj+1A50 QYIpuOB9InjGB22Uk3zk07wUDSxngjby9LBcbBArUl94yQkuBhmwB3TqbGxQiyeV WOpipLycDyaLjrlw+srfYhyiLDXS0vpI7ZGvzTN+dffUGb+skEBjZevfSPxLx1gR SIW2GI1Bw70ChOpeW9tqrCAdOKwYEZnv47XN3PrSc2Ziu2K3XTmHXalXmLPXn04i RYYl1GshEguCGfxJCkWF+dnMoU3g/LSD6OdjMy4n4QbOG/nWuSrFeMDWf9vquL20 zJvYT9gma5saBSvPUS4Ubbtk58yB5Dz5Hl4JSBxh3LWjFCRRNEwMDTe8znyYF30H lV/SrxTXoDyIh+Y2BUeJfgafHcX34vYwh6T+iHNfyIc9tfwDMldyCY5eoY+S5mR7 n02qOlGxV0dEiM6nkl0O99WwcpF8T7fbiaTxfnBlzJXB3X9NDjCn6N4cSFL3qBj9 MEXAmoYugAopC+8L87ZS =g833 -----END PGP SIGNATURE----- --Apple-Mail=_BDF2A781-B1CF-43FB-9688-07F2EBF6AF76--