Re: [ClusterLabs] implementation of fence and stonith agents for pacemaker
Digimer, Thank you. I will try this out. One more question. What about directories for those agents, what rules are here? Thank you, Kostya On Tue, Aug 11, 2015 at 6:21 PM, Digimer li...@alteeve.ca wrote: On 11/08/15 11:17 AM, Kostiantyn Ponomarenko wrote: Hi guys, Is there any documentation which describes implementation of fence and STONITH agents like those ones for Resource Agents?: http://www.linux-ha.org/wiki/OCF_Resource_Agents http://www.linux-ha.org/doc/dev-guides/ra-dev-guide.html I am particular interested in the arguments which are passed to a stonith resource by stonithd. Is there any guidelines what arguments it has to handle and where it must be put (which directories are allowed)? So far I found this http://linux.die.net/man/7/stonithd . But for example, it is not clear for me how pcmk_host_check=dynamic-list which is (query the device) works. Do I need to handle some action in my stonith agent for that parameter? Thank you, Kostya This is the API; https://fedorahosted.org/cluster/wiki/FenceAgentAPI It needs to be updated to reflect the need for agents to output the XML metadata. For now, you should be able to see the format needed by looking at the metadata output of existing FAs. -- 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: Users@clusterlabs.org 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 ___ Users mailing list: Users@clusterlabs.org 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
Re: [ClusterLabs] implementation of fence and stonith agents for pacemaker
On 13/08/15 07:54 AM, Kostiantyn Ponomarenko wrote: Digimer, Thank you. I will try this out. One more question. What about directories for those agents, what rules are here? Thank you, Kostya I'm not entirely sure I understand the question, sorry. What do you mean by directories for those agents? If you're asking about implementation details like language to use, etc, there are no rules. Python and bash are the most common languages, I think, but I write my fence agents in perl just fine. I think a couple are even in C. I suspect that python is the language upstream maintainer are happier with, but as beekhof said in the RA script; the person doing the work gets to make the decisions. :) If I didn't answer your question, please clarify. -- 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: Users@clusterlabs.org 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
Re: [ClusterLabs] implementation of fence and stonith agents for pacemaker
Sorry, I should be more clear. I mean the place where I must put my agent so it is visible to the cluster. For example I know that you need to put your agent into /usr/sbin/ and start its name with fence_ in order to get it visible to the cluster. So I want to know the rules, are there other places which I also can put my agent in and get it visible to the cluster? Thank you, Kostya On Thu, Aug 13, 2015 at 5:34 PM, Digimer li...@alteeve.ca wrote: On 13/08/15 07:54 AM, Kostiantyn Ponomarenko wrote: Digimer, Thank you. I will try this out. One more question. What about directories for those agents, what rules are here? Thank you, Kostya I'm not entirely sure I understand the question, sorry. What do you mean by directories for those agents? If you're asking about implementation details like language to use, etc, there are no rules. Python and bash are the most common languages, I think, but I write my fence agents in perl just fine. I think a couple are even in C. I suspect that python is the language upstream maintainer are happier with, but as beekhof said in the RA script; the person doing the work gets to make the decisions. :) If I didn't answer your question, please clarify. -- 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: Users@clusterlabs.org 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 ___ Users mailing list: Users@clusterlabs.org 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
Re: [ClusterLabs] implementation of fence and stonith agents for pacemaker
Thank you for the help :-) On Aug 13, 2015 20:19, Digimer li...@alteeve.ca wrote: Ah, yes. If it's a RHEL/CentOS machine, put it in /usr/sbin/. If it's another OS, locate fence_ipmilan and put your agent in the same directory. digimer On 13/08/15 01:03 PM, Kostiantyn Ponomarenko wrote: Sorry, I should be more clear. I mean the place where I must put my agent so it is visible to the cluster. For example I know that you need to put your agent into /usr/sbin/ and start its name with fence_ in order to get it visible to the cluster. So I want to know the rules, are there other places which I also can put my agent in and get it visible to the cluster? Thank you, Kostya On Thu, Aug 13, 2015 at 5:34 PM, Digimer li...@alteeve.ca mailto:li...@alteeve.ca wrote: On 13/08/15 07:54 AM, Kostiantyn Ponomarenko wrote: Digimer, Thank you. I will try this out. One more question. What about directories for those agents, what rules are here? Thank you, Kostya I'm not entirely sure I understand the question, sorry. What do you mean by directories for those agents? If you're asking about implementation details like language to use, etc, there are no rules. Python and bash are the most common languages, I think, but I write my fence agents in perl just fine. I think a couple are even in C. I suspect that python is the language upstream maintainer are happier with, but as beekhof said in the RA script; the person doing the work gets to make the decisions. :) If I didn't answer your question, please clarify. -- 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: Users@clusterlabs.org mailto: Users@clusterlabs.org 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 ___ Users mailing list: Users@clusterlabs.org 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: Users@clusterlabs.org 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 ___ Users mailing list: Users@clusterlabs.org 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
Re: [ClusterLabs] implementation of fence and stonith agents for pacemaker
On 11/08/15 11:17 AM, Kostiantyn Ponomarenko wrote: Hi guys, Is there any documentation which describes implementation of fence and STONITH agents like those ones for Resource Agents?: http://www.linux-ha.org/wiki/OCF_Resource_Agents http://www.linux-ha.org/doc/dev-guides/ra-dev-guide.html I am particular interested in the arguments which are passed to a stonith resource by stonithd. Is there any guidelines what arguments it has to handle and where it must be put (which directories are allowed)? So far I found this http://linux.die.net/man/7/stonithd . But for example, it is not clear for me how pcmk_host_check=dynamic-list which is (query the device) works. Do I need to handle some action in my stonith agent for that parameter? Thank you, Kostya This is the API; https://fedorahosted.org/cluster/wiki/FenceAgentAPI It needs to be updated to reflect the need for agents to output the XML metadata. For now, you should be able to see the format needed by looking at the metadata output of existing FAs. -- 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: Users@clusterlabs.org 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