TiKV Disk Partition Format

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

Original topic: TiKV磁盘分区格式

| username: jingyesi3401

[TiDB Usage Environment] Production environment, testing

[TiDB Version] v5.1.0

[Encountered Issue: Problem Phenomenon and Impact]
Today, I used fio to test disk performance, testing fdisk+xfs, fdisk+ext4, and fdisk+ext4+lvm formats respectively. The IOPS difference between ext4 and ext4+lvm formats is not significant. For the new environment and adding nodes, should I directly use fdisk+ext4+lvm or is it better to use fdisk+ext4?

Figure 1: fdisk+ext4 fio test results

Figure 2: fdisk+ext4+lvm test results

| username: 啦啦啦啦啦 | Original post link

Both are fine, but personally, I feel that LVM doesn’t hold much significance for TiDB. Generally, when disk space is insufficient, you should consider adding more nodes rather than expanding a single machine.

| username: tidb菜鸟一只 | Original post link

I also think it’s unnecessary. In theory, TiDB scales by adding nodes, so simply adding disk space isn’t very useful.

| username: system | Original post link

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