3 ms·
ZFS doesn't have a repairing fsck because it doesn't need one. The on-disk format uses a transactional design such that its always consistent, even if it fails
by cynicalkane 16y ago
ZFS doesn't have a repairing fsck because it doesn't need one. The on-disk format uses a transactional design such that its always consistent, even if it fails in the middle of a write.
AFIAK the only way to damage a zpool is if some snafu (one more serious than a mere write failure) wiped out a bunch of metadata together with the backup metadata all at the same time, but such an event would do very serious damage to any filesystem, which is why all important data should have an off-site backup.
- oomkiller 16y agoAnd now, you can even fix this with zpool import -F. It will find the last consistent transaction in the array and roll back to it. Saved my buddy's ass a few weeks ago when he went to replace a drive and accidentally pulled out 2 SATA connectors at once (on a raidz1).