Installing LSF-HPC With SLURM Into an Existing Standard LSF Cluster
case $PATH in
*-slurm/etc:*) ;;
*:/shared/lsf/*) ;;
*)
if [ -f /shared/lsf/conf/profile.lsf.xc ]; then
. /shared/lsf/conf/profile.lsf.xc
fi
esac
[root@xc128 profile.d]# cat lsf.csh
if ( "${path}" !~ *-slurm/etc* ) then
if ( -f /shared/lsf/conf/cshrc.lsf.xc ) then
source /shared/lsf/conf/cshrc.lsf.xc
endif
endif
To summarize the current state of the installation:
• The scripts profile.lsf.xc and cshrc.lsf.xc scripts do not exist yet. You will establish
them after installing LSF-HPC for XC later in this procedure.
• You have seen that the names of the setup files are appended with the xc string. After installing
LSF-HPC for XC, you must rename the setup files to maintain the existing setup files.
• In a later step, you will propagate the new custom files /etc/profile.d/lsf.sh and
/etc/profile.d/lsf.csh to every node in the XC cluster.
Set up the XC LSF startup script
The XC controllsf command can also double as the Red Hat /etc/init.d/ service script for
starting and stopping XC LSF during boot and shutdown of the cluster. When starting LSF, this
command establishes the LSF alias and starts the LSF daemons. The command can start LSF on one of
the resource_management nodes only. It is safe, and also necessary for failover, to configure
controllsf on every node in the cluster.
To configure the controllsf command as the service script, create the appropriate soft-link:
[root@xc128 root]# which controllsf
/opt/hptc/sbin/controllsf
[root@xc128 root]# ln -s /opt/hptc/sbin/controllsf /etc/init.d/lsf
This configuration must be present on every node in the XC cluster. At this point, you have completed
the changes to the head node.
Completing the preparation
To complete the preparation,. update the golden image with the changes that you made in the
preceding sections, and propagate the changes to the cluster nodes. See HP XC System Software
Administration Guide for the recommended procedures to update the golden image and propagate
the changes. Complete the preparation as follows:
1. Use the cluster_config command to update the golden image if you must change XC roles
to ensure that all resource_management nodes have direct access to the external network.
Enter n (no) when prompted to install LSF locally.