Basic Configuration of Platform LSF 10.1

Step 1: Prelimary Steps (Suggestion)

  1. Setup a NFS Shared Directory for the final installed destination of the setup (/opt/lsf)
  2. Use a NFS Shared Directory perhaps /usr/local to put the tar file so that the installation file can be placed in the future for client nodes (/usr/local/lsf_install)
  3. Make sure your /etc/hosts are configured correctly and selinux disabled

Step 2: Untar the LSF Tar file (lsfshpc10.1-x86_64.tar.gz).

# tar -zxvf lsfshpc10.1-x86_64.tar.gz

You will have a folder called lsfshpc10.1-x86_64.

Step 3: Navigate to lsfshpc10.1-x86_64/lsf.
You should have 2 following files

lsf10.1_linux2.6-glibc2.3-x86_64.tar.Z (LSF Distribution Package)
lsf10.1_lsfinstall_linux_x86_64.tar.Z (LSF Installation File)

Step 4: Unpack the LSF Installation File

# tar -zxvf lsf10.1_lsfinstall_linux_x86_64.tar.Z

Step 5: Edit the Install.

# vim /usr/local/lsf_install/lsfshpc10.1-x86_64/lsf/lsf10.1_lsfinstall/install.config

Critical “Field”. Suggested

LSF_TOP="/opt/lsf" (line 43)
LSF_ADMINS="lsfadmin admin" (line 53)
LSF_CLUSTER_NAME="mycluster" (line 70)
LSF_MASTER_LIST="h00" (line 85)
LSF_TARDIR="/opt/lsf/lsf_distrib/" (line 95 - where you have placed the distribution)
CONFIGURATION_TEMPLATE="PARALLEL" (line 106)
LSF_ADD_CLIENTS="h00 c00" (line 165)
LSF_QUIET_INST="N" (line 193)
ENABLE_EGO="N" (line 290)

Step 6: Install using lsfinstall

# /usr/local/lsf_install/lsfshpc10.1-x86_64/lsf/lsf10.1_lsfinstall/lsfinstall -f install.config

Step 7: Follow the instruction and agree on the terms and conditions

Step 8: Create a file and Source the profile.lsf

# touch /etc/profile.d/lsf.sh

Inside the lsf.sh, put in the following line

source /opt/lsf/conf/profile.lsf

Step 9: Create the user lsfadmin

# useradd -d /home/lsfadmin -g users -m lsfadmin

Step 10: Client Host setup

Copy /etc/profile.d/lsf.sh to the client’s /etc/profile.d/lsf.sh

# scp /etc/profile.d/lsf.sh remote_node:/etc/profile.d/

Do host-setup

# cd /usr/local/lsf_install/lsfshpc10.1-x86_64/lsf/lsf10.1_lsfinstall/
# ./hostsetup --top="/opt/lsf" --boot="y"

Step 11: Restart the LSF services on the clients

# service lsf restart

Step 12: Restart the service on the headnode.

# lsadmin reconfig
# badmin mbdrestart

Step 13: Test the cluster with basic LSF Commands.
run the lsid, lshosts, and bhosts commands and see whether there are outputs.

 

References: 

  1. Installing IBM Platform LSF on UNIX and Linux
  2. Common LSF problems

 

Managing MATLAB Users using MLM options for FlexLM

Step 1: Create a file to mlm.opt

Step 2: Edit your license.dat file

SERVER myMATLABLicense 00000000000000009
DAEMON MLM "/usr/local/MATLAB/R2016b/etc/MLM" port=1708 options="/usr/local/MATLAB/R2016b/etc/mlm.opt"
.....
.....

Step 3: Prepare mlm.opt

# Make user names and host names case insensitive when
# listed in a GROUP or HOST_GROUP.  This is not
# required but it is here to prevent some common errors.
GROUPCASEINSENSITIVE ON


# Define GROUP Users
GROUP MATLAB_BLOCK_USERS user1 user2 user3
GROUP MATLAB_INC_USERS user4 user5 user6


# EXCLUDE Users from MATLAB and selected Toolboxes
EXCLUDE "MATLAB asset_info=111111" GROUP MATLAB_BLOCK_USERS
EXCLUDE "Image_Toolbox asset_info=111111" GROUP MATLAB_BLOCK_USERS
EXCLUDE "Signal_Toolbox asset_info=111111" GROUP MATLAB_BLOCK_USERS


# RESERVE for selected for user1
RESERVE 1 "SIMULINK asset_info=111111" USER user1


# Restrict the number of licenses that can be used on machine "server1"
MAX 4 "MATLAB asset_info=111111" HOST server1


# To exclude ALL features 
EXCLUDEALL GROUP MATLAB_BLOCK_USERS


#Includes a user or pre-defined group of users, etc.
#Anyone not in an INCLUDEALL statement is not allowed to use these features. 
INCLUDEALL GROUP MATLAB_INC_USERS

References:

  1. https://www.mathworks.com/matlabcentral/answers/uploaded_files/2331/sampleMLM.opt
  2. The Options File
  3. Is there a way to administer FLEXnet based licenses? How do I create an Options file?