4 ms·
> Just don't complain the next time you start it up that disk files you were writing to when the power failed are corrupted. That should never, ever, ever happ
by throwaway684936 5y ago
> Just don't complain the next time you start it up that disk files you were writing to when the power failed are corrupted.
That should never, ever, ever happen if your OS and filesystem are even remotely quality software.
- gnubison 5y agoIf your kernel is doing any caching and it’s shutdown without a chance to flush its caches, then doesn’t it necessarily have the possibility of corrupted data?
- throwaway684936 5y agoNo. ZFS is well-renowned for a reason, it's very resilient. The chance of a power cut ever inducing any actual data loss with ZFS is astronomically low. https://superuser.com/questions/1134753/can-zfs-cope-with-sudden-power-loss-what-events-cause-a-pool-to-be-irrecoverab https://superuser.com/questions/1134753/can-zfs-cope-with-su...
- erezsh 5y agoI'm not so sure. Most filesystems don't come with ACID guarantees.
- throwaway684936 5y agoThey should. ZFS is roughly the filesystem equivalent of an ACID database. It's incredibly resilient to power cuts. https://superuser.com/questions/1134753/can-zfs-cope-with-sudden-power-loss-what-events-cause-a-pool-to-be-irrecoverab https://superuser.com/questions/1134753/can-zfs-cope-with-su...