PXC搭建问题有哪些
admin
2023-05-13 08:22:22
0次
  1. 无法启动第一个节点

    2017-11-18T15:53:00.732400Z 0 [Note] WSREP: gcomm: connecting to group 'zrz', peer '192.168.1.101:'
    2017-11-18T15:53:00.733049Z 0 [Note] WSREP: (8dec793b, 'tcp://0.0.0.0:4567') connection established to 8dec793b tcp://192.168.1.101:4567
    2017-11-18T15:53:00.733073Z 0 [Warning] WSREP: (8dec793b, 'tcp://0.0.0.0:4567') address 'tcp://192.168.1.101:4567' points to own listening address, blacklisting
    2017-11-18T15:53:03.733022Z 0 [Note] WSREP: (8dec793b, 'tcp://0.0.0.0:4567') connection to peer 8dec793b with addr tcp://192.168.1.101:4567 timed out, no messages seen in PT3S
    2017-11-18T15:53:03.733131Z 0 [Warning] WSREP: no nodes coming from prim view, prim not possible
    2017-11-18T15:53:03.733151Z 0 [Note] WSREP: Current view of cluster as seen by this node
    view (view_id(NON_PRIM,8dec793b,1)
    memb {
            8dec793b,0
            }
    joined {
            }
    left {
            }
    partitioned {
            }
    )
    2017-11-18T15:53:04.233267Z 0 [Warning] WSREP: last inactive check more than PT1.5S ago (PT3.50093S), skipping check
    2017-11-18T15:53:33.736202Z 0 [Note] WSREP: Current view of cluster as seen by this node
    view ((empty))
    2017-11-18T15:53:33.736368Z 0 [ERROR] WSREP: failed to open gcomm backend connection: 110: failed to reach primary view: 110 (Connection timed out)
             at gcomm/src/pc.cpp:connect():158
    2017-11-18T15:53:33.736383Z 0 [ERROR] WSREP: gcs/src/gcs_core.cpp:gcs_core_open():208: Failed to open backend connection: -110 (Connection timed out)
    2017-11-18T15:53:33.736618Z 0 [ERROR] WSREP: gcs/src/gcs.cpp:gcs_open():1463: Failed to open channel 'zrz' at 'gcomm://192.168.1.101': -110 (Connection timed out)
    2017-11-18T15:53:33.736631Z 0 [ERROR] WSREP: gcs connect failed: Connection timed out
    2017-11-18T15:53:33.736636Z 0 [ERROR] WSREP: Provider/Node (gcomm://192.168.1.101) failed to establish connection with cluster (reason: 7)
    2017-11-18T15:53:33.736641Z 0 [ERROR] Aborting

    2017-11-18T15:53:33.736651Z 0 [Note] Giving 0 client threads a chance to die gracefully
    2017-11-18T15:53:33.736656Z 0 [Note] WSREP: Waiting for active wsrep applier to exit
    2017-11-18T15:53:33.736659Z 0 [Note] WSREP: Service disconnected.
    2017-11-18T15:53:33.736664Z 0 [Note] WSREP: Waiting to close threads......
    2017-11-18T15:53:38.736758Z 0 [Note] WSREP: Some threads may fail to exit.
    2017-11-18T15:53:38.736807Z 0 [Note] Binlog end
    2017-11-18T15:53:38.737048Z 0 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

    问题主要描述:错误日志提示无法成功加入节点

    原因:第一个节点启动时需要指定自己为作为集群启动

    解决办法:加--wsrep-new-cluster参数启动,官方指定的bootstrap-pxc参数并不生效

  2. 第二个节点无法加入

    2017-11-19T15:55:29.227793Z 0 [ERROR] WSREP: Process completed with error: wsrep_sst_xtrabackup-v2 --role 'donor' --address '192.168.1.103:4444/xtrabackup_sst//1' --socket '/data/mysql/3306/tmp/mysql3306.sock' --datadir '/data/mysql/3306/data/' --defaults-file '/data/mysql/3306/my.cnf' --defaults-group-suffix ''  --binlog 'mysql-bin' --gtid 'df47a753-cd3d-11e7-85b5-66f48d655632:0': 32 (Broken pipe)
    2017-11-19T15:55:29.227868Z 0 [ERROR] WSREP: Command did not run: wsrep_sst_xtrabackup-v2 --role 'donor' --address '192.168.1.103:4444/xtrabackup_sst//1' --socket '/data/mysql/3306/tmp/mysql3306.sock' --datadir '/data/mysql/3306/data/' --defaults-file '/data/mysql/3306/my.cnf' --defaults-group-suffix ''  --binlog 'mysql-bin' --gtid 'df47a753-cd3d-11e7-85b5-66f48d655632:0'
    问题描述:无法成功传输SST

     在mysql/bin目录下执行wsrep_sst_xtrabackup-v2 --role 'donor' --address '192.168.1.103:4444/xtrabackup_sst//1' --socket '/data/mysql/3306/tmp/mysql3306.sock' --datadir '/data/mysql/3306/data/' --defaults-file '/data/mysql/3306/my.cnf' --defaults-group-suffix ''  --binlog 'mysql-bin' --gtid 'df47a753-cd3d-11e7-85b5-66f48d655632:0'

    提示:

       which: no socat in (/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/mysql/bin:/usr/local/pxc/bin:/root/bin)      

    原因:缺少依赖组件socat

    解决办法:yum -y install socat

  3. 第二个几点无法加入

    2017-11-19T15:15:11.735984Z 2 [Note] WSREP: New cluster view: global state: 50970ac2-cc82-11e7-8b90-c716227b4ac7:0, view# 8: Primary, number of nodes: 2, my index: 0, protocol version 3
    2715-2017-11-19T15:15:11.735993Z 2 [Warning] WSREP: Gap in state sequence. Need state transfer.
    2716-2017-11-19T15:15:11.736057Z 0 [Note] WSREP: Initiating SST/IST transfer on JOINER side (wsrep_sst_rsync --role 'joiner' --address '192.168.1.102' --datadir '/data/mysql/3306/data/' --defaults-file '/data/mysql/3306/my.cnf' --defaults-group-suffix '' --parent '3104' --binlog 'mysql-bin' )
    2717:which: no lsof in (/usr/sbin:/sbin:/usr/local/Percona-XtraDB-Cluster-5.7.18-rel15-29.20.1.Linux.x86_64.ssl101/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/mysql/bin:/root/bin)
    2718-2017-11-19T15:15:11.874860Z 0 [ERROR] WSREP: Failed to read 'ready ' from: wsrep_sst_rsync --role 'joiner' --address '192.168.1.102' --datadir '/data/mysql/3306/data/' --defaults-file '/data/mysql/3306/my.cnf' --defaults-group-suffix '' --parent '3104' --binlog 'mysql-bin'
    2719:    Read: ''lsof' not found in PATH'
    2720-2017-11-19T15:15:11.874912Z 0 [ERROR] WSREP: Process completed with error: wsrep_sst_rsync --role 'joiner' --address '192.168.1.102' --datadir '/data/mysql/3306/data/' --defaults-file '/data/mysql/3306/my.cnf' --defaults-group-suffix '' --parent '3104' --binlog 'mysql-bin' : 2 (No such file or directory)
    2721-2017-11-19T15:15:11.874964Z 2 [ERROR] WSREP: Failed to prepare for 'rsync' SST. Unrecoverable.
    2722-2017-11-19T15:15:11.874987Z 2 [ERROR] Aborting
    2723-
    2724-2017-11-19T15:15:11.874993Z 2 [Note] Giving 2 client threads a chance to die gracefully
    问题描述:无法传输SST

    原因:缺少依赖组件lsof

    解决办法:yum -y install lsof

  4. 建议:1.先单机启动,更改完root账号,并创建好sst传输账号后,再启动第一个节点

          2.若xtrabackup-v2传输方式总是报错,可以改用rsync,并注释掉auth行

          3.第二第三个节点启动失败,可以暴力一点删掉data目录下面的文件后重新初始化

          4.可以删除data目录下面g开头的两个集群信息文件重新启动进行尝试排错

          5.telnet主节点的4567端口判断网络和主节点的mysqld服务是否正常。

          6.libaio,openssl也可以考虑安装

相关内容

热门资讯

空调连续工作多久需要停机休息 空调连续工作的时间取决于多个因素,包括空调的型号、功率、使用环境和维护情况等。一般来说,空调可以连续...
空调哪个符号是除湿的 空调除湿功能通常用一个水滴形状的符号表示。不同品牌和型号的空调遥控器可能会有所差异,但一般来说,除湿...
格力空调多长时间加一次氟利昂 1、一般情况下,空调对氟利昂的使用量是非常小的,所以在空调使用了四年左右的时候再考虑加也没问题。2、...
空调用多长时间需要加氟一次 一般情况下是五年。当出现以下这几种情况时,空调才需要加氟。1、空调的室内机和室外机各有两个接口,当接...
格调生活·C标思享荟:卡萨帝在... 9月12日的郑州龙湖金融岛,夜风轻拂,灯光璀璨。“C标时刻共传奇——卡萨帝思享荟暨20周年品牌盛典郑...
品牌价值破千亿、高端份额持续领... 9月12日,“C标时刻共传奇——卡萨帝思享荟暨20周年品牌盛典郑州站”在郑州龙湖金融岛举办。2026...
空调主板坏了修800还是换新的 空调主板坏了是修还是换新,需要考虑多个因素,以下是一些建议:1. 维修成本:如果维修费用较低,比如 ...
空调开多久需要休息多长时间 问题:空调开多久需要休息多长时间回答:1、在使用空调的过程中,一般空调开7~8个小时左右需要休息2~...
中央空调多长时间清洗一次 1、一般空调开机前清洗一次即可,空调开机中间时段再清洗一次,空调关机时清洗一次,这样比较合理。2、空...
中央空调氟利昂多久加一次 看空调制热和制冷程度,很多人的观点认为氟利昂必须一年放一次,其实这个观点是错误的,理解上面有点偏差,...