Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It very much is a concern. ZFS has no knowledge about the internals of a database, which parts of a file are related to each other etc.


DBMSes always keep their database in the file system in a consistent state to be able to recover from system crashes. Taking a file system snapshot is equivalent to pulling the power on the database server in terms of data recovery, but databases are designed to support this.


As do filesystems. Yet I've seen anyone argue that cutting the power is the recommended way of doing backups.

In fact the opposite, make sure to use an UPS just so that you can shutdown cleanly in the unfortunate event.

For example: https://blogs.oracle.com/paulie/backing-up-mysql-using-zfs-s...


Some people came up with the idea of "crash-only software", arguing that it's better to maintain one code path (recovering from a crash) than two (clean start and recovery), but it hasn't caught on that much. https://www.usenix.org/legacy/events/hotos03/tech/full_paper...


Google follows this, I believe




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: