我正在尝试使用CentOS7上的Pacemaker创建一个HA集群。所需的资源之一是自定义服务。我在/etc/init.d中放入了一个符合LSB的init脚本,并在运行时列出了它:
pcs resource agents lsb:heartbeat当我尝试使用以下命令添加资源时
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我得到的错误是:
Error: Unable to create resource 'lsb:heartbeat:MyServer', it is not installed on this system (use --force to override)如果我用--force运行它,我会得到以下结果:
Call cib_replace failed (-203): Update does not conform to the configured schema组AllResources还有另外两个资源: Ping和IPAddr2,它们是以类似的方式添加的,没有任何错误。
我遗漏了什么?有没有人遇到过这样的情况?
发布于 2017-08-09 18:09:37
事实证明,与心跳不同的是,在Pacemaker中,我们处理自定义LSB脚本的形式是lsb:MyServer。工作命令为:
pcs resource create MyServer lsb: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 AllResourceshttps://stackoverflow.com/questions/45166494
复制相似问题