How to place TiKV and TiFlash on the same disk partition in TiDB 6.5

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

Original topic: tidb6.5如何让tikv与tiflash在同一磁盘分区上

| username: lfzihao

[TiDB Usage Environment] centos7.5
[TiDB Version] v6.5.0
[Reproduction Path] After upgrading TiDB from 6.1 to 6.5, I received a prompt that tikv and tiflash cannot use the same partition.
[Problem Encountered: Phenomenon and Impact]
After upgrading TiDB from 6.1 to 6.5, I received a prompt that tikv and tiflash cannot use the same partition, and it cannot start normally. However, I checked the official 6.5 documentation, which configures them on the same machine. Moreover, the recommended configuration documentation only suggests not using the same partition but does not enforce it. Is there any configuration that allows tiup to ignore this error?
[Resource Configuration]

[Attachments: Screenshots/Logs/Monitoring]



| username: Billmay表妹 | Original post link

Some official configuration requirements differ between the testing environment and the production environment~

If conditions permit, try to deploy them separately~

| username: lfzihao | Original post link

I currently only have one machine, and I am in a testing environment, not a production environment.

| username: Billmay表妹 | Original post link

How many cores does your CPU have, how many GB of RAM, and what type of hard drive do you have?

| username: lfzihao | Original post link

CPU: 16 cores, Memory: 64GB, Hard Drive Type: SATA, Size: 9TB

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

Will it still report an error if you ignore the check and deploy directly?

| username: lfzihao | Original post link

Yes, deploying directly will result in an error.

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

Check if port 9000 is occupied, and also see what the error is in the detailed logs of TiFlash.

| username: lfzihao | Original post link

Port 9000 is not occupied. According to the tiup logs, the tiflash logs were found, but the log files have no content. How can I enable tiflash logging?
image


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

Here is the log path
tiflash.log

| username: lfzihao | Original post link

The content is empty.

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

Is there enough disk space, and is it mounted under tidb-data/?

| username: Billmay表妹 | Original post link

CPU: 16 cores, Memory: 64GB, Disk type: SATA, Size: 9TB

@啦啦啦啦啦 It looks like there are insufficient resources.

| username: lfzihao | Original post link

There is remaining disk space and memory, and the mount is also fine.

| username: ffeenn | Original post link

Try starting TiFlash separately.

| username: Billmay表妹 | Original post link

This should not be an issue of being deployed on the same disk.

This is an error reported by tiup during the check, which is expected. Whether the upgrade was unsuccessful needs to be checked in the tiflash log, or according to the latest reply, start tiflash separately to see what information is returned.

Seeing that tiflash has no log,

docs-cn/complex-tiflash.yaml at master · pingcap/docs-cn

Follow the configuration to raise the bug level to debug to see if there is a log. If there is still no log, use ps to check the tiflash process and use strace to trace the tiflash stack.

| username: 数据小黑 | Original post link

Here’s an immature suggestion: if both TiKV and TiFlash have their data directories specified separately, wouldn’t this problem be solved?

| username: Minorli-PingCAP | Original post link

How about creating different directories on the same partition?

| username: system | Original post link

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