<div dir="ltr"><div><div>Cluster name: pacemaker1<br>Last updated: Wed Aug 5 09:07:27 2015<br>Last change: Wed Aug 5 08:58:24 2015<br>Stack: cman<br>Current DC: node1 - partition with quorum<br>Version: 1.1.11-97629de<br>2 Nodes configured<br>2 Resources configured<br><br><br>Online: [ node1 node2 ]<br><br>Full list of resources:<br><br> ClusterIP (ocf::heartbeat:IPaddr2): Started node2 <br> WebSite (ocf::heartbeat:apache): Started node1 <br><br>Failed actions:<br> WebSite_monitor_0 on node2 'unknown error' (1): call=96, status=complete, last-rc-change='Wed Aug 5 08:53:24 2015', queued=1ms, exec=51ms<br><br><br>Traceback (most recent call last):<br> File "/usr/sbin/pcs", line 138, in <module><br> main(sys.argv[1:])<br> File "/usr/sbin/pcs", line 127, in main<br> status.status_cmd(argv)<br> File "/usr/lib/python2.6/site-packages/pcs/status.py", line 13, in status_cmd<br> full_status()<br> File "/usr/lib/python2.6/site-packages/pcs/status.py", line 60, in full_status<br> utils.serviceStatus(" ")<br> File "/usr/lib/python2.6/site-packages/pcs/utils.py", line 1504, in serviceStatus<br> if is_systemctl():<br> File "/usr/lib/python2.6/site-packages/pcs/utils.py", line 1476, in is_systemctl<br> elif re.search(r'Foobar Linux release 6\.', issue):<br>NameError: global name 'issue' is not defined<br></div> <br><br></div>This is the error that i got after location constraint and ClusterIP started on node1 .<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 5, 2015 at 12:37 PM, Andrei Borzenkov <span dir="ltr"><<a href="mailto:arvidjaar@gmail.com" target="_blank">arvidjaar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, Aug 5, 2015 at 9:23 AM, Vijay Partha <<a href="mailto:vijaysarathy94@gmail.com">vijaysarathy94@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I have 2 doubts.<br>
><br>
> 1.) If i disable a resource and reboot the node, will the pacemaker restart<br>
> the service?<br>
<br>
</span>What exactly "disable" means? There is no such operation in pacemaker.<br>
<span class=""><br>
> Or how can i stop the service and after rebooting the service<br>
> should be started automatically by pacemaker<br>
><br>
<br>
</span>Unfortunately pacemaker does not really provide any way to temporary<br>
stop resource. You can set target role to Stopped which will trigger<br>
resource stop. Then resource won't be started after reboot, because<br>
you told it to remain Stopped. Same applies to is-managed=false.<br>
<br>
If I'm wrong and it is possible I would be very interested to learn it.<br>
<span class=""><br>
> 2.) how to create apache instances in such a way that 1 instance runs in 1<br>
> node and another instance runs on the second node.<br>
><br>
<br>
</span>Just define two resources and set location constraints for each.<br>
<br>
_______________________________________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
<a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/mailman/listinfo/users</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>With Regards<br></div>P.Vijay<br></div></div>
</div>