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

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2017-12-28 23:21:27 | 显示全部楼层 |阅读模式
Failed Actions:
) ~" n0 y0 E, _6 b& s" Z* controller_start_0 on controller1 'unknown error' (1): call=7, status=complete, exitreason='Unable to detect last
: m: p, h7 P, kknown write sequence number',2 E( d4 e: ]6 f- }7 A  D
    last-rc-change='Thu Dec 28 23:17:22 2017', queued=0ms, exec=7076ms
6 ^- U- }7 X: b# P9 r) N( ?

70

主题

73

回帖

1201

积分

网站编辑

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

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2017-12-29 10:40:48 | 显示全部楼层
安装ha组件:" |% F2 W3 h# {) N" L2 w& T- P* t
yum install pcs fence-agents-all/ C" B3 c8 W% A0 x0 G9 |" f( b0 v
- W! F9 o0 O( g4 b* d+ y
创建集群  e6 a( M3 b6 b
pcs cluster setup --start --name my_cluster z1.example.com z2.example.com) D2 t' f5 E! R% |( ~
启动集群服务
2 ~+ T9 L. k/ D. I: }! spcs cluster enable --all$ ]4 B( [/ n3 D
查看集群状态. u0 d' Q) C- b% X
pcs cluster status
. J9 a3 F3 V2 D  ?1 H$ J' F4 \4 v! C
9 k2 g4 A9 f8 f% q2 ^( `' z创建stonith设备2 z( D5 H& q! d

$ |6 x1 E. M+ jpcs 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"
/ I' W" ?3 I" A( X9 Npcs stonith show myapc8 q" b0 e9 K+ X" z1 A! s: K6 ?5 N* }: S

( T  c5 `4 G8 h8 x& M创建资源( D2 N1 T/ c9 P  j1 V2 j$ w2 z
pcs resource create my_lvm LVM volgrpname=my_vg exclusive=true --group apachegroup
% c- E0 I; P7 W0 P# H; s: \, dpcs resource show2 Z: p$ F% i+ |' M7 T2 O6 o
" N( L" M8 L7 g. Z) y- f
pcs resource enable1 X1 E$ F0 Y; A6 M% X0 I" h
pcs resource create my_fs Filesystem device="/dev/my_vg/my_lv" directory="/var/www" fstype="ext4" --group apachegroup
! }9 J8 s& W3 U# z5 e, S7 Ypcs resource create VirtualIP IPaddr2 ip=198.51.100.3 cidr_netmask=24 --group apachegroup
+ M- l  y5 x9 [/ x" ?0 upcs resource create Website apache configfile="/etc/httpd/conf/httpd.conf" statusurl="http://127.0.0.1/server-status" --group apachegroup: z9 p" i0 \( y- w; G$ K
pcs resource create VirtualIP ocf:heartbeat:IPaddr2 ip=192.16 8.0.120 cidr_netmask=24 opmonitorinterval= 30s8 z; v; e4 X$ b% N
" `' @0 }& z. U6 d, F+ Y$ a( a) F! Y

  [' Y1 m  @+ a) D5 A% o查看集群状态:5 M. g2 Q  q7 r
pcs status  r( w$ ~( x( \: q
倒换节点:pcs cluster standby z1.example.compcs cluster unstandby z1.example.com$ Z! ^2 i/ t/ J; K  R$ ^5 w
查看帮助pcs resource -h! c4 f+ v% S( q, x( N/ u- C* `
导出和备份配置文件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"
' A/ v  ]0 S  `9 M, p, Bfence对应节点:pcs stonith fence nodepcs resource delete VirtualIPpcs resource describe LVMpcs resource show --fullpcs resource enable resource_id
" j7 o5 ~* A* hpcs resource disable resource_id
) n  y4 b( B. J
! `2 X) U& E* |设置资源先后关系pcs constraint VirtualIP then dummy_resource kind=Optional! Y/ q" n: t( n; }2 r
进入维护模式:pcs resource unmanage resource1
" r) q. P8 {( A" m! |0 j/ e* ?解除维护模式
% j* e+ y# o3 H& n: L" Gpcs resource manage resource1

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2018-1-13 15:24:40 | 显示全部楼层
Failed Actions:) I* u( V$ C* q) B! ?: x
* my_wsrep_cluster_promote_0 on controller1 'unknown error' (1): call=12, status=complete, exitreason='Failure, Atte
3 c5 x3 \( J7 j# J' O& j$ Pmpted to promote Master instance of my_wsrep_cluster before bootstrap node has been detected.',
9 Y& P: `( K4 e# k% G    last-rc-change='Sat Jan 13 15:20:31 2018', queued=0ms, exec=94ms6 |2 C0 V9 a1 I! N; [
* my_wsrep_cluster_promote_0 on controller2 'unknown error' (1): call=12, status=complete, exitreason='Failure, Atte) G# h0 r* }. L0 \2 E. h  V: ?+ H
mpted to promote Master instance of my_wsrep_cluster before bootstrap node has been detected.',
2 X5 Q' Z$ l" e    last-rc-change='Sat Jan 13 15:20:33 2018', queued=1ms, exec=102ms
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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