Two RHEL servers sharing one Virtual IP - How to...?
Hi,
This should be incredibly easy, but I can't seem to find the easiest and most elegant way to do it online. Basically, I'm after a very simple method to share one IP across two machines. ie. Primary - 192.168.0.1 - 192.168.0.3 Secondary - 192.168.0.2 So, when Primary goes down, Secondary starts up an eth0:1 with the IP of 192.168.0.3, and serves content, but when Primary comes back, Secondary shuts down the eth0:1. I have googled, and searched here, but either my criteria is incorrect, or there's no 'easy' method with the least amount of config out there. I appreciate your time! Xen. |
Hi Xenner,
You can go through the corosync/pacemaker to setup Linux cluster. OR if you have licensed RHEL you can try RHEL cluster suite also http://www.linuxquestions.org/questi...er-4175425129/ |
Thanks Kirukan,
I'll check it out. Xen. |
Hi,
I got this working very simply. Thanks for the assist. I used 'cman', which includes corosync. And I added pacemaker also. I only added the two nodes into the /etc/cluster.conf file: <clusternode name="rhel6-01.business.com" nodeid="1"> and <clusternode name="rhel6-02.business.com" nodeid="2"> I ran these, where the ip on line one is the shared ip between the two nodes: Code:
pcs resource create livefrontendIP0 ocf:heartbeat:IPaddr2 ip=192.168.0.70 cidr_netmask=32 op monitor interval=30s I also hashed out the "mcastport" and placed a new line "broadcast: yes". I'm not sure that's required, I saw it in the man page. Once everything was configured, I ran "ccs_config_validate" and all the settings were 'okay'. I replicated the config to the secondary node, then started cman and pacemaker. Code:
service cman start Once everything's running, you can check it all out using. Code:
cman_tool status Code:
cman_tool nodes Xen. |
All times are GMT -5. The time now is 07:53 AM. |