On 18/04/2013, at 2:13 AM, Ahmed Munir <[email protected]> wrote:
> Date: Wed, 17 Apr 2013 15:43:22 +1000 > >> From: Andrew Beekhof <[email protected]> >> Subject: Re: [Linux-HA] Looking parameters for stop the node if >> service fails >> To: General Linux-HA mailing list <[email protected]> >> Message-ID: <[email protected]> >> Content-Type: text/plain; charset=us-ascii >> >> >> On 17/04/2013, at 5:28 AM, Ahmed Munir <[email protected]> wrote: >> >>> Hi, >>> >>> I configured Linux HA for Asterisk service where I'm using asterisk RA >> from >>> link; >>> >> https://github.com/ClusterLabs/resource-agents/blob/master/heartbeat/asteriskand >>> it is working fine. >>> >>> As per current configuration when I stop heartbeat service from node1 >>> Asterisk and IPAddr resources automatically start on node2 without any >>> issue and when node1 comes online, resources stop on node2 and start on >>> node1. >>> >>> Actually now, I'm looking for configuration/parameters that will stop the >>> running node >> >> Shut it down, stop the cluster software on it, or just stop any other >> resources there? >> > > If any resource fails in node1, stop the all resources in node 1 and start > all the resources on node2 Check out the documentation for on-fail=standby > > >>> if any resources fail and start them on other node. >>> >>> Listing down my configuration below; >>> >>> root@asterisk1 ~> crm_mon -1 >>> ============ >>> Last updated: Tue Apr 16 15:25:58 2013 >>> Stack: Heartbeat >>> Current DC: asterisk2 (b966dfa2-5973-4dfc-96ba-b2d38319c174) - partition >>> with quorum >>> Version: 1.0.12-unknown >>> 2 Nodes configured, unknown expected votes >>> 1 Resources configured. >>> ============ >>> >>> Online: [ asterisk1 asterisk2 ] >>> >>> Resource Group: group_1 >>> p_asterisk (ocf::heartbeat:asterisk): >> Started >>> asterisk1 >>> IPaddr_10_3_152_103 (ocf::heartbeat:IPaddr): Started >>> asterisk1 >>> >>> >>> root@asterisk1 ~> crm configure show >>> node $id="887bae58-1eb6-47d1-b539-d12a2ed3d836" asterisk1 >>> node $id="b966dfa2-5973-4dfc-96ba-b2d38319c174" asterisk2 >>> primitive IPaddr_10_3_152_103 ocf:heartbeat:IPaddr \ >>> op monitor interval="5s" timeout="20s" \ >>> params ip="10.3.152.103" >>> primitive p_asterisk ocf:heartbeat:asterisk \ >>> op monitor interval="20s" timeout="60s" \ >>> op start interval="0" timeout="60s" \ >>> op stop interval="0" timeout="60s" \ >>> params realtime="true" >>> group group_1 p_asterisk IPaddr_10_3_152_103 \ >>> meta target-role="Started" is-managed="true" >>> location rsc_location_group_1 group_1 \ >>> rule $id="preferred_location_group_1" 100: #uname eq asterisk1 >>> colocation asterisk-with-ip inf: p_asterisk IPaddr_10_3_152_103 >>> property $id="cib-bootstrap-options" \ >>> symmetric-cluster="true" \ >>> no-quorum-policy="stop" \ >>> default-resource-stickiness="0" \ >>> stonith-enabled="false" \ >>> stonith-action="reboot" \ >>> startup-fencing="true" \ >>> stop-orphan-resources="true" \ >>> stop-orphan-actions="true" \ >>> remove-after-stop="false" \ >>> default-action-timeout="120s" \ >>> is-managed-default="true" \ >>> cluster-delay="60s" \ >>> pe-error-series-max="-1" \ >>> pe-warn-series-max="-1" \ >>> pe-input-series-max="-1" \ >>> dc-version="1.0.12-unknown" \ >>> cluster-infrastructure="Heartbeat" >>> >>> Please advise, what parameters/functions do I require for this method. >>> >>> -- >>> Regards, >>> >>> Ahmed Munir Chohan >>> _______________________________________________ >>> Linux-HA mailing list >>> [email protected] >>> http://lists.linux-ha.org/mailman/listinfo/linux-ha >>> See also: http://linux-ha.org/ReportingProblems >> >> >> >> > > -- > Regards, > > Ahmed Munir Chohan > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
