Re: [ClusterLabs] how to configure fence in a two node cluster?who can help me?
Hi, On Mon, Nov 16, 2015 at 10:42:50AM -0600, Ken Gaillot wrote: > On 11/16/2015 06:08 AM, Shilu wrote: > > The following configuration is mine.it work well when I didn't add the > > fence configureation. > > But when I add the configureation primitive st-ipmilan1 stonith:ipmilan, it > > report the following error. > > I want to know how to configure it and how to confirm that it will work > > well. > > > > Failed actions: > > st-ipmilan1_monitor_0 (node=ubuntu212, call=-1, rc=1, status=Timed Out, > > last > > -rc-change=Mon Nov 16 06:47:19 2015 > > , queued=0ms, exec=0ms > > ): unknown error > > > > Check the logs for any fence_ipmilan messages around this time. You can > also try to run the command manually (and maybe add "-v" for verbose > messages): > > fence_ipmilan -A md5 -a 192.168.33.127 -p 12345678 -l admin -o monitor > -L admin The configuration has the linux-ha stonith agent ipmilan, not fence_ipmilan. > I don't think there's a "hostname" option for fence_ipmilan. I think you > mean "pcmk_host_list=ubuntu211", because without that, Pacemaker will > try to use st-ipmilan1 when fencing *either* node. (Of course, once this > is working, you'll want to set up a st-ipmilan2 similarly.) > > I think "priv" should be "privlvl". No, the parameters are fine. > If these are on-board IPMI controllers, which share their power supply > with the host computer, then fencing will fail if the power fails, and > the cluster will refuse to run any services. If that's undesirable, you > may want to consider a second fencing level using intelligent power > switches or some other alternative fencing method. Right. Thanks, Dejan > > node $id="3232244179" ubuntu211 > > node $id="3232244180" ubuntu212 > > primitive VIP ocf:heartbeat:IPaddr \ > > params ip="192.168.33.129" \ > > op monitor timeout="10s" interval="1s" > > primitive lunit ocf:heartbeat:iSCSILogicalUnit \ > > params implementation="tgt" target_iqn="hoo" lun="1" > > path="rbd/hoo" tgt > > _bstype="rbd" \ > > op monitor timeout="10s" interval="1s" > > primitive st-ipmilan1 stonith:ipmilan \ > > params hostname="ubuntu211" ipaddr="192.168.33.127" port="623" > > auth="md > > 5" priv="admin" login="admin" password="12345678" > > primitive tgt ocf:heartbeat:iSCSITarget \ > > params implementation="tgt" iqn="hoo" tid="5" \ > > op monitor interval="1s" timeout="10s" > > group cluster VIP tgt lunit > > property $id="cib-bootstrap-options" \ > > dc-version="1.1.10-42f2063" \ > > cluster-infrastructure="corosync" \ > > stonith-enabled="true" \ > > no-quorum-policy="ignore" > > - > > > > ___ > 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] how to configure fence in a two node cluster?who can help me?
Hi, On Mon, Nov 16, 2015 at 12:08:53PM +, Shilu wrote: > The following configuration is mine.it work well when I didn't add the fence > configureation. > But when I add the configureation primitive st-ipmilan1 stonith:ipmilan, it > report the following error. > I want to know how to configure it and how to confirm that it will work well. Please use stonith:external/ipmi as stonith:ipmilan is deprecated. Otherwise, if you can use the ipmitool(8) with the same parameters, then the stonith resource should work too. Thanks, Dejan > Failed actions: > st-ipmilan1_monitor_0 (node=ubuntu212, call=-1, rc=1, status=Timed Out, > last > -rc-change=Mon Nov 16 06:47:19 2015 > , queued=0ms, exec=0ms > ): unknown error > > > node $id="3232244179" ubuntu211 > node $id="3232244180" ubuntu212 > primitive VIP ocf:heartbeat:IPaddr \ > params ip="192.168.33.129" \ > op monitor timeout="10s" interval="1s" > primitive lunit ocf:heartbeat:iSCSILogicalUnit \ > params implementation="tgt" target_iqn="hoo" lun="1" path="rbd/hoo" > tgt > _bstype="rbd" \ > op monitor timeout="10s" interval="1s" > primitive st-ipmilan1 stonith:ipmilan \ > params hostname="ubuntu211" ipaddr="192.168.33.127" port="623" > auth="md > 5" priv="admin" login="admin" password="12345678" > primitive tgt ocf:heartbeat:iSCSITarget \ > params implementation="tgt" iqn="hoo" tid="5" \ > op monitor interval="1s" timeout="10s" > group cluster VIP tgt lunit > property $id="cib-bootstrap-options" \ > dc-version="1.1.10-42f2063" \ > cluster-infrastructure="corosync" \ > stonith-enabled="true" \ > no-quorum-policy="ignore" > - > > > > ??? > This e-mail and its attachments contain confidential information from H3C, > which is > intended only for the person or entity whose address is listed above. Any use > of the > information contained herein in any way (including, but not limited to, total > or partial > disclosure, reproduction, or dissemination) by persons other than the intended > recipient(s) is prohibited. If you receive this e-mail in error, please > notify the sender > by phone or email immediately and delete it! > ___ > 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
[ClusterLabs] how to configure fence in a two node cluster?who can help me?
The following configuration is mine.it work well when I didn't add the fence configureation. But when I add the configureation primitive st-ipmilan1 stonith:ipmilan, it report the following error. I want to know how to configure it and how to confirm that it will work well. Failed actions: st-ipmilan1_monitor_0 (node=ubuntu212, call=-1, rc=1, status=Timed Out, last -rc-change=Mon Nov 16 06:47:19 2015 , queued=0ms, exec=0ms ): unknown error node $id="3232244179" ubuntu211 node $id="3232244180" ubuntu212 primitive VIP ocf:heartbeat:IPaddr \ params ip="192.168.33.129" \ op monitor timeout="10s" interval="1s" primitive lunit ocf:heartbeat:iSCSILogicalUnit \ params implementation="tgt" target_iqn="hoo" lun="1" path="rbd/hoo" tgt _bstype="rbd" \ op monitor timeout="10s" interval="1s" primitive st-ipmilan1 stonith:ipmilan \ params hostname="ubuntu211" ipaddr="192.168.33.127" port="623" auth="md 5" priv="admin" login="admin" password="12345678" primitive tgt ocf:heartbeat:iSCSITarget \ params implementation="tgt" iqn="hoo" tid="5" \ op monitor interval="1s" timeout="10s" group cluster VIP tgt lunit property $id="cib-bootstrap-options" \ dc-version="1.1.10-42f2063" \ cluster-infrastructure="corosync" \ stonith-enabled="true" \ no-quorum-policy="ignore" - ??? This e-mail and its attachments contain confidential information from H3C, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it! ___ 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