RE: one click to start httpd on all nodes - possible?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You could make httpd_service_node1, httpd_service_node2 and httpd_service_node3- services...

Or just spread keys and "for x in node1 node2 node3; do ssh $x service httpd start|stop"...

-hjp



-----Original Message-----
From: linux-cluster-bounces@xxxxxxxxxx on behalf of Alex
Sent: Thu 8/28/2008 13:20
To: linux clustering
Subject: Re:  one click to start httpd on all nodes - possible?
 
On Wednesday 27 August 2008 16:28, Marek 'marx' Grac wrote:
> Hi,
>
> Alex wrote:
> > Hi all,
> >
> > I have 3 nodes, forming a cluster. How sould be configured a service in
> > cluster.conf file in order to be able to stop or to start httpd daemon on
> > all our nodes at the same time? All i can find in docs is related to
> > failover scenario (stoping httpd on one node wil cause starting httpd on
> > other node) which is not what i need. For nodes management i am using
> > conga, so, i would like to have a service to do that? Is possible? If
> > not, should i use other external tools (like nagios) to do that?
>
> I don't think that it is possible to do this directly. But it should be
> easy to create several services with
> httpd (perhaps with different failover domains) and then run/stop it
> using CLI tool:
>         clusvcadm -e service / clusvcadm -d service
> You can put this in any script and then you are able to start/stop it
> from anywhere

Hi marx,

Many thanks for your reply. This is not working for me. let simplify with 2 
nodes. I created a service and a resource, as you suggest:

[snip from cluster.conf]
<service autostart="1" exclusive="0" name="httpd_service">
<script ref="httpd_script"/>
</service>

<resources>
<script file="/etc/rc.d/init.d/httpd" name="httpd_script"/>
</resources>
[end snip]

Now, supposing that httpd_service is running on one node, clusvcadm -d 
httpd_service will disable service and stop httpd on that node, but clusvcadm 
-e httpd_service will enable service on the node where is issued command and 
will not start service also on the second node...so, as i said, is a failover 
configuration. I want to be able to controll httpd in parallel on all nodes! 
So, what is missing from my above cluster.conf setup?

Regards,
Alx

--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

<<winmail.dat>>

--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux