[OmniOS-discuss] Is it possible to roll back a ZPOOL(which cannot be imported) to its last known good state?

Youzhong Yang youzhong at gmail.com
Mon Jan 25 20:50:51 UTC 2016


Hi all,

Just wondering if anyone has done similar recovery using txg stuff.

We have a zpool attached to two hosts physically, ideally at any time only
one host imports this zpool. Due to some operational mistake this zpool was
corrupted when the two hosts tried to have access to it. Here is the crash
stack:

Jan 25 10:07:17 batfs0346 genunix: [ID 403854 kern.notice] assertion
failed: 0 == dmu_bonus_hold(spa->spa_meta_objset, obj, FTAG, &db), file:
../../common/fs/zfs/spa.c, line: 1549
Jan 25 10:07:17 batfs0346 unix: [ID 100000 kern.notice]
Jan 25 10:07:17 batfs0346 genunix: [ID 802836 kern.notice] ffffff017495c920
fffffffffba6b1f8 ()
Jan 25 10:07:17 batfs0346 genunix: [ID 655072 kern.notice] ffffff017495c9a0
zfs:load_nvlist+e8 ()
Jan 25 10:07:17 batfs0346 genunix: [ID 655072 kern.notice] ffffff017495ca90
zfs:spa_load_impl+10bb ()
Jan 25 10:07:17 batfs0346 genunix: [ID 655072 kern.notice] ffffff017495cb30
zfs:spa_load+14e ()
Jan 25 10:07:17 batfs0346 genunix: [ID 655072 kern.notice] ffffff017495cb80
zfs:spa_tryimport+aa ()
Jan 25 10:07:17 batfs0346 genunix: [ID 655072 kern.notice] ffffff017495cbd0
zfs:zfs_ioc_pool_tryimport+51 ()
Jan 25 10:07:17 batfs0346 genunix: [ID 655072 kern.notice] ffffff017495cc80
zfs:zfsdev_ioctl+4a7 ()
Jan 25 10:07:17 batfs0346 genunix: [ID 655072 kern.notice] ffffff017495ccc0
genunix:cdev_ioctl+39 ()
Jan 25 10:07:17 batfs0346 genunix: [ID 655072 kern.notice] ffffff017495cd10
specfs:spec_ioctl+60 ()
Jan 25 10:07:17 batfs0346 genunix: [ID 655072 kern.notice] ffffff017495cda0
genunix:fop_ioctl+55 ()
Jan 25 10:07:17 batfs0346 genunix: [ID 655072 kern.notice] ffffff017495cec0
genunix:ioctl+9b ()
Jan 25 10:07:17 batfs0346 genunix: [ID 655072 kern.notice] ffffff017495cf10
unix:brand_sys_sysenter+1c9 ()

Is it possible to roll back the zpool to its last known good txg? We know
when the zpool should be in good state.

Any suggestion would be very much appreciated. We can build a kernel if
needed.

Thanks,

- Youzhong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://omniosce.org/ml-archive/attachments/20160125/00e2dc4a/attachment.html>


More information about the OmniOS-discuss mailing list