<div dir="ltr"><br><div class="gmail_extra">Hi Gianluca,<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
I'm not sure of the CIB XML syntax, but here is how it's done using pcs:<br></blockquote></div><br></div><div class="gmail_extra">OK, thanks Digimer.<br><br></div><div class="gmail_extra">It seems it worked this way using your suggestions<br>
<br>[root@srvmgmt01 ~]# pcs stonith show<br> Fencing (stonith:fence_intelmodular): Started <br><br># pcs cluster cib stonith_separate_cfg<br><br>[root@srvmgmt01 ~]# pcs -f stonith_separate_cfg stonith delete Fencing<br>
Attempting to stop: Fencing...Error: Unable to stop: Fencing before deleting (re-run with --force to force deletion)<br><br></div><div class="gmail_extra">(used --force later see below perhaps I had to use stop before, but I thought that working on file it would have done nothing...)<br>
<br></div><div class="gmail_extra"># pcs -f stonith_separate_cfg stonith create fence_srvmgmt01 fence_intelmodular \<br>pcmk_host_list="srvmgmt01.localdomain.local" pcmk_host_map="srvmgmt01.localdomain.local:5" \<br>
ipaddr="192.168.150.150" login="snmpv3user" passwd_script="/usr/local/bin/fence_pwd.sh" \<br>snmp_version="3" snmp_auth_prot="SHA" snmp_sec_level="authNoPriv" \<br>
power_wait="15" action="reboot" delay=15 \<br>op monitor interval=10m timeout="300s"<br><br># pcs -f stonith_separate_cfg stonith create fence_srvmgmt02 fence_intelmodular \<br>pcmk_host_list="srvmgmt02.localdomain.local" pcmk_host_map="srvmgmt02.localdomain.local:6" \<br>
ipaddr="192.168.150.150" login="snmpv3user" passwd_script="/usr/local/bin/fence_pwd.sh" \<br>snmp_version="3" snmp_auth_prot="SHA" snmp_sec_level="authNoPriv" \<br>
power_wait="15" action="reboot" \<br>op monitor interval=10m timeout="300s"<br><br>[root@srvmgmt01 ~]# pcs -f stonith_separate_cfg stonith delete Fencing --force <br>Deleting Resource - Fencing<br>
<br># pcs cluster cib-push stonith_separate_cfg<br>CIB updated<br><br></div><div class="gmail_extra">and now I have<br><br></div><div class="gmail_extra">[root@srvmgmt01 ~]# crm_mon -1<br>Last updated: Sat Jun 21 18:33:15 2014<br>
Last change: Sat Jun 21 18:31:35 2014 via cibadmin on srvmgmt01.localdomain.local<br>Stack: cman<br>Current DC: srvmgmt01.localdomain.local - partition with quorum<br>Version: 1.1.10-14.el6_5.3-368c726<br>2 Nodes configured<br>
5 Resources configured<br><br><br>Online: [ srvmgmt01.localdomain.local srvmgmt02.localdomain.local ]<br><br> Master/Slave Set: ms_drbd_kvm-ovirtmgr [p_drbd_kvm-ovirtmgr]<br> Masters: [ srvmgmt01.localdomain.local ]<br>
Slaves: [ srvmgmt02.localdomain.local ]<br> p_kvm-ovirtmgr (ocf::heartbeat:VirtualDomain): Started srvmgmt01.localdomain.local <br> fence_srvmgmt01 (stonith:fence_intelmodular): Started srvmgmt02.localdomain.local <br>
fence_srvmgmt02 (stonith:fence_intelmodular): Started srvmgmt01.localdomain.local <br><br></div><div class="gmail_extra">I'm going to test several scenarios to see behaviour is as expected.<br><br></div><div class="gmail_extra">
Thanks again.<br><br>Gianluca<br></div></div>