4 ms·
So if you have an unmountable zfs pool, instead of reaching for fsck (which doesn't and won't exist) you can instead do: zpool clear -F data And it will t
by ianlevesque 14y ago
So if you have an unmountable zfs pool, instead of reaching for fsck (which doesn't and won't exist) you can instead do:
zpool clear -F data
And it will take advantage of the copy-on-write nature of ZFS to roll back to the last verifiably consistent state of your filesystem. That's a lot better than the uncertain fixes applied by fsck to other file systems. It even tells you how old the restored state is.
- cbr 14y agoWhy not ship with fsck.zfs="zpool clear -F data"? Then people would stop complaining.