[Linux-cluster] one click to start httpd on all nodes - possible?

Alex linux at vfemail.net
Thu Aug 28 13:36:13 UTC 2008


On Wednesday 27 August 2008 17:32, Johannes Rußek wrote:
> Hi Alex,
> if it's just something you want to do manually, are you aware of
> "http://sourceforge.net/projects/pdsh" ?
> regards,
> Johannes
>

I take a look over it... Is not ok at all ... It require rsh server to be 
installed on our nodes (is anybody using rsh...?) or require ssh v1 which is 
also disabled by default on all our nodes for security reasons... Finally, 
will do not do more then one line in a script which i coded in 5 seconds:

Stop service:
n=3
for i in `seq 1 $n`
do
ssh -l root node$i /etc/rc.d/init.d/httpd stop && logout;
done

Start service:
n=3
for i in `seq 1 $n`
do
ssh -l root node$i /etc/rc.d/init.d/httpd start && logout;
done

I don't think that this is a modern way and elevated method to be used in 
clustering...

If that is all it can redhat cluster v2, i'm afraid is very bad news....

Regards,
Alx

> Marek 'marx' Grac schrieb:
> > 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
> >
> > marx,
>
> --
> Linux-cluster mailing list
> Linux-cluster at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-cluster




More information about the Linux-cluster mailing list