Discussion:
How do you set up a Virtual IP Service??
James Fillman
2007-09-26 23:20:05 UTC
Permalink
First off, I have to say that the documentation for cluster suite is
horrible. Trying to find explanations and examples of cluster.conf
syntax is impossible. Where do you got learn you got configure services,
resources, failover domains?

Anyway, I want to set up a vip service that belongs to a failover
domain. How do I do it? This is the config I've come up with so far. It
looks fine based on the information that I've scrapped up, but it
doesn't work. I've got verbose logging turned on and I see no errors.

For a vip that's managed by rgmanager, I assume that it shouldn't be
started and stopped by init upon server start/stops. That would mean NOT
having an entry in /etc/sysconfig/network-scripts/. Correct??

Are there any command line tools to test this with?

Here's a snippet of my cluster.conf file:

<cluster alias="test cluster" config_version="7" name="test cluster">
<fence_daemon clean_start="0" post_fail_delay="0"
post_join_delay="3"/>
<clusternodes>
<clusternode name="clxp02cluster.cucbc.com" nodeid="1"
votes="1"/>
<clusternode name="clxp01cluster.cucbc.com" nodeid="2"
votes="1"/>
</clusternodes>
<cman expected_votes="1" two_node="1"/>
<fencedevices/>
<rm>
<failoverdomains/>
<resources/>
<service autostart="1" name="Network Sysloging"
domain="syslog">
<ip address="172.17.54.210" monitor_link="1"/>
<script file="/etc/rc.d/init.d/syslog-ng"
name="syslog-ng"/>
</service>
<failoverdomains>
<failoverdomain name="syslog" ordered="1"
restricted="1">
<failoverdomainnode
name="clxp02cluster.cucbc.com" priority="2"/>
<failoverdomainnode
name="clxp01cluster.cucbc.com" priority="1"/>
</failoverdomain>
<failoverdomain name="splunk" ordered="1"
restricted="1">
<failoverdomainnode
name="clxp02cluster.cucbc.com" priority="1"/>
<failoverdomainnode
name="clxp01cluster.cucbc.com" priority="2"/>
</failoverdomain>
</failoverdomains>
</rm>
</cluster>

thanks,
--james
Jos Vos
2007-09-27 06:19:29 UTC
Permalink
Post by James Fillman
First off, I have to say that the documentation for cluster suite is
horrible. Trying to find explanations and examples of cluster.conf
syntax is impossible. Where do you got learn you got configure services,
resources, failover domains?
Start reading:

http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Cluster_Suite_Overview/index.html
http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/en-US/Cluster_Suite_Overview.pdf
(2 alternatives for the same document)

http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Cluster_Administration/index.html
http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/en-US/Cluster_Administration.pdf
(2 alternatives for the same document)

http://sourceware.org/cluster/faq.html

Then create, given this documentation, a complete cluster.conf using
system-config-cluster.
Post by James Fillman
For a vip that's managed by rgmanager, I assume that it shouldn't be
started and stopped by init upon server start/stops. That would mean NOT
having an entry in /etc/sysconfig/network-scripts/. Correct??
Correct. It is handled by the cluster software internally and you can
not see it with "ifconfig", only with "ip addr list".
--
-- Jos Vos <***@xos.nl>
-- X/OS Experts in Open Systems BV | Phone: +31 20 6938364
-- Amsterdam, The Netherlands | Fax: +31 20 6948204
jim parsons
2007-09-27 15:45:46 UTC
Permalink
Post by Jos Vos
Post by James Fillman
First off, I have to say that the documentation for cluster suite is
horrible. Trying to find explanations and examples of cluster.conf
syntax is impossible. Where do you got learn you got configure services,
resources, failover domains?
http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Cluster_Suite_Overview/index.html
http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/en-US/Cluster_Suite_Overview.pdf
(2 alternatives for the same document)
http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Cluster_Administration/index.html
http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/en-US/Cluster_Administration.pdf
(2 alternatives for the same document)
http://sourceware.org/cluster/faq.html
Then create, given this documentation, a complete cluster.conf using
system-config-cluster.
http://sources.redhat.com/cluster/doc/cluster_schema.html
This page is linked off of sourceware.org/cluster

Also, conga is a really easy way of getting a cluster up and running.
You kinda need to know more to use s-c-cluster...with conga, you enter
the proposed nodenames, and the passwords for them and it just creates a
cluster for you.

-j

Loading...