This procedure to create a cluster with nodes takes about two hours to complete. It might take less time if there are no unexpected problems or a little more time for different environments. Maintenance tasks on the cluster (for example, adding or changing a node) take about five to ten minutes.
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.
Install the agent on the new machine.
See the Sun Update Connection - Enterprise 1.0 Administration Guide.
Add this managed host to the openMosixCluster group.
See To Edit a Group.
Open the mosix.map knowledge base file and add a new node number and the IP of the new machine.
Open the /etc/hosts knowledge base files and add the new host name.
See Opening Host Files.
Run the job with the openMosixNode profile in deploy mode on the openMosixCluster group.
Legacy data and applications are not touched by the job, but the new map and hosts files are downloaded to each node. See Creating Complex Jobs.