Take a look at Jan's 'clufter' program. He built it just for this kind of use.
https://github.com/jnpkrn/clufter digimer On 22/01/16 07:02 AM, jaspal singla wrote: > Hello Everyone, > > > I desperately need some help in order to migrate my cluster > configuration from CMAN (RHEL-6.5) to PACEMAKER (RHEL-7.1). > > > I have tried to explore a lot but couldn't find similarities configuring > same resources (created in CMAN's cluster.conf file) to Pacemaker. > > > > I'd like to share cluster.conf of RHEL-6.5 and want to achieve the same > thing through Pacemaker. Any help would be greatly appreciable!! > > > > *Cluster.conf file* > > ###################################################################### > > <?xml version="1.1"?> > <cluster config_version="1" name="HA1-105_CLUSTER"> > <fence_daemon clean_start="0" post_fail_delay="0" > post_join_delay="3"/> > <clusternodes> > <clusternode name="ha1-105.test.com > <http://ha1-105.test.com>" nodeid="1" votes="1"> > <fence/> > </clusternode> > </clusternodes> > <cman/> > <fencedevices/> > <rm log_facility="local4" log_level="7"> > <failoverdomains> > <failoverdomain name="Ha1-105_Domain" > nofailback="0" ordered="0" restricted="0"/> > </failoverdomains> > <resources> > <script > file="/data/Product/HA/bin/ODG_IFAgent.py" name="REPL_IF"/> > <script > file="/data/Product/HA/bin/ODG_ReplicatorAgent.py" > name="ORACLE_REPLICATOR"/> > <script > file="/data/Product/HA/bin/OracleAgent.py" name="CTM_SID"/> > <script > file="/data/Product/HA/bin/NtwIFAgent.py" name="NTW_IF"/> > <script > file="/data/Product/HA/bin/FsCheckAgent.py" name="FSCheck"/> > <script > file="/data/Product/HA/bin/ApacheAgent.py" name="CTM_APACHE"/> > <script file="/data/Product/HA/bin/CtmAgent.py" > name="CTM_SRV"/> > <script > file="/data/Product/HA/bin/RsyncAgent.py" name="CTM_RSYNC"/> > <script file="/data/Product/HA/bin/HeartBeat.py" > name="CTM_HEARTBEAT"/> > <script > file="/data/Product/HA/bin/FlashBackMonitor.py" name="FLASHBACK"/> > </resources> > <service autostart="0" domain="Ha1-105_Domain" > exclusive="0" name="ctm_service" recovery="disable"> > <script ref="FSCheck"/> > <script ref="NTW_IF"/> > <script __independent_subtree="2" > __max_restarts="20" __restart_expire_time="900" ref="CTM_RSYNC"/> > <script __independent_subtree="2" > __max_restarts="10" __restart_expire_time="900" ref="REPL_IF"/> > <script __independent_subtree="2" > ref="ORACLE_REPLICATOR"/> > <script ref="CTM_SID"> > <script ref="CTM_SRV"> > <script ref="CTM_APACHE"/> > </script> > </script> > </service> > <service autostart="1" exclusive="0" max_restarts="3" > name="ctm_heartbeat" recovery="restart" restart_expire_time="900"> > <script ref="CTM_HEARTBEAT"/> > </service> > <service autostart="1" exclusive="0" max_restarts="3" > name="ctm_monitoring" recovery="restart" restart_expire_time="900"> > <script ref="FLASHBACK"/> > </service> > </rm> > </cluster> > > ############################################### > > > *_ Quries/concerns:_* > > -> How can I specifically mentioned above 10 resources through Pacemaker? > -> the services being used in <service> section are not init.d services, > these services uses script reference of above defined resources. So, how > could I do the same thing in Pacemaker? > Couple of concerns I have: > -> How do I create failover domains in pacemaker and link resources to it? > -> By default there are several pre-defined resource API's given in > Pacemaker and we can use them if our requirements match with pre-defined > API's like IPADDR2, Apache etc. But what if I have some python scripts > and want to use those scripts as resources? Is their any way to do that? > > > Please Please help me to get this sorted. > > > Thanks, > Jaspal Singla > > > _______________________________________________ > Users mailing list: [email protected] > http://clusterlabs.org/mailman/listinfo/users > > Project Home: http://www.clusterlabs.org > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf > Bugs: http://bugs.clusterlabs.org > -- Digimer Papers and Projects: https://alteeve.ca/w/ What if the cure for cancer is trapped in the mind of a person without access to education? _______________________________________________ Users mailing list: [email protected] http://clusterlabs.org/mailman/listinfo/users Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org
