LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 10-28-2004, 09:32 AM   #1
sidra
Member
 
Registered: Oct 2004
Location: USA
Distribution: Fedora Core 3, Red Hat 9, CentOS 4.2, Mandriva, Ret Hat Enterprise Linux 4.0
Posts: 116

Rep: Reputation: 15
Creating a linux cluster effect on a single linux machine?


I'm using a linux cluster at college to run parallel programs using LAM/MPI. The cluster consists of 4 linux machines. LAM is basically a daemon based implementation of MPI. What it does is...when you boot up the nodes via the command 'lamboot -v hostfile' it launches daemons on each of the machines who's IPs are listed in the hostfile. Once the nodes are up and running you can run any parallel program using MPI i.e The Message Passing Interface. Now i wanted to see if i could in some way have the cluster effect on a single linux machine. So on my laptop i tried bringing up 4 virtual interfaces on top of the actual ethernet interface eth0 using the following command:

ifconfig eth0: x IP netmask 255.0.0.0 up

I executed this command 4 times using 1, 2, 3 and 4 in place of x and in place of IP i wrote down 4 Class C addresses...i.e 10.0.0.1, 10.0.0.2, 10.0.0.3 and 10.0.0.4.

The command executed 4 times perfectly fine. But when i did a lamboot, first of all it wouldn't let me run it logged in as root saying it's a very bad practice to run daemons as root. Then i logged in as myself and not root, only the first node booted up and none of the rest....the boot process failed!!!

If anyone knows anything about creating a multihomed host (i.e giving one machine multiple ips) plzzzzzzzzzz let me know!!!!!!!!!!!
 
  


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
useradd:'invalid user name' error when creating a machine account on RedHat Linux ES4 santosh0805 Linux - General 1 07-12-2005 08:39 AM
how to access internet from a linux machine via a linux machine as gateway b0nd Linux - Newbie 5 03-21-2005 11:59 AM
Creating Single Instance linux application praj_linux Programming 2 11-19-2004 04:06 AM
linux echo effect Youssef_C Linux - Software 1 10-31-2004 04:26 PM
Using SMB to copy files from one linux machine to second linux machine. coppersky Linux - Networking 9 06-24-2003 12:07 PM


All times are GMT -5. The time now is 06:42 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration