pcs resource manage --monitor 为 Pacemaker 集群中组中的所有资源启用监控操作
Issue
- 我在一个未被管理的组中有两个资源,它们的监控操作都被禁用了。我在其中一个资源上运行
pcs resource manage --monitor
。但是,这为这两个资源都启用了监控操作。
# pcs resource show dummygrp | egrep '(Group|Resource):'
Group: dummygrp
Resource: dummy1 (class=ocf provider=heartbeat type=Dummy)
Resource: dummy2 (class=ocf provider=heartbeat type=Dummy)
# pcs resource unmanage --monitor dummy1 && pcs resource unmanage --monitor dummy2
# pcs resource config dummy1 dummy2 | egrep 'Resource:|Meta|monitor'
Resource: dummy1 (class=ocf provider=heartbeat type=Dummy)
Meta Attrs: is-managed=false
monitor enabled=false interval=10s timeout=20s (dummy1-monitor-interval-10s)
Resource: dummy2 (class=ocf provider=heartbeat type=Dummy)
Meta Attrs: is-managed=false
monitor enabled=false interval=10s timeout=20s (dummy2-monitor-interval-10s)
# pcs resource manage --monitor dummy1
# pcs resource config dummy1 dummy2 | egrep 'Resource:|Meta|monitor'
Resource: dummy1 (class=ocf provider=heartbeat type=Dummy)
monitor interval=10s timeout=20s (dummy1-monitor-interval-10s)
Resource: dummy2 (class=ocf provider=heartbeat type=Dummy)
Meta Attrs: is-managed=false
monitor interval=10s timeout=20s (dummy2-monitor-interval-10s)
Environment
- Red Hat Enterprise Linux 7、8、9 (带有 High Availability 附加组件)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.