LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-09-2011, 12:10 PM   #1
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
How do I build a 2 node failover nfs cluster?


I am using Centos. I have read places that you can use Drbd + heartbeat + nfs to make a simple failover NFS server.

I can't find any document that works though. I've tried 20 or so, including some Debian ones.

So, does anyone have any other ideas of how to do this? Point me in the right direction please.

I want 2 nodes. One to be actively serving an NFS share. The other to be ready for failover. If the first one goes out, the second takes over. Meaning, the filesystem is in sync, the IP must change, and NFS must come up.

How should I do this?
 
Old 02-09-2011, 07:49 PM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
Take a look at Configuring NFS over GFS in a Red Hat Cluster. Depending on familiarity you may also want to review Cluster Suite Overview, Cluster Administration, and Configuring Fence Devices in a Red Hat Cluster.

 
1 members found this post helpful.
Old 02-09-2011, 08:00 PM   #3
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
I posted a response on a similar thread a while back, it may fit your needs

cheers
 
1 members found this post helpful.
Old 02-10-2011, 10:03 AM   #4
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Original Poster
Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Thanks. But these links to not complete the whole setup. In red-hats guide, they simply skip over the installation of the OS, configuration of each node and so on.

Last edited by szboardstretcher; 02-10-2011 at 02:07 PM.
 
Old 02-10-2011, 02:10 PM   #5
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Original Poster
Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
I guess the main thing I am getting stuck on, is that the RedHat guide wants a single drive shared among the nodes.

This is not what I am looking for.

I would like Node1 to have NFS and a filesystem, and if it fails, I would like it to bring up Node2's NFS and sync'ed filesystem.

Is this something that can be accomplished with Red Hat Clustering?
 
Old 02-10-2011, 05:24 PM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
No .. RHCS uses a clustered filesystem (GFS/2) .. what you're trying to do has potential data loss, is this acceptable ?
 
Old 02-14-2011, 12:16 PM   #7
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Original Poster
Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Quote:
Originally Posted by kbp View Post
No .. RHCS uses a clustered filesystem (GFS/2) .. what you're trying to do has potential data loss, is this acceptable ?
No.

Could you give me a high-level view of what would be needed in my case?
 
Old 02-14-2011, 04:36 PM   #8
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
To meet your requirements you'd need a cluster IP (provided by keepalived or something similar) and maybe an rsync running every minute to keep the content synchronised. A cluster built this way is really not a good solution ... shared storage is highly recommended.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How long a node failover and another node take over resources on HA cluster? levinhha Linux - Server 2 10-28-2010 10:13 PM
Home made cluster node fails to start sometimes on account of nfs Pier Linux - Server 2 03-24-2010 06:13 AM
RHEL5 2 node failover cluster conf with quorum K_L Linux - Enterprise 9 02-19-2010 04:07 AM
How to mount NFS/local partitions on RedHat cluster depending on node type? Myroslav Linux - Enterprise 0 01-05-2010 01:12 PM
Cluster NFS Late Failover? your_shadow03 Linux - Server 2 09-11-2008 11:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration