Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Aug 2017 15:27:00 -0400
From:      Chris Ross <cross+freebsd@distal.com>
To:        Volodymyr Kostyrko <arcade@b1t.name>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: zfs import from old TXG
Message-ID:  <EDD12C6C-21B8-4FFA-933D-4DF410ACAF25@distal.com>
In-Reply-To: <bdece15b-d203-79df-2d10-4fb81154dd4f@b1t.name>
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> <FAE448FC-9A3F-43EE-8DED-963D51E6E158@distal.com> <bdece15b-d203-79df-2d10-4fb81154dd4f@b1t.name>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]

> On Aug 23, 2017, at 14:31, Volodymyr Kostyrko <arcade@b1t.name> wrote:
>>> That's -T, it was intentionally left undocumented.
>>> 
>>> /usr/src/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c /starting txg
>> 
>>  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 “zpool import -N [-F] -T 7428 tank”.  With or without a -F argument, I get:
>> 
>> cannot import 'tank': one or more devices is currently unavailable
>> 
>>  However, zpool import shows all of its devices ONLINE, and I only exported it a short while ago.  Is there something I’m missing that I can provide to proceed with effectively importing an earlier state of this pool?
> 
> Available transactions can be listed with:
> 
> zdb -ul <device>
> 
> 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...
> 
> PS: If not minutes.

  It was imported, though not mounted, for a few minutes during which time I broke something I’m 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’s around where I was aiming (7428), but I do see three in the 7300’s.  But, trying “zpool import -N -T 7375 tank” produces the same error.  As with the other two txg’s (7378, 7381) I saw.

  Any other ideas, since it looks like “available transaction” isn’t my [only] problem?

          - Chris



[-- Attachment #2 --]
-----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-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EDD12C6C-21B8-4FFA-933D-4DF410ACAF25>