ynwssjx / Openstack-HA-Deployment

Deploy OpenStack HA Cluster automatically based on the two books "Openstack Cluster HA:Deployment and Operation" and "Openstack Cluster HA:Architecture and Principles"
32 stars 47 forks source link

galera启动异常 #3

Open liangtiansheng opened 5 years ago

liangtiansheng commented 5 years ago

[root@controller1 ~]# pcs status Cluster name: openstack-ha Stack: corosync Current DC: controller1 (version 1.1.19-8.el7_6.4-c3c624ea3d) - partition with quorum Last updated: Tue May 7 16:52:46 2019 Last change: Tue May 7 16:47:13 2019 by root via cibadmin on controller1

3 nodes configured 18 resources configured

Online: [ controller1 controller2 controller3 ]

Full list of resources:

Clone Set: lb-haproxy-clone [lb-haproxy] Started: [ controller1 controller2 controller3 ] vip-db (ocf::heartbeat:IPaddr2): Started controller1 vip-rabbitmq (ocf::heartbeat:IPaddr2): Started controller2 vip-keystone (ocf::heartbeat:IPaddr2): Started controller3 vip-glance (ocf::heartbeat:IPaddr2): Started controller1 vip-cinder (ocf::heartbeat:IPaddr2): Started controller2 vip-swift (ocf::heartbeat:IPaddr2): Started controller3 vip-neutron (ocf::heartbeat:IPaddr2): Started controller1 vip-nova (ocf::heartbeat:IPaddr2): Started controller2 vip-horizon (ocf::heartbeat:IPaddr2): Started controller3 vip-heat (ocf::heartbeat:IPaddr2): Started controller1 vip-ceilometer (ocf::heartbeat:IPaddr2): Started controller2 vip-qpid (ocf::heartbeat:IPaddr2): Started controller3 Master/Slave Set: galera-master [galera] Stopped: [ controller1 controller2 controller3 ]

Failed Actions:

Daemon Status: corosync: active/enabled pacemaker: active/enabled pcsd: active/enabled

按照书本介绍的方式:pcs resource create galera galera enable_creation=true wsrep_cluster_address="gcomm://controller1,controller2,controller3" additional_parameters='--open-files-limit=16384' meta master-max=3 ordered=true op promote timeout=300s on-fail=block --master 出现上面的错误,mariadb galera启动不了,可否指点

ynwssjx commented 5 years ago

这个看起来好像是日志文件出现不一致的问题,把日志文件清除重新启动试试(初次部署的话把相关的文件都清除了重新启动试下)

liangtiansheng commented 5 years ago

版本的问题,您这个版本比较老了可能,我安装的是新的,配置文件不对,换了一个配置文件,可以正常使用了,thank you