BTRFS for a webserver

I've heard that btrfs is not recommended for MySQL and webserver. It's better to use ext4. Is it true? I'm talking about Ubuntu/OpenSUSE distros of Linux. Also I should add that we're talking about very few visitors (low traffic web site).
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Btrfs is still regarded as beta/experimental. SUSE and OpenSUSE though are encouraging it's use though, and they have made tools which make managing it easy. On Ubuntu that isn't the case, you'd first have to get it configured properly, and then manage it regularly (create snapshots, remove old snapshots so the disks don't fill up too much).

So if you are going to use btrfs, I'd go for SUSE or OpenSUSE where it works very well and has surpassed the experimental stage in my point of view.

One reason why it doesn't get recommended for MySQL is probably the speed impact. Btrfs can slow the disk access and MySQL normally needs fast disks. If you are doing lots of writes to the disk btrfs does snapshots slowing things down. But since your load isn't expected to be high, I don't think that would be a big issue in your case, and if your visitors mainly read from the MySQL database speed wouldn't get impacted either.
papakotaAuthor Commented:
Thanks a lot for your reply!
I only plan to use btrfs on OpenSUSE, not Ubuntu. I've read that there's a solution to MySQL issue you're mentioned. It's to created first a directory for it and then cancel COW on it. Like so:

$ sudo mkdir /var/lib/mysql
$ sudo chattr -R +C /var/lib/mysql

And then I can safely create MySQL  db there. To verify it's

$ sudo lsattr /var/lib/
---------------C /var/lib/mysql

What do you think of this solution?
I'm mostly interested in online stores and there's a minimal write input from visitors. But in my case, probably I won't notice the difference because of a low traffic.
Well, so please let me know what do you think of what I've written above.
I think that should be no problem.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
papakotaAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.