Choose the machines that will be nodes of the cluster.
Each machine should have a Linux distribution that is supported by Sun Update Connection – Enterprise and the kernel version supported by openMosix.
Install Sun Update Connection – Enterprise (system dependency server [SDS], dependency manager [DM], the knowledge base, the console, and the agent) on one of the machines.
See the Sun Update Connection - Enterprise 1.0 Administration Guide.
Install the agent on the other machines.
Add the openMosix RPM to the local knowledge base.
The Local Expansion technology creates deployment rules.
In a text editor, create /etc/mosix.map.
This file maps a node number to each IP address.
Add a file declaration called /etc/mosix.map
Add the /etc/mosix.map file to the local knowledge base.
In a text editor, create a version of /etc/hosts which includes the hosts to be in the cluster.
Add a /etc/hosts file declaration and add the version you just made to the local knowledge base.
See Creating File Declarations and Uploading Local Configuration Files.
Write a script that changes the default boot kernel to openMosix in the grub table:
OpenMosixAsDefault.sh |
See Writing Actions.
Add this script to Local/Pre-actions.
See Uploading Actions.
Add this script to Local/Post-actions.
See Uploading Actions.
Create a profile called openMosixNode that defines the following requirements of a node in the cluster:
Required: openMosix kernel and management tools
Required: /etc/mosix.map (specifying local version)
Required: /etc/hosts (specifying local version)
Required: Pre-action OpenMosixAsDefault.sh
See To Create a Profile.
Create a group called Test, which includes two of the machines, and then Create a group called openMosixCluster, which includes all the machines that are to be nodes in the cluster.
See To Create a Group.
Create a job that runs in simulate mode on the Test group, with the following profile tasks:
openMosixNode profile
Perform Restart
Check the estimates and status of the job before continuing. See Creating Complex Jobs.
Rerun the job in deploy mode on the Test group. Check the results and status of the hosts before continuing.
See To Rerun a Job.
Run the job again in deploy mode on the openMosixCluster group.
All selected machines are now nodes of a cluster. See Creating Complex Jobs.