Adding a new TiFlash node, error in configuring storage.main.dir

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

Original topic: 新增tiflash节点,配置storage.main.dir报错

| username: yeminhua

When adding a TiFlash node, if there are multiple disks, is there an error in the storage.main.dir configuration? If removed, there is no problem.

| username: Fly-bird | Original post link

OP, please upload the logs.

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

What is the first line of the YAML file? Can you provide a screenshot? Is the format incorrect?

| username: 大飞哥online | Original post link

Tab or space?

| username: yeminhua | Original post link

It’s the red part in the screenshot above, just that little bit.

| username: yeminhua | Original post link

No, if you remove storage.main.dir or change it to a single disk path with data-dir, it will work.

| username: yeminhua | Original post link

The log also shows the same prompt.

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

Try changing the value to [ “/data1/tidb-data/tiflash”, “/data2/tidb-data/tiflash” ]

| username: yeminhua | Original post link

caused by: yaml: unmarshal errors:
line 3: field storage.main.dir not found in type spec.TiFlashSpec
It won’t work, it will directly prompt an error on the line with storage.main.dir

| username: 喵父666 | Original post link

Take it out and have a look.

| username: 喵父666 | Original post link

Take a look at the configuration file.

| username: Jolyne | Original post link

Is there a specified version of TiFlash? Could it be incompatible with the current cluster?

| username: yeminhua | Original post link

You need to add , and configure it under config, only then it will work. Just a quick question, which types need to be configured under the config layer?

| username: yeminhua | Original post link

The configuration issue has been resolved, thank you.

| username: system | Original post link

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