Creating a linux cluster effect on a single linux machine?
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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!!!!!!!!!!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.