tidb7.4部署集群成功,启动集群是ti-flash无法启动。

【 TiDB 使用环境】测试
【 TiDB 版本】7.4.0
【遇到的问题:问题现象及影响】


安全启动时报以上错误,具体日志如下:

[root@localhost ~]# cd /data/tidb-deploy/tiflash-9000/log
[root@localhost log]# ll
总用量 4
-rw-r–r-- 1 tidb tidb 1140 10月 30 09:28 tiflash_stderr.log
[root@localhost log]# cat tiflash_stderr.log
Fail to check CPU flags: avx2 not supported. Require avx2 popcnt movbe.
Fail to check CPU flags: avx2 not supported. Require avx2 popcnt movbe.
Fail to check CPU flags: avx2 not supported. Require avx2 popcnt movbe.
Fail to check CPU flags: avx2 not supported. Require avx2 popcnt movbe.
Fail to check CPU flags: avx2 not supported. Require avx2 popcnt movbe.
Fail to check CPU flags: avx2 not supported. Require avx2 popcnt movbe.
Fail to check CPU flags: avx2 not supported. Require avx2 popcnt movbe.
Fail to check CPU flags: avx2 not supported. Require avx2 popcnt movbe.
Fail to check CPU flags: avx2 not supported. Require avx2 popcnt movbe.
Fail to check CPU flags: avx2 not supported. Require avx2 popcnt movbe.
Fail to check CPU flags: avx2 not supported. Require avx2 popcnt movbe.
Fail to check CPU flags: avx2 not supported. Require avx2 popcnt movbe.
Fail to check CPU flags: avx2 not supported. Require avx2 popcnt movbe.
Fail to check CPU flags: avx2 not supported. Require avx2 popcnt movbe.
Fail to check CPU flags: avx2 not supported. Require avx2 popcnt movbe.
[root@localhost log]#

TiFlash 简介 | PingCAP 文档中心

1 个赞

这是要看cpu的型号吗?
我看文档也没写不支持AVX2怎么办,是要换CPU?

CPU的指令集不对,必须支持AVX2

TiFlash 有要求必须支持AVX2 指令集

  1. 虚拟机改配置就行,具体根据你的虚拟软件度娘下
  2. 物理机大部分cpu都支持,除非特别古老的机器,不支持也就是不支持了

怪不得,我说怎么再另一台机器部署的单机集群是可以支持的,另外划分了三台虚拟机就不行了。如果我现在要吧ti-flash换到别的机器的话,现在部署的集群需要怎么操作,需要卸载吗?

物理宿主机如果不支持avx2指令集那虚拟机也没法修改是吧?

CPU不支持,换CPU吧 :grinning:

对的。。。 不过现在基本都支持了 不支持的机器最少得十年往上了吧

软件如果装好了,直接缩容就行

1 个赞

软件部署完毕了,缩容就是把tiflash缩掉是吧?

:+1: :+1: :+1:,学到了

把现在的tiflash缩容掉,然后扩容到支持avx2的机器上吧

1 个赞

是的~~

cpu太老了,10年前的吧

Fail to check CPU flags: `avx2` not supported. Require `avx2 popcnt movbe` .

这里提示了,使用虚拟机试试。

是的,确实是以前项目替换下来的服务器。

现在就是虚拟机,应该和宿主机的cpu有关系。

那年头有点老了估计,哈哈!物理环境如果不支持,虚机环境可以设置CPU指令集么?你测试过了吗?