LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-29-2007, 12:15 AM   #1
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Rep: Reputation: 30
Load Balance NFS possible?


Is it possible to have a load-balanced solution for NFS?

I currently have 1 server for storing files for webusers to access... but with impeding increase in traffic, I wonder if it is possible to adopt a load balance solution?
 
Old 05-29-2007, 02:08 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
depends what you call load balancing i guess, and also how the users come into the equation. the simplest way for real web users would probably just be a DNS round robin solution. if you have enough individual users and can resolve the server they go to to two different boxes then that *may* fit in well. other than that, check out the lvs project which can perform the load balancing generically. as a technology it's absolutely possible. i've not done it myself, but for simplicity if nothign else, you'd probably want to restrict NFS to use dedicated ports rather than relying on portmapper to do it for you. this would certanily make any troubleshooting about session persistence etc much easier.
 
Old 04-19-2011, 07:41 AM   #3
t35t0r
LQ Newbie
 
Registered: Mar 2010
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by Swakoo View Post
Is it possible to have a load-balanced solution for NFS?

I currently have 1 server for storing files for webusers to access... but with impeding increase in traffic, I wonder if it is possible to adopt a load balance solution?
I haven't tried this but you could try using balance + NFS (http://www.inlab.de/balance.html). It's available in most distro repos. Maybe something like this assuming you're using tcp only NFS:

/usr/sbin/balance -f 2049 nfsServer1:2049 nfsServer2:2049 ...

or you could try nfs4 with pnfs

Last edited by t35t0r; 04-19-2011 at 07:48 AM.
 
Old 04-19-2011, 08:08 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by t35t0r View Post
I haven't tried this but you could try using balance + NFS (http://www.inlab.de/balance.html). It's available in most distro repos. Maybe something like this assuming you're using tcp only NFS:

/usr/sbin/balance -f 2049 nfsServer1:2049 nfsServer2:2049 ...

or you could try nfs4 with pnfs
please don't drag up dead threads, there was no need to resurrect this and it can get very messy and confusing when people don't notice the original times of the post.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
squid load balance ghabsh Linux - Server 1 03-24-2007 02:45 AM
load balance problem c2220333 Linux - Kernel 0 01-30-2007 10:55 PM
Internet load Balance serabut Linux - Networking 1 07-31-2006 02:56 AM
CPU Load Balance - Who knows? davi_cabral Linux - General 3 01-02-2006 03:07 PM
Connection load balance inaki Linux - Networking 1 08-22-2005 10:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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