Why can TiKV only use ext4 and not xfs?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: tikv 为什么只能用ext4,不能用xfs吗

| username: Holland

【TiDB Usage Environment】Production Environment / Testing / PoC
【TiDB Version】

【Reproduction Path】What operations were performed when the issue occurred
【Encountered Issue: Issue Symptoms and Impact】
【Resource Configuration】Go to TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
【Attachments: Screenshots/Logs/Monitoring】

| username: xfworld | Original post link

You can use xfs, but ext4 will be more stable in extreme cases…

It is also recommended by the official…

| username: 烂番薯0 | Original post link

You can use xfs; we are using xfs, but the official recommendation is to use ext4 for better performance. Using xfs might bring some issues that could affect production.

| username: 像风一样的男子 | Original post link

The official recommendation is NVME type SSD disks. Ext4 formatted disks are more stable than xfs, as xfs can experience thread_running jitter under high concurrency, whereas ext4 does not.

| username: cassblanca | Original post link

You can use xfs, but the official recommendation is to use ext4 as the best practice. The reliability, security, and stability of ext4 have been proven in many online scenarios.

| username: zhanggame1 | Original post link

I didn’t find any issues when testing xfs, but the official documentation doesn’t mention whether it can be used or what parameters need to be changed if it is used.

| username: h5n1 | Original post link

The official team has detected bugs in xfs.

| username: TiDBer_vfJBUcxl | Original post link

This post mentions that XFS has data loss issues and IO pressure is almost twice as high as ext4.

| username: Holland | Original post link

Then it seems we still have to choose ext4.

| username: TiDBer_vfJBUcxl | Original post link

You can use xfs, but the official recommendation is to use ext4 as the best practice.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.