Solved

heartbit with eth0:0

Posted on 2011-09-14
8
312 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 76

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 76

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 76

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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
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 76

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
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.

760 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

20 Experts available now in Live!

Get 1:1 Help Now