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

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2017-12-28 23:21:27 | 显示全部楼层 |阅读模式
Failed Actions:: u! ?6 b0 ~" [- O# G. l/ X
* controller_start_0 on controller1 'unknown error' (1): call=7, status=complete, exitreason='Unable to detect last2 u: r+ W. b, a7 I& m9 B/ x
known write sequence number',
) _3 f, g9 F1 W7 x! o+ l    last-rc-change='Thu Dec 28 23:17:22 2017', queued=0ms, exec=7076ms8 \9 n* \2 s" M

70

主题

73

回帖

1201

积分

网站编辑

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

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2017-12-29 10:40:48 | 显示全部楼层
安装ha组件:
- w2 t8 V2 L# ^1 p; |$ L; R1 eyum install pcs fence-agents-all
. U4 D0 A! P. g( W" C- g, J6 e6 F: W# d# s: Z. c3 m
创建集群
2 y& C5 M; U6 cpcs cluster setup --start --name my_cluster z1.example.com z2.example.com
1 ?( |4 O2 |; a! T$ E& w# V启动集群服务
1 P* [+ n* a: J; |+ R% N7 hpcs cluster enable --all
+ r2 y0 i$ q# Y" u查看集群状态$ `  D% d+ i9 p0 a# t2 H* c
pcs cluster status/ d* u# m$ G: z: f% O" y
5 i+ d$ w) n' {$ x8 K
创建stonith设备- Q- |# Q- V" e, B& Q) x6 t% f7 B

4 K2 W8 i$ r1 C/ e* ^( fpcs 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"
8 x; ]8 H  m1 x; X& hpcs stonith show myapc
7 L: G) |8 w/ T" z  R5 E
7 G) [$ I* P; D$ x创建资源) u9 d" t6 x- X3 w' J4 y. ~
pcs resource create my_lvm LVM volgrpname=my_vg exclusive=true --group apachegroup
; G& Z( ?: \  W4 l. B7 ]pcs resource show; D1 ~  b$ J1 }( Y, y% [

& T! j! H- p  ]0 P/ Y: Zpcs resource enable
) B# Q5 I# B) O: D; Apcs resource create my_fs Filesystem device="/dev/my_vg/my_lv" directory="/var/www" fstype="ext4" --group apachegroup
8 w; T( X7 Z( B. M! r, x8 E/ Bpcs resource create VirtualIP IPaddr2 ip=198.51.100.3 cidr_netmask=24 --group apachegroup% Y) x" }2 \) i* w
pcs resource create Website apache configfile="/etc/httpd/conf/httpd.conf" statusurl="http://127.0.0.1/server-status" --group apachegroup
( d5 r9 h3 t5 h9 P+ ppcs resource create VirtualIP ocf:heartbeat:IPaddr2 ip=192.16 8.0.120 cidr_netmask=24 opmonitorinterval= 30s
% t0 x' V  Q* \2 s6 S0 W7 ?8 `( i% E0 {* d0 P. W; G

' D) X1 P! D4 j) B! R" O) ]2 W. M6 {查看集群状态:$ H6 H: ~4 |- O' H6 z
pcs status
! o  F! ]! t$ U4 `. R; B* C倒换节点:pcs cluster standby z1.example.compcs cluster unstandby z1.example.com8 a6 j! b( q4 Y# ]0 s
查看帮助pcs resource -h
& _6 K! b( L; T导出和备份配置文件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"* Z: X4 B1 V5 B8 ?4 _% w0 k  F
fence对应节点:pcs stonith fence nodepcs resource delete VirtualIPpcs resource describe LVMpcs resource show --fullpcs resource enable resource_id
! W  K' `/ x, V  i+ ~! Mpcs resource disable resource_id) C* b2 [" Q* v% g

1 z4 O. f1 a3 d: k设置资源先后关系pcs constraint VirtualIP then dummy_resource kind=Optional
( z7 m" A9 W; L9 h2 G5 _0 H7 ~& m进入维护模式:pcs resource unmanage resource1: b" Z! i) K( I8 b
解除维护模式
4 z3 O4 E3 M6 P1 V9 u5 p! y, Wpcs resource manage resource1

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2018-1-13 15:24:40 | 显示全部楼层
Failed Actions:
9 v4 k0 C  ]$ m$ q  f3 E! H* my_wsrep_cluster_promote_0 on controller1 'unknown error' (1): call=12, status=complete, exitreason='Failure, Atte
# ~  h4 @7 @! `9 m7 Y" v+ empted to promote Master instance of my_wsrep_cluster before bootstrap node has been detected.',
7 N, Y6 `* S2 J# s, Z3 h    last-rc-change='Sat Jan 13 15:20:31 2018', queued=0ms, exec=94ms/ z6 o/ [. A5 |4 t
* my_wsrep_cluster_promote_0 on controller2 'unknown error' (1): call=12, status=complete, exitreason='Failure, Atte1 v7 C4 h1 i: y& T  m
mpted to promote Master instance of my_wsrep_cluster before bootstrap node has been detected.',
- a1 e: q* ^; V' Q    last-rc-change='Sat Jan 13 15:20:33 2018', queued=1ms, exec=102ms
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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