LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 10-24-2013, 11:17 AM   #1
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Rep: Reputation: 32
How do I create Linux cluster nodes


I am building a cluster (without ROCKS, I am doing this for educational purposes). I have been reading from numerous places that this is an easy thing to do but it doesn't seem so (or perhaps I have been reading something wrong). I am making a cluster with the Debian operating system and I know about the NFS, SSH and MPI installations that need to occur in order to get it to work. But the one thing that all of the tutorials fail to cover is how to install the nodes. Do I need to just perform a regular install on the nodes and connect them to the server or is there more to it. I thought that all of the programs and operating systems will be stored on the server and NFS will be exporting those parts of the disk onto the node. if that is the case then how do I go about doing it without installing an operating system on the node and MPI without it.(unless I read this wrong).

Documentation such as this one don't give a clear indication on how to install the node.
http://www.mcsr.olemiss.edu/bookshel...er.html#Slave1

Last edited by baronobeefdip; 10-24-2013 at 11:23 AM.
 
Old 10-24-2013, 12:55 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Have you considered glusterfs?

It's pretty simple and I have a recipe that I used on a 2 node CentOS cluster.
Once installed in Debian, the configuration instructions shouldn't matter.

N/M: I'm an idiot. glusterfs is not even close to a Beowulf Linux Cluster

Last edited by Habitual; 10-24-2013 at 12:56 PM.
 
Old 10-24-2013, 01:03 PM   #3
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
Well I have been doing some more research and it slowly starts to make sense but raises some new questions. Do I have to install open-mpi on the nodes or do I just have to install it on the master. Plus how is NFS setup. I understand how to setup SSH and I know that clustering involves MPI and NFS in order to function as a cluster. I also read that in order for a program to function in a cluster like it was designed to, it needs some MPI programming placed inside of it. If it has no MPI programming elements inside of the sources it will only replicate itself across all of the nodes instead of dividing itself among all of the nodes.

http://techtinkering.com/2009/12/02/...-mpi-on-linux/

Also I can't tell from the article above that if I need to install an operating system on the node? or just to format it with the ext4 partition and the swap. Then export the / directory to the node in some way. If that's even possible.

Last edited by baronobeefdip; 10-24-2013 at 01:06 PM.
 
Old 10-24-2013, 01:04 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
I have no idear. Sorry.
 
Old 10-25-2013, 12:08 PM   #5
phunkymunky
Member
 
Registered: Aug 2003
Location: Glasgow, Scotland
Distribution: Slackware 14.0, Debian 7.0
Posts: 60

Rep: Reputation: 22
Have a look at the Raspberry Pi cluster pages at Southampton Uni http://www.southampton.ac.uk/~sjc/ra...outhampton.htm. It gives a full rundown about how to set up a cluster using MPI which may give you a better idea of how it all works.
 
Old 11-01-2013, 10:35 PM   #6
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by phunkymunky View Post
Have a look at the Raspberry Pi cluster pages at Southampton Uni http://www.southampton.ac.uk/~sjc/ra...outhampton.htm. It gives a full rundown about how to set up a cluster using MPI which may give you a better idea of how it all works.
AWESOME!! This solved all of my confusing questions that yielded cryptic answers. So if they have to be programmed as MPI programs (including the MPI header and the various pieces of an MPI program to get the MPI environment working), How do I make a regular program into an MPI program?
 
Old 11-03-2013, 11:02 AM   #7
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
MPI is an interface specification with binding in C, Fortran, and several other languages (although C and Fortran are the main ones used in modern high performance computing, with some C++ thrown into the mix). There are several MPI implementations available such as MPICH2 and OpenMPI. Whatever implementation you used will have to be installed on all of the nodes (or made available on them via NFS).

There is no magic bullet to make a normal single threaded program use MPI for parallelism. You have to get the source code and modify it to run in parallel. Depending on the task at hand, this could be fairly easy or very difficult. You have to know what work that the program does that can be parallelized and then find an efficient parallel algorithm so that the extra communication time does not negate the advantage of having more cores. If the program is written with shared memory thread parallelism, it may be a bit easier to modify it to use distributed memory parallelism as is used with MPI.

The real question here is what are you trying to accomplish? You say that this is for learning, but you should have some end goal in mind of what you'd actually like to do with the cluster.

And to answer the question upthread -- yes, High Performance Computing (HPC) cluster compute nodes are generally just "normal" Linux installs (although obviously without graphics and any other superfluous software). They are generally made to work together on a program built using MPI (or occasionally other middleware) and often allocated to jobs by some form of batch queuing system such as Torque, SLURM, SGE, etc (necessary when you have more than one user, so they don't step on one another).
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Installing Nodes in a Large Linux Cluster LXer Syndicated Linux News 0 02-03-2007 10:33 AM
linux cluster: slave nodes keep switching ip addresses frankie_DJ Linux - Networking 0 08-30-2006 02:48 PM
How do i create an a/c at all nodes in the cluster dogma Linux - Networking 4 05-19-2003 10:21 AM
rsh between 2 nodes on a Linux Cluster marxsmann Linux - General 2 01-26-2003 04:15 PM

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

All times are GMT -5. The time now is 08:24 AM.

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