The Next3 filesystem
The Next3 filesystem
Posted Jun 10, 2010 0:36 UTC (Thu) by cmccabe (guest, #60281)In reply to: The Next3 filesystem by anton
Parent article: The Next3 filesystem
> a power failure or OS crash, we can use file systems like tmpfs and ext4
> for these data.
This is a trollish statement. I have lost power and had OS crashes many times with ext4 and never had to restore from backups.
> But many of us want to avoid that hassle in the common
> case when the disk behaves properly, and we need a file system for that
> case that behaves properly, too. And just like IBM (now Hitachi) and
> Maxtor (now Seagate) drives are on my don't-buy list after the problems
> mentioned above, ext4 is on my don't-use list.
Even if you had a filesystem that met all of your requirements (and it's unclear if any real filesystem actually does), no consumer-grade hardware guarantees sane behavior in the event of power loss. Some hard disks are better than others, but a lot have serious problems. Some lie about when data has been flushed to disk. Others corrupt data randomly when power is lost.
Even if you buy only certain brands of drives, manufacturers re-brand hard drives all the time. It's hard to know what you're actually buying.
So *if* your hard drive doesn't ruin power-loss for you anyway, *and* your application is written sloppily enough that it doesn't fsync, *and* this application is critical to your system, then ext3 *might* be more reliable, maybe. Is it possible that you're overreacting?
Posted Jun 14, 2010 14:01 UTC (Mon)
by Cato (guest, #7643)
[Link] (6 responses)
http://lwn.net/Articles/343425/ has more details. Haven't had any more problems since stopping use of write caching and making some other changes such as ext3 data=journal. I also stopped using LVM but I don't think that's a factor - on other PCs I now just use data=journal and turn off hard disk write caching, and still use LVM.
Posted Jun 15, 2010 10:07 UTC (Tue)
by etienne (guest, #25256)
[Link] (1 responses)
Posted Jun 15, 2010 20:33 UTC (Tue)
by Cato (guest, #7643)
[Link]
Posted Jun 23, 2010 1:41 UTC (Wed)
by cmccabe (guest, #60281)
[Link] (3 responses)
Personally, I use rsync for monthly backup, every month, and hope for the best. And when you see that first I/O error come out of /dev/sda... throw that thing in the trash. I've never seen a disk "get better" after starting to give I/O timeouts and errors.
C.
Posted Jun 23, 2010 1:49 UTC (Wed)
by cmccabe (guest, #60281)
[Link]
I haven't ever lost data as a result of a power outage, partly because I'm a compulsive user of the save button / command. I also didn't get bitten by the ext4 rename bug / controversy because I was using ext3 at the time. I don't have a UPS at home or work.
Posted Jun 23, 2010 12:16 UTC (Wed)
by Cato (guest, #7643)
[Link] (1 responses)
Posted Jun 23, 2010 13:30 UTC (Wed)
by nix (subscriber, #2304)
[Link]
(If you've got a lot of those, try rdiff-backup. It's slower than rsnapshot, but when a file changes it stores rdiff-format compressed deltas from the new file to the old one, rather than resaving the entire old file all over again.)
The Next3 filesystem
The Next3 filesystem
Historically, that has lead to strange bugs - like LILO was able to start after running Windows 3.1 but not from a cold boot (or the opposite), because the hard disk was reconfigured with a different number of heads and sector per track (BIOS only times, no LBA).
For all what I can see, it is exactly the same nowadays.
The reason has always been to give time to the hard disk to finish and write back its cache.
The Next3 filesystem
The Next3 filesystem
The Next3 filesystem
Since I turn off disk write caching that bypasses the problem of write barriers being disabled in such kernels.
For backups, I use DAR (like tar but with granular checksums for easier recovery from corruption) and rsnapshot, which is rsync-based, but a true backup system as it saves multiple versions and runs very fast, like rsync - works very well as long as you don't have very large files that change frequently.
The Next3 filesystem
The Next3 filesystem
DAR (like tar but with granular checksums for easier recovery from corruption)
Actually par2 provides that feature. What dar gives you is multi-storage-medium support via running arbitrary scripts to change medium. tar has nothing like it.
works very well as long as you don't have very large files that change frequently
Like, uh, VM images? I hear they're quite common these days.