使用 tidb-ansible 部署 tidb 集群报错

执行ansible-playbook bootstrap.yml后报错,

TASK [check_system_static : Preflight check - Systemd version] ********************************************************************************************* fatal: [192.168.3.200]: FAILED! => changed=false msg: Current systemd version is 219-30.el7 (below 219-52.el7), there are some memory bugs. Refer to https://access.redhat.com/discussions/3536621 fatal: [192.168.3.201]: FAILED! => changed=false msg: Current systemd version is 219-30.el7 (below 219-52.el7), there are some memory bugs. Refer to https://access.redhat.com/discussions/3536621 fatal: [192.168.3.202]: FAILED! => changed=false msg: Current systemd version is 219-30.el7 (below 219-52.el7), there are some memory bugs. Refer to https://access.redhat.com/discussions/3536621

NO MORE HOSTS LEFT ***************************************************************************************************************************************** to retry, use: --limit @/home/tidb/tidb-ansible/retry_files/bootstrap.retry

是系统版本问题么,用的centos,使用uname -r查看是3.10.0-514.el7.x86_64。 本地测试环境,使用虚拟机搭建,bootstrap.yml中注释了

  • name: check system hosts: all any_errors_fatal: true roles:
    • check_system_static

(井号注释) - { role: check_system_optional, when: not dev_mode|default(false) }

  • name: tikv_servers machine benchmark hosts: tikv_servers gather_facts: false roles:

(井号注释) - { role: machine_benchmark, when: not dev_mode|default(false) }

  • name: create ops scripts hosts: localhost connection: local gather_facts: false roles:
    • ops
1 个赞

目前支持在 x86_64 (AMD64) 和 ARM64 两种架构上部署 TiDB 集群。在 AMD64 架构下,建议使用 CentOS 7.3 及以上版本 Linux 操作系统;在 ARM 架构下,建议使用 CentOS 7.6 1810 版本 Linux 操作系统。

我用的虚拟机,装的是7.3版本。。。不会是需要装7.6吧:joy:

你好,

根据报错 当前 systemd 版本低于 2019-52.el7 尝试使用 yum update systemd* 更新下,在执行 bootstrap


1 个赞

确实是这里的问题,update之后可以了。 根本原因应该还是我选择了低版本的centos导致的。 感谢老铁(抱拳)(抱拳)(抱拳)

客气,有新的问题开新帖继续提问,虚拟机测试过程中可能存在一些问题,建议使用官网推荐配置进行测试哦~

还在功能验证阶段,服务器大军正在来的路上ing

:handshake: 3.0 以上的集群也可以尝试使用 TiUP 部署哈
https://pingcap.com/docs-cn/stable/how-to/deploy/orchestrated/tiup/

收到,每种方式都验证一遍

感谢,有问题欢迎开新帖反馈,多谢

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。