使用 TiUP cluster 在单机上模拟生产环境部署步骤过程中tiflash启动不了

我在使用 TiUP cluster 在单机上模拟生产环境部署步骤方式进行部署的时候,在运行
tiup cluster start tidb-test命令的时候:



我的topo.yaml文件是:
topo.yaml (1.1 KB)
相关的日子文件:
tiup-cluster-debug-2020-06-28-23-15-38.log (121.9 KB) 。

请问又哪位大佬遇到过,怎么解决。

你好

可以看下 tiflsh deploy dir 中 log 是否存在一些信息,上传下,我们分析看下。

大佬,能说具体一下吗?我不知道tiflsh deploy dir 中 log在哪里。麻烦了

topology 文件中,deploy_dir key 对应的路径,进去之后看下是否有 tiflsh 开头的目录,进去并找到 log,上传下。

image

嗯嗯,好勒。我晚上在家里的笔记本弄的,晚上回去了发你

ok,笔记安装可能内存不够导致启动失败,等你把 log 上传在确认下吧

大佬,我看了一下有对应的目录,但是里面没有相关的日志文件:


这个怎么破?

你好,

  1. 看下 /var/log/message 中是否有 tiflash 的信息?
  2. cat /proc/cpuinfo 和 uname -a,结果看下。

[root@shihaodong ~]# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 69
model name : Intel® Core™ i5-4200U CPU @ 1.60GHz
stepping : 1
microcode : 0x24
cpu MHz : 2301.000
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc cpuid aperfmperf pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm cpuid_fault epb invpcid_single pti fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid xsaveopt dtherm ida arat pln pts
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips : 4602.00
clflush size : 64
cache_alignment : 64
address sizes : 42 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 69
model name : Intel® Core™ i5-4200U CPU @ 1.60GHz
stepping : 1
microcode : 0x24
cpu MHz : 2301.000
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 4
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc cpuid aperfmperf pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm cpuid_fault epb invpcid_single pti fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid xsaveopt dtherm ida arat pln pts
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips : 4602.00
clflush size : 64
cache_alignment : 64
address sizes : 42 bits physical, 48 bits virtual
power management:

processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 69
model name : Intel® Core™ i5-4200U CPU @ 1.60GHz
stepping : 1
microcode : 0x24
cpu MHz : 2301.000
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 2
cpu cores : 4
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc cpuid aperfmperf pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm cpuid_fault epb invpcid_single pti fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid xsaveopt dtherm ida arat pln pts
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips : 4602.00
clflush size : 64
cache_alignment : 64
address sizes : 42 bits physical, 48 bits virtual
power management:

processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 69
model name : Intel® Core™ i5-4200U CPU @ 1.60GHz
stepping : 1
microcode : 0x24
cpu MHz : 2301.000
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 3
cpu cores : 4
apicid : 3
initial apicid : 3
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc cpuid aperfmperf pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm cpuid_fault epb invpcid_single pti fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid xsaveopt dtherm ida arat pln pts
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips : 4602.00
clflush size : 64
cache_alignment : 64
address sizes : 42 bits physical, 48 bits virtual
power management:

[root@shihaodong ~]#

[root@shihaodong ~]# uname -a
Linux shihaodong 4.18.0-193.el8.x86_64 #1 SMP Fri May 8 10:59:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
[root@shihaodong ~]#

el8,可以将版本换到 centos 7 再试下,tiflash 在 el8 的支持上貌似有些问题。但是 tidb 集群本身,建议也在 centos 7 上运行。大于等于 7.3 即可

嗯嗯,好的。我再试试。

感谢配合,通过 tiup playground,看下是否可以正常启动,并体验下 tidb 集群。

1 个赞


7.8版的可以吗

可以的。

  • TiDB 只支持 Red Hat 兼容内核 (RHCK) 的 Oracle Enterprise Linux,不支持 Oracle Enterprise Linux 提供的 Unbreakable Enterprise Kernel。
  • TiDB 在 CentOS 7.3 的环境下进行过大量的测试,同时社区也有很多该操作系统部署的最佳实践,因此,建议使用 CentOS 7.3 以上的 Linux 操作系统来部署 TiDB

内核升级到最新版本

嗯嗯,好的。我试试

ok,有问题开新帖回复吧,避免和该问题混淆,感谢配合

嗯嗯,好的。

:call_me_hand::call_me_hand::call_me_hand::call_me_hand: