1828959 Members
2513 Online
109986 Solutions
New Discussion

red hat cluster failback

 
DeafFrog
Valued Contributor

red hat cluster failback

hi ,
we have installed 2 node red hat cluster on hp blade
Linux mango2 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:19 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
cluster is up and working , but we want to disable failback.
i.e in case of server1 running service1 and associated FS going down,
node server2 should own the service and the mount point(this is tested ok)
But when the Server1 coming back , the service and mount point should not go back to system1.
we alredy did this in cluster.conf file :

But still the failback is happening.
Regards,
FrogIsDeaf
12 REPLIES 12
AnthonySN
Respected Contributor

Re: red hat cluster failback

goto Modify Failover Domain

To enable or disable failback in a failover domain, click the checkbox next to Do not fail back services in this domain. With Do not fail back services in this domain checked, if a service fails over from a preferred node, the service does not fail back to the original node once it has recovered.
AnthonySN
Respected Contributor

Re: red hat cluster failback

since your domain is ordered what is the priority you have gievn to the nodes.
DeafFrog
Valued Contributor

Re: red hat cluster failback

hi SASJ,

priority means votes ? ....here's the clusfer.conf file...


































ountpoint="/u01" name="comfs" options="" self_fence="0"/>
<script file="/u01/scripts/comm1.server" name="comscript"/>




<script ref="comscript"/>





Regards,
FrogIsDeaf
Alzhy
Honored Contributor

Re: red hat cluster failback

Hmm.. did you hand edit the cluster.conf file? Maybe try again using COnga instead?

I must admit I have never attempted CLI or modified the conf file for any cluster changes I make. I always use Conga - much easier and propagates changes and puts them into effect seamlessly.

Hakuna Matata.
Matti_Kurkela
Honored Contributor

Re: red hat cluster failback

I agree with Alzhy: you should *never* edit the actual /etc/cluster/cluster.conf while the cluster is running.

Instead, if you want to edit the file, you should do this:

cp /etc/cluster/cluster.conf /tmp/cluster.conf.new



NOTE: remember to increment the config_version number at the top of the file. For example, if it originally says 'config_version="11"', change it to 'config_version="12"'.

Once you've made your changes to /tmp/cluster.conf.new, run this command to update the new configuration in a synchronized fashion to all cluster members:

ccs_tool update /tmp/cluster.conf.new

I've used this procedure and it works well. It was even recommended by RedHat Cluster and Storage course instructor.

MK
MK
DeafFrog
Valued Contributor

Re: red hat cluster failback

Dear Alzy and Matti,
Thanks for the valuable inputs.I have heard of conga, but if
i install the cong rpm , presumably there would be some gui
option of conga that will disable failback.Is that correct ?

Some one told me that red hat does not have "disable failback"
option as HP SG , an alternate way would be to disable the rgmanager
service in primary node so that after failover , when the service tries to
failback, it doesn't have a node to do so.Pls correct my understanding
FrogIsDeaf
DeafFrog
Valued Contributor

Re: red hat cluster failback

Yes i hand-edited the cluster.conf file,thanks Matti for the input.

Regards,
FrogIsDeaf
AnthonySN
Respected Contributor

Re: red hat cluster failback

is it working now?
you can also use system-config-cluster gui.
try changing the ordered to 0 and check the failover and failback.
Matti_Kurkela
Honored Contributor

Re: red hat cluster failback

> presumably there would be some gui
option of conga that will disable failback.Is that correct ?

Yes. See attached screenshot. (server & failover domain names blurred out for anonymity)

This is the view of Conga modifying the configuration of a failover domain. The relevant checkbox is named "Do not fail back services in this domain".

> Some one told me that red hat does not have "disable failback"
option as HP SG , an alternate way would be to disable the rgmanager
service in primary node [...]

This may or may not have been true in the past (i.e. with the RedHat Cluster versions for RHEL 2.1, RHEL 3 and maybe RHEL 4), but it certainly isn't true for RHEL 5. From your kernel version, I see you have RHEL 5. Your "someone" has given you old or plainly incorrect information.

There definitely is a "disable failback" option in RHEL 5's cluster, so there is no reason for hacky workarounds like that.

MK
MK
DeafFrog
Valued Contributor

Re: red hat cluster failback

Thanks Matti and Anthony ...
i will install conga ...update the thread(and points) .Just as a matter of curosity ....Anthony from Imtac.

Regards,
FrogIsDeaf
Ann123
New Member

Re: red hat cluster failback

I have a redhat cluster with two nodes, I need to implement nodes failover failback. When Server1 go offline, the services and shared resources should failover to Server2. When the Server1 comes up the services and resources which were failover to Server2 should fail back to Server1 again.

Kindly suggest me, if anyone knows the exact implementation steps.
DeafFrog
Valued Contributor

Re: red hat cluster failback

hi Ann ,

The solution is to use luci ,as posted by Matti above .Luci is gui RED HAT Linux cluster configuration tool , install the correct RPM for luci for your destro , then
service httpd start
service luci start

access the url at :8084.

Rest is GUI and self-explanatory

Regards,
FrogIsDeaf