Setting Up openMosix

From Bootable Cluster CD

This section provides a simple introduction to using openMosix in general, and using openMosix on the BCCD specifically. Two hosts are used for the example below for illustration. However, openMosix is capable of supporting many more systems (in fact, this is more typical; screenshots on the BCCD's home page show openMosix running across 9 BCCD systems).

1. Become Root

Initially, login to each system as root. Do this by either:

  • Logging in to main prompt as root password letmein
  • Logging in from normal user prompt by su - password letmein
Become root by typing "su -" at the command prompt and entering the password "letmein".  The > should change to a #

2. Start Auto-discovery Daemon

Auto-discovery notifies other nodes that it is an openMosix node by using muticast packets. After being logged in as root, issue the command omdiscd.

omdiscd is an auto-discovery daemon included in the openMosix-user package. When using omdiscd, /etc/openmosix.map does not need to be configured. This app is located in the openMosix Tools package included on the BCCD.

3. Check openMosix Cluster Nodes

Check which hosts were added to the openMosix cluster by issuing the command dmesg | grep openMosix. This will show both the openMosix id and corresponding IP Address.

dmesg | grep openMosix shows all of the nodes with their ID and IP

As you can see from the example above, IP address 192.168.1.1 has the openMosix ID of #257. The host with IP address 192.168.1.199 has the openMosix ID of #455.

4. Run a Test Script

Next, run the following test script to see the newly configured cluster auto-balance the simple awk command load among the configured openMosix nodes.

for i in `ls /proc/hpc/nodes/`; do awk ‘BEGIN {for(i=0;i<10000;i++)for(j=0;j<10000;j++);}’ & done

5. Analyze the Cluster!

The openMosix support on the BCCD includes both the openMosixView Package and the openMosix Tools. To analyze a cluster, you may either use

Reference Links

Personal tools