HP XC System Software Administration Guide Version 3.2

# pdsh -a -x xc[1-6] "touch /var/lsf/lsfslurm"
Change the file name in the setup files by executing the following sed commands:
# sed -e "s?/etc/hptc-release?/var/slurm/lsfslurm?g" \
< profile.lsf.notxc > profile.tmp
# sed -e "s?/etc/hptc-release?/var/slurm/lsfslurm?g" \
< cshrc.lsf.notxc > cshrc.tmp
Verify that only the filename changed:
# diff profile.tmp profile.lsf.notxc
120c120
< # Currently we only check for HP-hptc: /var/slurm/lsfslurm
---
> # Currently we only check for HP-hptc: /etc/hptc-release
127c127
< _slurm_signature_file="/var/slurm/lsfslurm"
---
> _slurm_signature_file="/etc/hptc-release"
# diff cshrc.tmp cshrc.lsf.notxc
266c266
< if ( -f /var/slurm/lsfslurm ) then
---
> if ( -f /etc/hptc-release ) then
Replace the old file with the new file:
# mv -f profile.tmp profile.lsf.notxc
# mv -f cshrc.tmp cshrc.lsf.notxc
6. Add the host names of the new LSF execution hosts to the LSF_SERVER_HOSTS parameter
in the lsf.conf file.
For the example, the newLSF_SERVER_HOSTS entry resembles the following:
LSF_SERVER_HOSTS="lsfhost.localdomain xc1 xc2 xc3 xc4 xc5 xc6"
7. Create a custom startup script for Standard LSF
This startup script will run on every node, so it needs to be selective and operate only on
the nodes on which standard LSF is desired.
a. Create the following script in /opt/hptc/lsf/etc/slsf and edit it to contain your
"fat" nodes:
#!/bin/bash
#
# chkconfig: 345 99 01
# description: standard LSF daemon management
# processname: slsf
# source LSF
. /opt/hptc/lsf/top/conf/profile.lsf.notxc
# valid hosts for standard LSF on this cluster
hosts="xc1 xc2 xc3 xc4 xc5 xc6"
hostname=`hostname`
valid=0 for i in $hosts; do
if [ "$hostname" = "$i" ]; then
valid=1
fi
done
if [ "$valid" = "0" ]; then
exit 0
fi
lsf_daemons "$1"
b. Save the file and exit the text editor.
B.4 Instructions 305