配置openstack mysql HA centos7

看了官网的配置说明 跟实际有点不一样(centos7),经过一番摸索,把这个配置过程记录下来

1.下载MariaDB-Galera-server xinetd,官网的文档写的是mariadb-galera-server,搜索后只有MariaDB-Galera-server,而且安装它以后,之前的mariadb会被替换掉;

a.mariadb.repo

b.yum --enablerepo=mariadb.repo install -y MariaDB-Galera-server xinetd

2.配置clustercheck和galera参见http://docs.openstack.org/zh_CN/high-availability-guide/content/ha-aa-db-mariadb-galera-rh.html

(第一个node启动的命令有点不同,文档上是/usr/libexec/mysqld,我用的是/usr/sbin/mysqld,这个搜下mysqld的位置来确定)

3.安装完毕后出现一个问题,除了第一个node,其他两个都启不来mysql.service:

151020 15:30:01 [Note] WSREP: New cluster view: global state: 969b16ae-77a4-11e5-98d9-eea35bd653ec:5857, view# 12: Primary, number of nodes: 2, my index: 0, protocol version 3
151020 15:30:01 [Warning] WSREP: Gap in state sequence. Need state transfer.
151020 15:30:01 [Note] WSREP: Running: ‘wsrep_sst_rsync --role ‘joiner‘ --address ‘172.16.5.74‘ --auth ‘‘ --datadir ‘/var/lib/mysql/‘ --defaults-file ‘/etc/my.cnf‘ --defaults-group-suffix ‘‘ --parent ‘30117‘ ‘‘ ‘
151020 15:30:01 [ERROR] WSREP: Failed to read ‘ready <addr>‘ from: wsrep_sst_rsync --role ‘joiner‘ --address ‘172.16.5.74‘ --auth ‘‘ --datadir ‘/var/lib/mysql/‘ --defaults-file ‘/etc/my.cnf‘ --defaults-group-suffix ‘‘ --parent ‘30117‘ ‘‘
Read: ‘(null)‘
151020 15:30:01 [ERROR] WSREP: Process completed with error: wsrep_sst_rsync --role ‘joiner‘ --address ‘172.16.5.74‘ --auth ‘‘ --datadir ‘/var/lib/mysql/‘ --defaults-file ‘/etc/my.cnf‘ --defaults-group-suffix ‘‘ --parent ‘30117‘ ‘‘ : 2 (No such file or directory)
151020 15:30:01 [ERROR] WSREP: Failed to prepare for ‘rsync‘ SST. Unrecoverable.
151020 15:30:01 [ERROR] Aborting

