易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 4579|回复: 3
收起左侧

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

[复制链接]
发表于 2017-12-28 23:21:27 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
Failed Actions:: |/ m" V4 C4 g' }; z
* controller_start_0 on controller1 'unknown error' (1): call=7, status=complete, exitreason='Unable to detect last& a* w  j. W+ D5 u& N
known write sequence number',# n2 x2 @' a! P4 o7 {, T8 ~
    last-rc-change='Thu Dec 28 23:17:22 2017', queued=0ms, exec=7076ms
  y  w& ]* R: v+ o4 V/ c% _" W; o8 A* b
发表于 2017-12-29 10:30:47 | 显示全部楼层
谁遇到过此类问题。
 楼主| 发表于 2017-12-29 10:40:48 | 显示全部楼层
安装ha组件:
' p" [/ W5 q" r# p4 E' x0 ?1 x' v/ i5 byum install pcs fence-agents-all6 O; |& L( E& v+ V9 N7 k

5 k8 X& S3 J4 o% W+ o创建集群# U! O( `7 \, b6 B; t% {
pcs cluster setup --start --name my_cluster z1.example.com z2.example.com6 k2 F) C' @1 W) T* a% \, f
启动集群服务
" H3 o$ h4 p6 }0 V5 V$ ypcs cluster enable --all
8 x  @2 v: {$ ^2 e9 s查看集群状态
* c" t  E% b& _, ?, y3 F( m2 z/ ~: l6 @pcs cluster status, k0 V6 h3 y' z  D, Z
5 R, c6 j/ i4 l, _# t
创建stonith设备
6 a! @/ w+ w. u( o  A. u4 K% z& p+ d) s5 S3 L! C6 ?0 }2 f8 R
pcs 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" 7 m( x5 v5 e  G1 M  d
pcs stonith show myapc
6 |' g, y4 q( A9 P1 z2 A( [
/ X4 d* z% q% _6 N创建资源
& d6 p1 ^, S0 cpcs resource create my_lvm LVM volgrpname=my_vg exclusive=true --group apachegroup
2 `) M' k8 o4 ~6 B) U1 ?$ {pcs resource show
& a) e, W4 w! n, c, _) O7 f; v$ E
$ C, ]6 F# C1 g: wpcs resource enable
9 j7 k) S8 ?, A) k# Apcs resource create my_fs Filesystem device="/dev/my_vg/my_lv" directory="/var/www" fstype="ext4" --group apachegroup1 ^+ w) U; t5 t/ `4 i
pcs resource create VirtualIP IPaddr2 ip=198.51.100.3 cidr_netmask=24 --group apachegroup9 o7 D4 M5 i1 y7 ~
pcs resource create Website apache configfile="/etc/httpd/conf/httpd.conf" statusurl="http://127.0.0.1/server-status" --group apachegroup: z7 W" \+ j2 M8 E5 \
pcs resource create VirtualIP ocf:heartbeat:IPaddr2 ip=192.16 8.0.120 cidr_netmask=24 opmonitorinterval= 30s6 Q5 s# D7 d+ H1 e! h
7 p5 R7 D3 ]/ p6 C! m8 d

; Q, Z3 e4 u( K; Q! {; X% U' a查看集群状态:. @$ b& p( N! f5 }0 k, H
pcs status
; G* a' g+ `; \倒换节点:pcs cluster standby z1.example.compcs cluster unstandby z1.example.com0 K0 e$ A0 c  h- ]% Z. ~# h5 E
查看帮助pcs resource -h* o/ F( g9 H8 k9 B! R+ _2 K
导出和备份配置文件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" ?7 N/ [; {4 u) s0 Tfence对应节点:pcs stonith fence nodepcs resource delete VirtualIPpcs resource describe LVMpcs resource show --fullpcs resource enable resource_id/ C# @/ @; Y; J3 l- r% T
pcs resource disable resource_id
; Y$ d: O; J1 h- F3 ]! S: G# |$ `  t* n9 J4 y: e) s
设置资源先后关系pcs constraint VirtualIP then dummy_resource kind=Optional
2 \! ~9 ~0 m1 s2 L3 h7 f, t进入维护模式:pcs resource unmanage resource1
0 ?6 x% w8 e! w2 x7 d2 R9 f$ s( d解除维护模式
3 T6 O; Y- d' ~; l2 zpcs resource manage resource1
 楼主| 发表于 2018-1-13 15:24:40 | 显示全部楼层
Failed Actions:
& J+ P, w0 w; r- P4 T* my_wsrep_cluster_promote_0 on controller1 'unknown error' (1): call=12, status=complete, exitreason='Failure, Atte
) ^% ?( ?! V1 i* W) G) f+ A, |mpted to promote Master instance of my_wsrep_cluster before bootstrap node has been detected.',% @0 X3 e4 F# v. d, l+ x8 j1 r
    last-rc-change='Sat Jan 13 15:20:31 2018', queued=0ms, exec=94ms; v0 S& b1 x' f  I7 R6 g
* my_wsrep_cluster_promote_0 on controller2 'unknown error' (1): call=12, status=complete, exitreason='Failure, Atte
+ }+ h* h6 j- s; ~3 gmpted to promote Master instance of my_wsrep_cluster before bootstrap node has been detected.',$ v1 K9 H3 P7 d- a  r8 Q( E
    last-rc-change='Sat Jan 13 15:20:33 2018', queued=1ms, exec=102ms
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 21:28 , Processed in 0.054286 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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