找回密码
 注册
查看: 4581|回复: 3

pacemaker的服务都正常,但是报'unknown error

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2017-12-28 23:21:27 | 显示全部楼层 |阅读模式
Failed Actions:  \( o& n# D/ F) g0 A, U2 z
* controller_start_0 on controller1 'unknown error' (1): call=7, status=complete, exitreason='Unable to detect last
0 ]- A$ t. v, Y3 n) ~+ ?known write sequence number',) I6 E* f' j: b8 l
    last-rc-change='Thu Dec 28 23:17:22 2017', queued=0ms, exec=7076ms
% Z- P0 q7 r$ [5 B# F6 W9 Y( g4 P

70

主题

73

回帖

1201

积分

网站编辑

积分
1201
发表于 2017-12-29 10:30:47 | 显示全部楼层
谁遇到过此类问题。

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2017-12-29 10:40:48 | 显示全部楼层
安装ha组件:
- @2 l# \& ~+ q' b+ E& \  byum install pcs fence-agents-all
7 |( \3 y! N  D: P/ W6 G
4 y0 Y8 g3 m, a& r2 o6 k1 ]创建集群* w! q0 L/ N9 D' ^
pcs cluster setup --start --name my_cluster z1.example.com z2.example.com
; u, b* x: U( ^6 u, `* c* \- U! E( O启动集群服务- f  N5 p" w( ?5 z- v
pcs cluster enable --all
* G2 e* _* S# h查看集群状态
9 i" k- T! K. F" r' jpcs cluster status2 |; r: ^2 H0 i' F) g) R# ]( i
6 f$ P( @8 K+ E  Y  U0 Q
创建stonith设备
5 H" P/ `$ M2 ]+ a
! A( H! [2 D$ Ppcs stonith create myapc fence_apc_snmp params ipaddr="zapc.example.com" pcmk_host_map="z1.example.com:1;z2.example.com:2" pcmk_host_check= "static-list" pcmk_host_list="z1.example.com,z2.example.com" login="apc" passwd="apc" 9 G  E& s- o! i
pcs stonith show myapc" C' V" F/ l3 x$ d

7 N' B. u" T5 D: t1 _创建资源, U1 v) f- B4 s
pcs resource create my_lvm LVM volgrpname=my_vg exclusive=true --group apachegroup2 r/ |. j; U( C2 r; v5 J. T/ ~% Z, m
pcs resource show% K( [& p1 z; N
/ A/ n+ T+ \" }3 l4 F, |
pcs resource enable% r8 |1 y: n  w" g/ p& Y8 v. T
pcs resource create my_fs Filesystem device="/dev/my_vg/my_lv" directory="/var/www" fstype="ext4" --group apachegroup' g8 o0 C9 E, @$ m" ]3 G
pcs resource create VirtualIP IPaddr2 ip=198.51.100.3 cidr_netmask=24 --group apachegroup0 I& Z" E3 k4 J  X
pcs resource create Website apache configfile="/etc/httpd/conf/httpd.conf" statusurl="http://127.0.0.1/server-status" --group apachegroup
2 K. w  o6 R# i  Z7 |! C6 vpcs resource create VirtualIP ocf:heartbeat:IPaddr2 ip=192.16 8.0.120 cidr_netmask=24 opmonitorinterval= 30s8 @5 D1 e, X, S7 E/ G- u4 i/ V
& Q0 I2 [4 W! K
5 d  q4 d: h1 }
查看集群状态:1 J6 l8 s& X4 x. E
pcs status2 o7 X- N/ U% L
倒换节点:pcs cluster standby z1.example.compcs cluster unstandby z1.example.com
4 Q2 H; p' c6 ?) G查看帮助pcs resource -h
  C' U4 R: \+ _4 h$ M导出和备份配置文件pcs cluster cib testfilepcs config backuppcs config restorepcs cluster setup --name new_cluster nodeA nodeB --token 10000 --join 100pcs cluster stoppcs cluster enablepcs cluster disablepcs cluster node add nodepcs cluster node remove nodepcs cluster standby nodepcs cluster unstandby nodepcs stonith listpcs stonith describepcs stonith show --fullpcs stonith create myapc-west-13 fence_apc pcmk_host_list="west-13" ipaddr="west-apc" login="apc" passwd="apc" port="15"
6 }) p% p# k; R9 B% `3 Afence对应节点:pcs stonith fence nodepcs resource delete VirtualIPpcs resource describe LVMpcs resource show --fullpcs resource enable resource_id. E! h* i9 i: X. E7 |6 ]  F
pcs resource disable resource_id
$ t; ?( _$ B; |1 F3 j$ ]- V* H5 O2 y6 F4 ~1 @; y9 ]( s
设置资源先后关系pcs constraint VirtualIP then dummy_resource kind=Optional
: I3 g6 w* X4 j: @% y* H  F" r进入维护模式:pcs resource unmanage resource1
4 E3 U0 L7 ^  X4 E解除维护模式
$ x1 b+ c6 |' u& s" I2 A5 fpcs resource manage resource1

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2018-1-13 15:24:40 | 显示全部楼层
Failed Actions:
5 S/ L3 e( G  z* my_wsrep_cluster_promote_0 on controller1 'unknown error' (1): call=12, status=complete, exitreason='Failure, Atte' ?" ?/ [; F, ~  d
mpted to promote Master instance of my_wsrep_cluster before bootstrap node has been detected.',' h/ i% S$ a1 Z2 t1 s& W
    last-rc-change='Sat Jan 13 15:20:31 2018', queued=0ms, exec=94ms% E2 m1 m- J$ T+ I3 A7 e' r0 t& ~
* my_wsrep_cluster_promote_0 on controller2 'unknown error' (1): call=12, status=complete, exitreason='Failure, Atte
- ^" \' A2 g7 Q& ~- R/ Umpted to promote Master instance of my_wsrep_cluster before bootstrap node has been detected.',$ t5 h/ N5 @0 O3 ]
    last-rc-change='Sat Jan 13 15:20:33 2018', queued=1ms, exec=102ms
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 00:03 , Processed in 0.015010 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表