pcs怎么添加资源oracle,Pacemaker:添加自定义资源(Pacemaker: adding custom resource)

I am trying to create an HA cluster with Pacemaker on CentOS7. One of the required resources is a custom service. I have an LSB-compliant init script that I have put into /etc/init.d, and I have it listed when running:

pcs resource agents lsb:heartbeat

When I try to add the resource with

pcs resource create MyServer lsb:heartbeat:MyServer target_role=started resource_failure_stickiness=-INFINITY op monitor interval=30s op start timeout=180s op stop timeout=180s op status timeout=15 --group AllResources

The error I get:

Error: Unable to create resource 'lsb:heartbeat:MyServer', it is not installed on this system (use --force to override)

If I run it with --force, I get the following:

Call cib_replace failed (-203): Update does not conform to the configured schema

The group AllResources has other two resources: Ping and IPAddr2, that were added in a similar way with no errors.

What am I missing? Anyone faced something like this?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值