Installing LSF-HPC With SLURM Into an Existing Standard LSF Cluster

You must apply the new rules to every node that might be selected to run the LSF-HPC daemons. A
later step in this procedure describes how to generate a new /etc/sysconfig/iptables file on
each node, using your modified iptables.proto file.
Node-to-node communication
LSF can use either rsh or ssh to control all the LSF daemons in the cluster. The daemons expect the
selected mechanism to enable access to all nodes without a password.
Because rsh transmits passwords unencrypted through the network, HP does not recommend its use
in HP XC clusters. (Unencrypted passwords might be revealed by a standard network-sniffing
program.) Consequently, rsh and its related packages are not installed on HP XC clusters by default
and ssh is recommended instead.
If you prefer to use rsh within the LSF cluster, install its RPM packages on the head node before
proceeding to set up LSF. The rsh packages are provided on the HP XC software DVD.
Setup the expected LSF environment
A typical LSF installation provides two environment setup files, named profile.lsf and
cshrc.lsf by default.. When sourced by the user, the setup files enable access to the LSF binaries,
man pages, and libraries.
When LSF is installed locally, two custom system files named /etc/profile.d/lsf.sh and
/etc/profile.d/lsf.csh. are created. The system files automatically source the LSF
environment setup files at log in, giving all authorized users access to LSF as soon as they log in to the
cluster.
The current contents of the two system files are shown below. The current LSF_TOP,
(/opt/hptc/lsf/top), is replaced by a new LSF_TOP, (/shared/lsf), which is a location that
is shared between the two clusters.
[root@xc128 profile.d]# cat lsf.sh
case $PATH in
*-slurm/etc:*) ;;
*:/opt/hptc/lsf/top*) ;;
*)
if [ -f /opt/hptc/lsf/top/conf/profile.lsf ]; then
. /opt/hptc/lsf/top/conf/profile.lsf
fi
esac
[root@xc128 profile.d]# cat lsf.csh
if ( "${path}" !~ *-slurm/etc* ) then
if ( -f /opt/hptc/lsf/top/conf/cshrc.lsf ) then
source /opt/hptc/lsf/top/conf/cshrc.lsf
endif
endif
The objective of these custom files is to source (once only) the appropriate LSF environment file, which
is:
$LSF_ENVDIR/cshrc.lsf, for csh users
$LSF_ENVDIR/profile.lsf, for users of sh, bash, and other sh-based shells.
Create /etc/profile.d/lsf.sh and /etc/profile.d/lsf.csh on the cluster to setup the
LSF environment on. Using /shared/lsf for the value of LSF_TOP as an example, the new files
look similar to the following:
[root@xc128 profile.d]# cat lsf.sh