Oh no, what have I done...
Volodymyr Kostyrko
arcade at b1t.name
Sun Aug 13 14:03:58 UTC 2017
Paul Kraus wrote:
> 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.
>
> Looking at the manpages for zpool and zdb, it looks like doing this has gotten easier with `zdb -e -F` … operate on exported pool and rollback TXG until the pool is importable … but I’m sure there are limits :-)
That's -T, it was intentionally left undocumented.
/usr/src/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c /starting txg
--
Sphinx of black quartz judge my vow.
More information about the freebsd-fs
mailing list