151020 15:30:03 [Note] WSREP: Closing send monitor...
151020 15:30:03 [Note] WSREP: Closed send monitor.
151020 15:30:03 [Note] WSREP: gcomm: terminating thread
151020 15:30:03 [Note] WSREP: gcomm: joining thread
151020 15:30:03 [Note] WSREP: gcomm: closing backend
151020 15:30:04 [Note] WSREP: (5c8fd4fd, ‘tcp://0.0.0.0:4567‘) turning message relay requesting off
151020 15:30:05 [Note] WSREP: view(view_id(NON_PRIM,5c8fd4fd,26) memb {
5c8fd4fd,0
} joined {
} left {
} partitioned {
9e2b15dd,0
})
151020 15:30:05 [Note] WSREP: view((empty))
151020 15:30:05 [Note] WSREP: gcomm: closed
151020 15:30:05 [Note] WSREP: New COMPONENT: primary = no, bootstrap = no, my_idx = 0, memb_num = 1
151020 15:30:05 [Note] WSREP: Flow-control interval: [16, 16]
151020 15:30:05 [Note] WSREP: Received NON-PRIMARY.
151020 15:30:05 [Note] WSREP: Shifting PRIMARY -> OPEN (TO: 5858)
151020 15:30:05 [Note] WSREP: Received self-leave message.
151020 15:30:05 [Note] WSREP: Flow-control interval: [0, 0]
151020 15:30:05 [Note] WSREP: Received SELF-LEAVE. Closing connection.
151020 15:30:05 [Note] WSREP: Shifting OPEN -> CLOSED (TO: 5858)
151020 15:30:05 [Note] WSREP: RECV thread exiting 0: Success
151020 15:30:05 [Note] WSREP: recv_thread() joined.
151020 15:30:05 [Note] WSREP: Closing replication queue.
151020 15:30:05 [Note] WSREP: Closing slave action queue.
151020 15:30:05 [Note] WSREP: Service disconnected.
151020 15:30:05 [Note] WSREP: rollbacker thread exiting
151020 15:30:06 [Note] WSREP: Some threads may fail to exit.
151020 15:30:06 [Note] /usr/sbin/mysqld: Shutdown complete

Error in my_thread_global_end(): 1 threads didn‘t exit
151020 15:30:11 mysqld_safe mysqld from pid file /var/lib/mysql/mysql4.pid ended

之前以为安装的过程有问题,所以重装了几次,发现该问题仍存在,那么就不是偶然事件了,搜了N久的谷歌也没搜到,后来改了/etc/my.cnf中feedback的配置,重启后就好了-.-

[mysqld]

feedback=ON

时间: 2024-10-04 06:29:12

配置openstack mysql HA centos7的相关文章

理解 OpenStack 高可用(HA) (5): MySQL HA

本系列会分析OpenStack 的高可用性(HA)概念和解决方案: (1)OpenStack 高可用方案概述 (2)Neutron L3 Agent HA - VRRP (虚拟路由冗余协议) (3)Neutron L3 Agent HA - DVR (分布式虚机路由器) (4)RabbitMQ HA (5)MySQL HA 1. MySQL HA 方案概括 Mysql HA 方案有很多种,包括: mmm: http://mysql-mmm.org/ mha: https://code.googl

理解 OpenStack 高可用(HA)(4):RabbitMQ 和 Mysql HA

本系列会分析 OpenStack 的高可用性(HA)解决方案: (1)概述 (写着中...) (2)Neutron L3 Agent HA - VRRP (虚拟路由冗余协议) (3)Neutron L3 Agent HA - DVR (分布式虚机路由器) (4)RabbitMQ 和 Mysql HA 1. 基础知识 1.1 Pacemaker Pacemaker 承担集群资源管理者(CRM - Cluster Resource Manager)的角色,它是一款开源的高可用资源管理软件,适合各种大

OpenStack Mitaka HA部署方案(随笔)

[Toc] --- title: Openstack Mitaka 集群安装部署 date: 2017-03-04-14 23:37 tags: Openstack --- ==openstack运维开发群:94776000 欢迎牛逼的你== ### Openstack Mitaka HA 实施部署测试文档 #### 一.环境说明 ##### 1.主机环境 ``` controller(VIP) 192.168.10.100 controller01 192.168.10.101, 10.0.0

openstack controller ha测试环境搭建记录(一)——操作系统准备篇

为了初步了解openstack controller ha的工作原理,搭建测试环境进行学习. 在学习该方面知识时,当前采用的操作系统版本是centos 7.1 x64.首先在ESXi中建立2台用于测试的虚机,最小化安装完成centos,配置IP分别为10.0.0.12.10.0.0.13,主机名分别为controller2.controller3. 关闭防火墙:# systemctl stop firewalld# systemctl disable firewalld 修改主机名:# host

OpenStack Mitaka HA高可用搭建

OpenStack Mitaka HA高可用搭建mini试看版version 1.0环境虚拟机列表:10.1.1.120 controller1 controller1.test.com10.1.1.121 controller2 controller2.test.com10.1.1.122 controller3 controller3.test.com10.1.1.133 compute1 compute1.test.com10.1.1.134 glance-backend backend.

Openstack Mitaka for Centos7.2 部署指南(一)

本文主要参考 https://www.zybuluo.com/ncepuwanghui/note/389373 OpenStack Mitaka for Ubuntu 16.04 LTS 部署指南 http://docs.openstack.org/mitaka/install-guide-rdo/ 官方文档 把上面的Ubuntu 换成Centos,其他详情请看上面的部署指南 本文主要参考 https://www.zybuluo.com/ncepuwanghui/note/389373 Open

OpenStack L3 HA agent and VRRP

OpenStack L3 HA agent and VRRP active/active 此方案描述利用了模块化layer 2 (ML2) 插件与Open vSwitch (OVS) OpenStack对 Networking Layer 3 High-Availability (L3 HA) 的一个基本实现. 在controller node 和network node 编辑配置文件/etc/neutron/neutron.conf allow_automatic_l3agent_failov

Ubuntu配置OpenStack 二:配置时间同步NTP和安装数据库Maridb以及问题总结

继上一节Ubuntu配置OpenStack 一:配置主机环境,下面继续为安装时间同步,以及配置openstack的安装包源和安装数据库Maridb.(全文截图都是由自己徒手搭建完成并且截图) 第一节连接配置主机环境  http://www.cnblogs.com/skylarzhan/p/7702078.html 一.安装时间同步NTP NTP(Network Time Protocol,网络时间协议)是用来使网络中的各个计算机保持时间同步的一种协议,NTP客户端可以和NTP服务器的计算机时间保

虚拟机配置Openstack常见问题汇总

之前配置了openstack,遇到一些问题,现在将问题全部汇总记录在这里. (1)问题:主机名字修改不了: 原因:没有进入root状态:或者没有正确打开文件,要打开的是/etc/hostname,结果忘记一个斜杠,直接/etc/hostname 解决方案:1.进入root状态 ,使用命令行sudo su 后面输入密码   2.检查输入文件名字是否正确 (2)问题:输入信息不进去 原因:可能是linux的操作键盘个windows不一样 解决方法:将光标移动到要输入的位置,然后按键盘 i ,然后进行