Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I've used ext3 and ext4 in the past with no issues, but I've seen a lot of installations on XFS as well. What are the advantages of XFS vs ext4 vs ?? with respect to the /var/lib/mysql directory?

Does the structure and size of your database influence the suitability of each? Are there other considerations?

Also, does filesystem choice impact High Availability at all?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

XFS seems to handle multiple writing threads more scalably than ext4 (but see this link on SSDs). NB you're more likely to see a difference with innodb than myisam.

There's a lot of other things which you should be looking at though - do you have a UPS (with smart shutdown capability)? Battery backed disk controller? Switching off the journal barriers is more dangerous on XFS than extX.

Also, does filesystem choice impact High Availability at all?

Yes. But (except for the barrier thing) there's not muc difference between ext3/4 and XFS.

share|improve this answer
    
The folks that wrote High Performance MySQL (3rd ed.) state: "We usually recommend that our customers use the XFS filesystem." –  HTTP500 May 14 '12 at 23:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.