Thursday, August 21, 2008

Configuring PVM (Parallel Virtual Machine)

This will help u people who want to configure the PVM daemon....

Before building or running PVM, we have to set some environment variables, as listed below in the $HOME/.bash_profile or $HOME/.bashrc file.

# SET PVM ENVIRONMENTAL VARIABLES
# SET PVM_ROOT
PVM_ROOT=/use/share/pvm3
# SET PVM_ARCH
PVM_ARCH=LINUX
# SET PATH
PATH=$PATH:$PVM_ROOT/lib:$PVM_ROOT/bin/$PVM_ARCH:$PVM_ROOT/lib/$PVM_ARCH
# SET PVM_DPATH: PVM DAEMON PATH
PVM_DPATH=$PVM_ROOT/lib/pvmd
# ADDING MANPATH FOR HELP
MANPATH=$MANPATH:$PVM_ROOT/man
# SET XPVM_ROOT
XPVM_ROOT=$PVM_ROOT/xpvm
# XPVM EXECUTABLE DIRECTORY ADDED TO SHELL PATH
PATH=$PATH:$XPVM_ROOT/src/$PVM_ARCH
# SETTING TCL & TK LIBRARIES
TCL_LIBRARY=/usr/lib
TK_LIBRARY=/usr/lib
export USERNAME BASH_ENV PATH TCL_LIBRARY TK_LIBRARY MANPATH PVM_ROOT PVM_ARCH PVM_DPATH XPVM_ROOT

After setting the environment variables, build PVM for each host architecture(if there are different architectures present in the cluster). Create .rhosts on each host, listing all the hosts that are to be used.

To start PVM, run $PVM_ROOT/lib/pvm. This starts the console task, which in turn starts a pvmd if one is not already running. More hosts can be started and added to your "virtual machine" by using the console "add" command. To start the pvmd without starting the console, you can also run the $PVM_ROOT/lib/pvmd directly.

A number of hosts can all be started at once by supplying the pvmd with a host file, as in:
$PVM_ROOT/lib/pvmd my_hosts
where "my_hosts" contains the names of the hosts you wish to add, one host per line.

No comments: