PXC主节点启动完成后,再启动node1,error日志报错:
2017-05-02T15:23:42.830888Z 0 [ERROR] WSREP: Failed to read 'ready <addr>' from: wsrep_sst_rsync --role 'joiner' --address '192.168.30
.221:5020' --datadir '/data/mysql/mysql_3307/data/' --defaults-file '/data/mysql/mysql_3307/my.cnf' --defaults-group-suffix '' --paren
t '5303' ''
Read: ''lsof' not found in PATH'
2017-05-02T15:23:42.831042Z 0 [ERROR] WSREP: Process completed with error: wsrep_sst_rsync --role 'joiner' --address '192.168.30.221:5
020' --datadir '/data/mysql/mysql_3307/data/' --defaults-file '/data/mysql/mysql_3307/my.cnf' --defaults-group-suffix '' --parent '530
3' '' : 2 (No such file or directory)
2017-05-02T15:23:42.831131Z 2 [ERROR] WSREP: Failed to prepare for 'rsync' SST. Unrecoverable.
2017-05-02T15:23:42.831151Z 2 [ERROR] Aborting
检查思路:
1、先检查rsync是否已安装:
[root@localhost mysql]# yum search rsync
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.sohu.com
* extras: mirrors.sohu.com
* updates: mirrors.aliyun.com
================ N/S matched: rsync ===============================
libguestfs-rsync.x86_64 : rsync support for libguestfs
rsync.x86_64 : A program for synchronizing files over a network
Name and summary matches only, use "search all" for everything.
表示rsync已经安装好。
2、检查lsof是否安装:
[root@localhost mysql]# yum search lsof
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.sohu.com
* extras: mirrors.sohu.com
* updates: mirrors.aliyun.com
================= N/S matched: lsof =================
lsof.x86_64 : A utility which lists open files on a Linux/UNIX system
Name and summary matches only, use "search all" for everything.
即lsof未安装。
先查找centos7的lsof的rpm包:
找到后下载,传给服务器:
[root@localhost src]# rpm -ivh lsof-4.87-4.el7.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:lsof-4.87-4.el7 ################################# [100%]
安装完成后再启动node2,启动完成:
[root@localhost mysql]# ./bin/mysqld_safe --defaults-file=/data/mysql/mysql_3307/my.cnf
2017-05-02T16:18:06.438428Z mysqld_safe Logging to '/data/mysql/mysql_3307/logs/error.log'.
2017-05-02T16:18:06.441666Z mysqld_safe error: log-error set to '/data/mysql/mysql_3307/logs/error.log', however file don't exists. Create writable for user 'mysql'.
[root@localhost mysql]# touch /data/mysql/mysql_3307/logs/error.log
[root@localhost mysql]# chown -R mysql:mysql /data/mysql/mysql_3307/
[root@localhost mysql]# ./bin/mysqld_safe --defaults-file=/data/mysql/mysql_3307/my.cnf
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
grep: write error: Broken pipe
2017-05-02T16:18:35.846719Z mysqld_safe Logging to '/data/mysql/mysql_3307/logs/error.log'.
2017-05-02T16:18:35.851450Z mysqld_safe Logging to '/data/mysql/mysql_3307/logs/error.log'.
2017-05-02T16:18:35.889501Z mysqld_safe Starting mysqld daemon with databases from /data/mysql/mysql_3307/data
2017-05-02T16:18:35.896799Z mysqld_safe Skipping wsrep-recover for empty datadir: /data/mysql/mysql_3307/data
2017-05-02T16:18:35.900008Z mysqld_safe Assigning 00000000-0000-0000-0000-000000000000:-1 to wsrep_start_position
在主节点上查看:
mysql> show global status like 'wsrep_cluster_size';
+--------------------+-------+
| Variable_name | Value |
+--------------------+-------+
| wsrep_cluster_size | 2 |
+--------------------+-------+
1 row in set (0.01 sec)
添加节点成功!
- Tomcat启动报错org.springframework.web.context.ContextLoaderListener类配置错误——SHH框架
SHH框架工程,Tomcat启动报错org.springframework.web.context.ContextLoaderListener类配置错误 1.查看配置文件web.xml中是否配置.or ...
- 【原】tomcat 7 启动报错:java.lang.NoSuchMethodError: javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCookieConfig的解决
现象: tomcat 7 启动报错:java.lang.NoSuchMethodError: javax.servlet.ServletContext.getSessionCookieConfig() ...
- Oracle启动报错ORA-03113解决
环境:RHEL6.4 + Oracle 11.2.0.4 步骤摘要:1.启动报错ORA-031132.查看alert日志查找原因3.根据实际情况采取合理的措施,这里我们先增加闪回区大小,把库启动起来4 ...
- Oracle启动报错ORA-27102解决
环境:RHEL5.5 + Oracle 10.2.0.4 此错误一般是因为数据库的初始化参数文件的内存设置不当导致.本例是因为操作系统参数设置问题导致. 当前现象:Oracle启动报错ORA-2710 ...
- ssh启动报错:org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
ssh项目启动报错: org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection t ...
- SVN 服务启动报错 0x8007042a
服务器环境:Windows Server 2008 R2 企业版,Visual SVNServer 2.6.5 不能签出代码,发现svn服务关闭,手动启动报错: 事件查看器: Error: no li ...
- Tomcat7.0启动报错:java.lang.illegalargumentexception:taglib definition not consisten with specification version
Tomcat7.0启动报错:java.lang.illegalargumentexception:taglib definition not consisten with specification ...
- eclipse 启动报错\workspace\.metadata\.log
eclipse启动报错,让查看.metadata\.log日志 eclipse启动不了,让查看.metadata\.log日志,上面为日志中的错误提示. 解决办法:删除 .metadata\.plug ...
- Weblogic 启动报错:java.lang.NoClassDefFoundError
Weblogic 启动报错:java.lang.NoClassDefFoundError ####<2015-6-17 下午03时30分47秒 CST> <Error> &l ...
随机推荐
- suse安装svn服务端和客户端的使用
suse安装svn服务端 一. 安装服务端 配置网络安装源(suse11sp1为例) 新建11.1.repo11.1为软件源名称,可自定义文件并添加如下内容后保存 linux-e0xg:/etc/zy ...
- Zkdash安装
zkdash是一个zookeeper的管理界面,也可以作为任何基于zookeeper的配置管理工具,比如:Qconf 1.拉取代码 #git clone https://github.com/irea ...
- Windbg DUMP分析(原创汇总)
1. 引入篇 所谓技术分享,其实是一个自我总结和相互学习.不断成长的过程. 考虑到之前原创的文章http://www.cnblogs.com/LoveOfPrince/p/6032523.html&l ...
- 按条件生成j随机json包:randomjson
前端开发中,在做前后端分离的时候,经常需要手写json数据,有2个问题特别揪心: 1,数据是写死的,不能按一定的条件随机生成长度不一,内容不一的数据 2,写数组的时候,如果有很多条,需要一条一条地写, ...
- ubuntu用不了root用户:~$ su - root Password: su: Authentication failure怎么办?
解除root锁定,为root用户设置密码. 打开终端输入:sudo passwd Password: <--- 输入你当前用户的密码 Enter new UNIX password: <- ...
- Intellj IDEA 简易教程
Intellj IDEA 简易教程 目录 JDK 安装测试 IDEA 安装测试 调试 单元测试 重构 Git Android 其他 参考资料 Java开发IDE(Integrated Developm ...
- php调试之路
解析php中die(),exit(),return的区别 die()停止程序运行,输出内容exit是停止程序运行,不输出内容return是返回值die是遇到错误才停止exit是直接停止,并且不运行后续 ...
- 使用$.post和action或servlet交互 URL出现 http://localhost:8080/../[object%20Object] 错误的问题解决
使用$.post时,如下所示: $.post({ url : "./test/ajaxTest", }); 控制台报:There is no Action mapped for n ...
- C语言编码风格_集锦_1
参考原地址: http://www.jb51.net/article/79257.htm <一> 在一个标准的C语言程序中, 最特殊的莫过于main函数了. 函数大体上分为内联函数(C99 ...
- Unity3D C#中使用LINQ查询(与 SQL的区别)
学过SQL的一看就懂 LINQ代码很直观 但是,LINQ却又跟SQL完全不同 首先来看一下调用LINQ的代码 int[] badgers = {36,5,91,3,41,69,8}; var skun ...