Solved

heartbit with eth0:0

Posted on 2011-09-14
8
315 Views
Last Modified: 2012-05-12
hi ..

I need an idea ...i want exactly what i need as i described bellow ..


I need  to setup nfs share in to server (Server A and Server B ) so that Server C can access it via ip 192.0.0.4 ( which will move round beween Server A and SErver B)

Both server has different Ip example (Server A : eth0 192.0.0.2 , Server B:eth0 192.0.0.3)

I will setup Same nfs share on both server.

initially i will create   eth0:0 in SErver A with ip 192.0.0.4


and heatbit program will be on both server .

When Server A will go down ..

I want to map 192.0.0.4 from SErver A , eth0:0 to SErver B ,Eth0:0

can it be done ??

I belived it can be done and i am working on

it any one wants to advise me something.. please advise

Thanks for your help.





Server C
0
Comment
Question by:fosiul01
  • 4
  • 4
8 Comments
 
LVL 77

Accepted Solution

by:
arnold earned 500 total points
ID: 36537828
Yes, using clustering.
system-config-cluster redhat/centos.

Sup clustering and using the 192.0.04 as the clustered IP resource?
This is how the clustering works.
Are you using AFS between the servers for data synch?
0
 
LVL 29

Author Comment

by:fosiul01
ID: 36537899
Im Using debian,.,.
0
 
LVL 77

Expert Comment

by:arnold
ID: 36538656
I've not setup clustering with debian.

You could setup a script on each node. That will first check whether it is the primary (handling the IP in question)
http://www.linuxquestions.org/questions/debian-26/best-way-to-cluster-with-debian-553908/

The 192.0.0.4 will by the IP resource that will follow to the active node.

Centos/RedHad have the system-config-cluster that simplifies the setup.


Are you looking to manage it manually/through scripts?
The issue is that you have to deal with RACE conditions to avoid attempting to bring the IP on both nodes.
0
 
LVL 77

Expert Comment

by:arnold
ID: 36538711
http://www.debianadmin.com/how-to-set-up-a-high-performance-cluster-hpc-using-debian-lenny-and-kerrighed.html

If you do use script, you would use ifconfig eth0:0 <ip>  netmask <netmask> up
to bring up the IP on the correct interface.
To manage the arp expiration delay, you may want to specify/use a common mac address in the script.
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 29

Author Comment

by:fosiul01
ID: 36538765
About the race condition... I dont know yet because im using oracle vm and its shared storage just to
Make a cluster as workway round and im using
Nfs for this shared storage . Only problem is if
Nfs server goes down VM will shutdown the server.
So i need HA to quickly move the ip.

Does heartbeat work with normal debism?
0
 
LVL 77

Expert Comment

by:arnold
ID: 36538918
I do not know.  Any specific reason you are using debian versus centos/redhat?

I would think they have to have a heartbeat test which is how the nodes communicate and determine which one is active and which is the standby and when communications are lost to the active, the standby asserts bringing up the resources that are part of the cluster.

You mean oracle Linux VM.
The VM will likely go down because of the transition is not instantaneous for the IP resource. The access to the file within NFS will not be instantaneous either.

IP is likely a 5 second transition. The NFS related lock acquire access to the file is an additional time overhead.

 
0
 
LVL 29

Author Comment

by:fosiul01
ID: 36538966
yes Oracle Vm 3

this version require to have atleast one Cluster (shared storage)

and we dont have any central storage..

so i have decided to go with nfs..

for test environment , i used openfiler which works fine..

but due to resources.. in live environment, i cant use openfiler..

all our servers are debian.. so my manager said, to use any existing debain server which is in live environemnt and make nfs share..

our server is very reliable but you never know when one goes down

so i cant take any risk of having only one nfs share..

so I need to put that share in to another server incase if main one down... ip will go over to next one and ORACLE VM will not cause any problem...


i asked question in Oracle vm to see how often the OVM manager check for live storage..

i used before heartbeat + drbd..

but i am thinking to use just hearbeat so that it move around the iP ...

but dont know if it can be done with pure debain or not ..
0
 
LVL 29

Author Comment

by:fosiul01
ID: 36538991
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now