The following is based on using SuSE 7.1 (German Version), Linux Kernel 2.2.19, and Mosix 0.98.0.
The Linux Kernel 2.2.18 sources are part of the SuSE distribution. Do not use the default SuSE 2.2.18 kernel, as it is heavily patched with SuSE stuff. Get the patch for 2.2.19 from your favorite mirror such as . If there are further patches for the 2.2.* kernel RROR URL HERE by the time you read this text, get those, too.
If one of your machines is a laptop with a network connection via PCMCIA, you will need the PCMCIA sources, too. They are included in the SuSE distribution as MISSING: RPM HERE.
Mosix 0.98.0 for the 2.2.19 kernel can be found on http://www.mosix.org/ as MOSIX-0.98.0.tar.gz . While you are there, you might want to get some of the contributed software like qps or mtop. Again, if there is a version more current than 0.98.0 by the time you read this, get it instead.
SuSE 7.1 ships with a Mosix-package as a rpm MISSING: RPM HERE Ignore this package. It is based on Kernel 2.2.18 and seems to have been modified by SuSE (see /usr/share/doc/packages/mosix/README.SUSE). You are better off installing the Mosix sources and installing from scratch.
We're assuming your hardware and basic Linux system are all set up correctly and that you can at least telnet (or ssh) between the different machines. The procedure is described for one machine. Log in as root. Install the sources for the 2.2.18 Kernel in /usr/src. SuSE will place them there automatically as /usr/src/linux-2.2.18 if you install the RPM RPM NAME. Rename the directory to /usr/src/linux-2.2.19. Remove the existing link /usr/src/linux and create a new one to this directory with
ln -s /usr/src/linux-2.2.19 linux |
cp -rp linux-2.2.19/* linux-2.2.19-mosix/ |
ln -s /usr/src/linux-2.2.19-mosix linux |
tar xfz MOSIX-0.98.0.tar.gz |
Run the install script /tmp/mosix.install and follow instructions.
Mosix should be enabled for run level 3 (full multiuser with network, no xdm) and 5 (full multiuser with network and xdm). There is no run level 4 in SuSE 7.1.
The Mosix install script does not give you the option of creating a boot floppy instead of an image. If you want a boot floppy, you will have to run "make bzdisk" after the install script is through.
Do not repeat /not/ reboot.
The install script in Mosix 0.98.0 is made for Red Hat distributions and therefore fails to set up some SuSE files correctly. It tries to put stuff in /sbin/init.d/, which in fact is /etc/init.d/ (or /etc/rc.d/) with SuSE. Also, there is no /etc/rc.d/init.d/ in SuSE. So:
Copy /tmp/mosix.init to /etc/init.d/mosix and make it executable with the command
chmod 754 /etc/init.d/mosix |
MISSING - MODIFY ATD stuff "/etc/rc.d/init.d/ATD" BY HAND
MISSING - MODIFY THE "/etc/cron.daily/slocate.cron" FILE
The other files - /etc/inittab, /etc/inetd.conf, /etc/lilo.conf - are modified correctly.
Edit the file /etc/inittab to prevent some processes from migrating to other nodes by inserting the command "/bin/mosrun -h" in the following lines:
Run levels:
l0:0:wait:/bin/mosrun -h /etc/init.d/rc 0 l1:1:wait:/bin/mosrun -h /etc/init.d/rc 1 l2:2:wait:/bin/mosrun -h /etc/init.d/rc 2 l3:3:wait:/bin/mosrun -h /etc/init.d/rc 3 l5:5:wait:/bin/mosrun -h /etc/init.d/rc 5 l6:6:wait:/bin/mosrun -h /etc/init.d/rc 6 |
Shutdown and sulogin:
~~:S:respawn:/bin/mosrun -h /sbin/sulogin ca::ctrlaltdel:/bin/mosrun -h /sbin/shutdown -r -t 4 now sh:12345:powerfail:/bin/mosrun -h /sbin/shutdown -h now THE \ POWER IS FAILING |
It is not necessary to prevent the /sbin/mingetty processes from migrating - in fact, if you do, all of the child processes started from your login shell will be locked, too [Note to German readers: This is mistake in the article "Zwischen Multiprocessing und Cluster-Computing" on Mosix in "Linux-Magazin" 6/2000].
To enable the processes started by your window manager to migrate, edit the files ~/.xinitrc and ~/.xsession by going to the end of the file and changing the line "exec $WINDOWMANAGER" to
exec /bin/mosrun -l $WINDOWMANAGER |
The command to start and stop Mosix (do not repeat /not/ do this now) is
/etc/init.d/mosix {start|stop|status|restart|reload} |
ln -s ../mosix S30mosix ln -s ../mosix K01mosix |
Create a file /etc/mosix.map following the instructions in the Mosix documentation. In the most simple case, you will have n computers which have their IP-addresses in sequence so that the map file will simply look like
1 IP-address of first node n |
1 10.0.0.1 2 3 10.0.0.100 2 5 10.0.0.150 1 |
Run "/etc/versionate", which will most probably tell you that the Mosix module already has a version. Do it anyway.
Now, finally, reboot. The computer should come up running Mosix.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |