1748286 Members
3247 Online
108761 Solutions
New Discussion юеВ

Re: fence_ilo repace

 
MARIO NICOLETTI
Occasional Contributor

fence_ilo repace

I have a problem with fence_ilo, i want do a workaround, replacing fence_ilo wiyh my bash script.
Can anyone advise me how to replace fence_ilo in cluster.conf with my script ?
Thanks
2 REPLIES 2
Matti_Kurkela
Honored Contributor

Re: fence_ilo repace

I assume you've made your script to understand (or ignore, if necessary) all the same options and stdin parameters fence_ilo does, right?

The names of the fencing agents don't seem to be hardcoded into fenced, nor is there a standard list of fencing agents in any configuration file included in the cman RPM. So, the fencing daemon apparently simply calls the fencing agent using the name listed in the cluster configuration file as-is.

Place your script in /sbin/ directory on each node and mark it executable.

Then make a new copy of the cluster configuration file, increase the version number by one, and change the approriate
Test very carefully before using in a production environment.

MK
MK
Reiner  Rottmann
Frequent Advisor

Re: fence_ilo repace

The cluster.conf is an xml file where you may store arbitrary data. As long as your fence_ilo agent knows how to parse the xml tags, you may specify any information you want.

Simply have a look at the original fencing agent to see what options the original fence_ilo agent should understand. They are simply read as commandline parameters.

See device_opt in:

http://git.fedorahosted.org/git/?p=fence-agents.git;a=blob_plain;f=fence/agents/ilo/fence_ilo.py;hb=HEAD

We have used the following enhanced ilo fencing agent in my old company with great success:
http://download.atix.de/yum/comoonics/redhat-el5/preview/noarch/RPMS/comoonics-bootimage-fenceclient-ilo-0.1-20.noarch.rpm