by throw0101a · 6y ago · 0 comments
The concept of an application 'supporting a (specific) file system' sounds slightly ridiculous to me.
Why is Btrfs so special that apps should be rewritten for it? The always-compared ZFS seems to work just fine without alterations being necessary, so what make Btrfs worthy of extra considerations?
At most perhaps copy-on-write (COW) file systems as a general class could perhaps be considered, as that may help with things like shingled drives and SSDs (i.e., zoned drives may be aligned with COW FSes).
This concept is actually way less ridiculous than you might think, for any application which needs any guarantees about data durability, locking, etc (which includes everything from the obvious ones like postgres to things like Dropbox). I found https://danluu.com/deconstruct-files/ a fascinating read diving into this.
ZFS has no Raid5 write-hole...no traditional Raid problems at all (z1/2/3)
>leaving files/directories/volumes without CoW
No...just NO, just for a special Cases like a Database.
The thread was about where CoW is problematic, both ZFS and Btrfs are identically problematic in this sense.
> No...just NO, just for a special Cases like a Database.
Like... for what we were talking about.
This can go too far—I still remember web development a decade ago—and I would prefer to have perfect abstractions that never need piercing, but absent that specialized logic seems _fine_.
Clearly you weren’t around in the days when NFS was a thing.
I was and am. I currently help admin an HPC environment with several petabytes of NFS storage.
And the main problems I've experienced with NFS have generally been with Linux locking. I've had a lot less drama with Solaris and BSD NFS (though I did uncover two Solaris NFS server bugs over the years).
Whenever I have NFS issues I generally start with the assumption that there's a bug in the NFS client code.
The fact you’re not having trouble just means either the application writers put in the effort to properly support it, or your use case is simple enough not to run into problems.
Given the hiccups that we've had with MySQL and locking, I'm not sure that's the case. (Less so with Postgres.)
I have only a moderate amount of knowledge of the applications that the dozen research groups use on the cluster, I just make sure the bits flow and haven't heard too many complaints over the years.