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, 11:10 AM   #1
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657
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, 06: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, 07: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, 09:03 AM   #4
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Original Poster
Rep: Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657
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 01:07 PM.
 
Old 02-10-2011, 01:10 PM   #5
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Original Poster
Rep: Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657
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, 04: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, 11:16 AM   #7
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Original Poster
Rep: Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657Reputation: 1657
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, 03: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 09:13 PM
Home made cluster node fails to start sometimes on account of nfs Pier Linux - Server 2 03-24-2010 05:13 AM
RHEL5 2 node failover cluster conf with quorum K_L Linux - Enterprise 9 02-19-2010 03:07 AM
How to mount NFS/local partitions on RedHat cluster depending on node type? Myroslav Linux - Enterprise 0 01-05-2010 12:12 PM
Cluster NFS Late Failover? your_shadow03 Linux - Server 2 09-11-2008 10:55 PM

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

All times are GMT -5. The time now is 07:52 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