[ClusterLabs] how to configure fence in a two node cluster?who can help me?

Ken Gaillot kgaillot at redhat.com
Mon Nov 16 11:42:50 EST 2015


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

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".

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.

> 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"
> -------------------------------------------------------------------------------------------------------------------------------------






More information about the Users mailing list