[Pacemaker] How to put delay in fence_intelmodular for one node only

Gianluca Cecchi gianluca.cecchi at gmail.com
Sat Jun 21 18:38:10 CEST 2014


Hi Gianluca,

>
>   I'm not sure of the CIB XML syntax, but here is how it's done using pcs:
>

OK, thanks Digimer.

It seems it worked this way using your suggestions

[root at srvmgmt01 ~]# pcs stonith show
 Fencing    (stonith:fence_intelmodular):    Started

# pcs cluster cib stonith_separate_cfg

[root at srvmgmt01 ~]# pcs -f stonith_separate_cfg stonith delete Fencing
Attempting to stop: Fencing...Error: Unable to stop: Fencing before
deleting (re-run with --force to force deletion)

(used --force later see below perhaps I had to use stop before, but I
thought that working on file it would have done nothing...)

# pcs -f stonith_separate_cfg stonith create fence_srvmgmt01
fence_intelmodular \
pcmk_host_list="srvmgmt01.localdomain.local"
pcmk_host_map="srvmgmt01.localdomain.local:5" \
ipaddr="192.168.150.150" login="snmpv3user"
passwd_script="/usr/local/bin/fence_pwd.sh" \
snmp_version="3" snmp_auth_prot="SHA" snmp_sec_level="authNoPriv" \
power_wait="15" action="reboot" delay=15 \
op monitor interval=10m timeout="300s"

# pcs -f stonith_separate_cfg stonith create fence_srvmgmt02
fence_intelmodular \
pcmk_host_list="srvmgmt02.localdomain.local"
pcmk_host_map="srvmgmt02.localdomain.local:6" \
ipaddr="192.168.150.150" login="snmpv3user"
passwd_script="/usr/local/bin/fence_pwd.sh" \
snmp_version="3" snmp_auth_prot="SHA" snmp_sec_level="authNoPriv" \
power_wait="15" action="reboot" \
op monitor interval=10m timeout="300s"

[root at srvmgmt01 ~]# pcs -f stonith_separate_cfg stonith delete Fencing
--force
Deleting Resource - Fencing

# pcs cluster cib-push stonith_separate_cfg
CIB updated

and now I have

[root at srvmgmt01 ~]# crm_mon -1
Last updated: Sat Jun 21 18:33:15 2014
Last change: Sat Jun 21 18:31:35 2014 via cibadmin on
srvmgmt01.localdomain.local
Stack: cman
Current DC: srvmgmt01.localdomain.local - partition with quorum
Version: 1.1.10-14.el6_5.3-368c726
2 Nodes configured
5 Resources configured


Online: [ srvmgmt01.localdomain.local srvmgmt02.localdomain.local ]

 Master/Slave Set: ms_drbd_kvm-ovirtmgr [p_drbd_kvm-ovirtmgr]
     Masters: [ srvmgmt01.localdomain.local ]
     Slaves: [ srvmgmt02.localdomain.local ]
 p_kvm-ovirtmgr    (ocf::heartbeat:VirtualDomain):    Started
srvmgmt01.localdomain.local
 fence_srvmgmt01    (stonith:fence_intelmodular):    Started
srvmgmt02.localdomain.local
 fence_srvmgmt02    (stonith:fence_intelmodular):    Started
srvmgmt01.localdomain.local

I'm going to test several scenarios to see behaviour is as expected.

Thanks again.

Gianluca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://oss.clusterlabs.org/pipermail/pacemaker/attachments/20140621/776efb54/attachment.html>


More information about the Pacemaker mailing list