Switch the LSF cluster associated with IBM Spectrum LSF Application Center

IBM Spectrum LSF Application Center is associated with a specific LSF® cluster. In some cases, you may want to switch the LSF cluster associated with IBM Spectrum LSF Application Center. You can use the command switchlsf to change IBM Spectrum LSF Application Center files to point to a new LSF cluster.

Before you begin

Prerequisites for switching the LSF cluster:
  • Ensure IBM Spectrum LSF Application Center hosts belong to the new LSF cluster.
  • Check that your new LSF cluster has read/write permissions for the job repository defined in $GUI_CONFDIR/Repository.xml

Procedure

  1. Log on to the IBM Spectrum LSF Application Center host as root.
  2. Set the IBM Spectrum LSF Application Center environment:
    • For csh or tcsh:
      % source /opt/pac/cshrc.platform
    • For sh, ksh, or bash:
      $ . /opt/pac/profile.platform
  3. Stop IBM Spectrum LSF Application Center services.
    
    perfadmin stop all
    pmcadmin stop
  4. Use the command switchlsf and specify the LSF_ENVDIR directory of the new cluster with which to associate IBM Spectrum LSF Application Center.

    For example, if your new cluster has the LSF_ENVDIR of /usr/share/lsf/conf, specify:

    switchlsf -d /usr/share/lsf/conf
    Note: If you have Process Manager installed, you will also need to use -p and specify the location of the Process Manager JS_ENVDIR in the new cluster.
    Important: If High Availability is enabled, you will need to run switchlsf on each IBM Spectrum LSF Application Center instance. Otherwise, High Availability cannot work properly.
    The script makes the required changes to IBM Spectrum LSF Application Center files to point to the new cluster.
  5. Open a new shell terminal as environment variables have changed.
  6. As root, set your IBM Spectrum LSF Application Center environment.
    • csh or tcsh:
      % source /opt/pac/cshrc.platform
    • sh, ksh, or bash:
      $ . /opt/pac/profile.platform
    Note: The environment for your new LSF cluster is automatically set when you set the Platform Application Center environment.
  7. Start IBM Spectrum LSF Application Center services.
    
    perfadmin start all
    pmcadmin start
  8. Log in to IBM Spectrum LSF Application Center, and check that you can see the management host for the new cluster in the Resources tab.