[ClusterLabs] (no subject)

jaspal singla jaspal.singla at gmail.com
Fri Aug 19 17:31:27 UTC 2016


Hello Community,

I have an resource group (ctm_service) comprise of various resources. Now
the requirement is when one of its resource stops for soem time (10-20)
seconds, I want entire group will be stopped.

Is it possible to achieve this in pacemaker. Please help!

__________________________________________________________________________

 Resource Group: ctm_service
     FSCheck
 (lsb:../../..//cisco/PrimeOpticalServer/HA/bin/FsCheckAgent.py):
 (target-role:Stopped) Stopped
     NTW_IF
(lsb:../../..//cisco/PrimeOpticalServer/HA/bin/NtwIFAgent.py):
 (target-role:Stopped) Stopped
     CTM_RSYNC
 (lsb:../../..//cisco/PrimeOpticalServer/HA/bin/RsyncAgent.py):
 (target-role:Stopped) Stopped
     REPL_IF
 (lsb:../../..//cisco/PrimeOpticalServer/HA/bin/ODG_IFAgent.py):
(target-role:Stopped) Stopped
     ORACLE_REPLICATOR
 (lsb:../../..//cisco/PrimeOpticalServer/HA/bin/ODG_ReplicatorAgent.py):
(target-role:Stopped) Stopped
     CTM_SID
 (lsb:../../..//cisco/PrimeOpticalServer/HA/bin/OracleAgent.py):
(target-role:Stopped) Stopped
     CTM_SRV
 (lsb:../../..//cisco/PrimeOpticalServer/HA/bin/CtmAgent.py):
 (target-role:Stopped) Stopped
     CTM_APACHE
(lsb:../../..//cisco/PrimeOpticalServer/HA/bin/ApacheAgent.py):
(target-role:Stopped) Stopped
_____________________________________________________________________________


This is resource and resource group properties:

_______________________________________________________________________________

pcs -f cib.xml.geo resource create FSCheck
lsb:../../..//cisco/PrimeOpticalServer/HA/bin/FsCheckAgent.py op monitor
id=FSCheck-OP-monitor name=monitor interval=30s
pcs -f cib.xml.geo resource create NTW_IF
lsb:../../..//cisco/PrimeOpticalServer/HA/bin/NtwIFAgent.py op monitor
id=NtwIFAgent-OP-monitor name=monitor interval=30s
pcs -f cib.xml.geo resource create CTM_RSYNC
lsb:../../..//cisco/PrimeOpticalServer/HA/bin/RsyncAgent.py op monitor
id=CTM_RSYNC-OP-monitor name=monitor interval=30s on-fail=ignore stop
id=CTM_RSYNC-OP-stop interval=0 on-fail=stop
pcs -f cib.xml.geo resource create REPL_IF
lsb:../../..//cisco/PrimeOpticalServer/HA/bin/ODG_IFAgent.py op monitor
id=REPL_IF-OP-monitor name=monitor interval=30 on-fail=ignore stop
id=REPL_IF-OP-stop interval=0 on-fail=stop
pcs -f cib.xml.geo resource create ORACLE_REPLICATOR
lsb:../../..//cisco/PrimeOpticalServer/HA/bin/ODG_ReplicatorAgent.py op
monitor id=ORACLE_REPLICATOR-OP-monitor name=monitor interval=30s
on-fail=ignore stop id=ORACLE_REPLICATOR-OP-stop interval=0 on-fail=stop
pcs -f cib.xml.geo resource create CTM_SID
lsb:../../..//cisco/PrimeOpticalServer/HA/bin/OracleAgent.py op monitor
id=CTM_SID-OP-monitor name=monitor interval=30s
pcs -f cib.xml.geo resource create CTM_SRV
lsb:../../..//cisco/PrimeOpticalServer/HA/bin/CtmAgent.py op monitor
id=CTM_SRV-OP-monitor name=monitor interval=30s
pcs -f cib.xml.geo resource create CTM_APACHE
lsb:../../..//cisco/PrimeOpticalServer/HA/bin/ApacheAgent.py op monitor
id=CTM_APACHE-OP-monitor name=monitor interval=30s
pcs -f cib.xml.geo resource create CTM_HEARTBEAT
lsb:../../..//cisco/PrimeOpticalServer/HA/bin/HeartBeat.py op monitor
id=CTM_HEARTBEAT-OP-monitor name=monitor interval=30s
pcs -f cib.xml.geo resource create FLASHBACK
 lsb:../../..//cisco/PrimeOpticalServer/HA/bin/FlashBackMonitor.py op
monitor id=FLASHBACK-OP-monitor name=monitor interval=30s


pcs -f cib.xml.geo resource group add ctm_service FSCheck NTW_IF CTM_RSYNC
REPL_IF ORACLE_REPLICATOR CTM_SID CTM_SRV CTM_APACHE

pcs -f cib.xml.geo resource meta ctm_service migration-threshold=1
failure-timeout=10 target-role=stopped

________________________________________________________________________________



Any help will be highly appreciated!

Thanks,
Jaspal Singla
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/users/attachments/20160819/62ec2719/attachment-0003.html>


More information about the Users mailing list