Installing Standard LSF on HP XC
[root@n16 lsf]# ln -s /opt/hptc/lsf/install/6.1 6.1
7. Verify that the log directory is empty:
[root@n16 lsf]# ls log
[root@n16 lsf]# rmdir log
[root@n16 lsf]# pdsh -a mkdir -p /var/log/lsf
[root@n16 lsf]# pdsh -a chown lsfadmin /var/log/lsf
[root@n16 lsf]# ln -s /var/log/lsf log
8. The /var/log/lsf location is created cluster-wide. The /var/log directory is not maintained
by System Imager because of its node-local nature (System Imager must not be configured to
destroy the actual node-specific logs on each node during execution of an updateclient
command).
9. The final layout of LSF_TOP appears as follows:
[root@n16 lsf]# ls -l
total 12
lrwxrwxrwx 1 root root 25 May 19 13:34 6.1 -> /opt/hptc/lsf/install/6.1
drwxr-xr-x 3 lsfadmin root 4096 May 17 15:56 conf
drwx------ 4 lsfadmin lsfadmin 4096 May 16 08:22 home
lrwxrwxrwx 1 root root 12 May 19 13:34 log -> /var/log/lsf
drwxr-xr-x 3 lsfadmin root 4096 May 17 15:33 work
10. To correct a problem with LSF V6.0 and v6.1, you must edit the environment setup files. The
profile.lsf and cshrc.lsf LSF environment setup files look for the XC system file
/etc/hptc-release, and if found they assume that LSF-HPC for SLURM was installed. To fix
this problem , use the following commands to cause LSF to search t for a non-existent file:
[root@n16 lsf6.1_lsfinstall]# cd /hptc_cluster/lsf/conf
[root@n16 conf]# mv profile.lsf profile.lsf.orig
[root@n16 conf]# mv cshrc.lsf cshrc.lsf.orig
[root@n16 conf]# sed -e "s?/etc/hptc-release?/var/lsf/lsfslurm?g" \
< profile.lsf.orig > profile.lsf
[root@n16 conf]# sed -e "s?/etc/hptc-release?/var/lsf/lsfslurm?g" \
< cshrc.lsf.orig > cshrc.lsf
In the preceding example, /var/lsf/lsfslurm is used as the non-existent file in anticipation
of a correction planned for LSF V6.2 and beyond.
11. Once done, source the appropriate command as follows:
root@n16 conf]# . profile.lsf
12. Optionally, add LSF paths to the default environment upon login as follows:
a. For csh users, create /etc/profile.d/lsf.csh with the following contents
(be sure to substitute /hptc_cluster/lsf with your LSF_TOP):
if ( "${path}" !~ *-slurm/etc* ) then
if ( -f /hptc_cluster/lsf/conf/cshrc.lsf ) then
source /hptc_cluster/lsf/conf/cshrc.lsf
endif
endif
b. For bash and other sh-based users, create /etc/profile.d/lsf.sh with the
following contents (be sure to substitute /hptc_cluster/lsf with your
LSF_TOP).
[root@xc128 profile.d]# cat lsf.sh