Hi, On Wed, Feb 10, 2016 at 03:20:49PM +0100, Stanislav Kopp wrote: > Hi all, > > I have general, clarification question about how fence agents work > with pacemaker (crmsh in particular). As far I understood STDIN
Not sure what crmsh has to do with fencing agents. The interaction happens between other pacemaker components (normally stonithd) and the agent. > arguments can be used within pacemaker resources and command line > arguments in terminal (for testing and scripting?). As for testing, crmsh has support for resource testing with 'configure rsctest', but apparently only Linux HA stonith agents (legacy*) are currently supported. Otherwise, there's stonith_admin(8) and stonith(8) for stonith agents. The former uses stonith-ng (stonithd) which makes it closer to the real cluster operation. There is also a (not so well known) stonith interface to fencing agents, which predates RH fencing agents support in pacemaker. One just needs to create a link in /usr/lib64/stonith/plugins/rhcs: lrwxrwxrwx 1 root root 32 Nov 18 07:56 fence_cisco_ucs -> ../../../../sbin/fence_cisco_ucs For instance, this agent is referenced as stonith:rhcs/cisco_ucs. Finally, it would be great to somehow put together the two fencing/stonith agents sets. Thanks, Dejan *) Why the Linux HA stonith agents got the attribute/name "legacy" in Pacemaker at some point is beyond me. > I have "fence_pve" [1] agent which works fine with command line > arguments, but not with pacemaker, it says some parameters like > "passwd" or "login" does not exist, although STDIN parameters are > supported [2] > > I'm using stock 1.1.7-1 on Debian Wheezy > > Best, > Stan > > > [1] > https://github.com/ClusterLabs/fence-agents/blob/master/fence/agents/pve/fence_pve.py > [2] https://www.mankier.com/8/fence_pve#Stdin_Parameters > > _______________________________________________ > 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 _______________________________________________ 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
