Ubuntu HPC Setup PBS master on master node

From Notes_Wiki

Home > Ubuntu > HPC setup with openpbs and openmpi > Setup PBS master on master node

To setup OpenPBS master on HPC master node use following steps:

  1. Install postgresql
    apt install postgresql postgresql-server-dev-all postgresql-contrib
  2. Download and install PBS using:
    cd /export/apps/temp
    wget https://github.com/openpbs/openpbs/releases/download/v20.0.1/openpbs_20.0.1.ubuntu_1804.zip
    unzip openpbs_20.0.1.ubuntu_1804.zip
    cd /export/apps/temp/openpbs_20.0.1.ubuntu_1804/
    dpkg -i openpbs-server_20.0.1-1_amd64.deb
  3. Edit '/etc/pbs.conf' file should be look like below:
    PBS_EXEC=/opt/pbs
    PBS_SERVER=<master-hostname>
    PBS_START_SERVER=1
    PBS_START_SCHED=1
    PBS_START_COMM=1
    PBS_START_MOM=0
    PBS_HOME=/var/spool/pbs
    PBS_CORE_LIMIT=unlimited
    PBS_SCP=/bin/scp
    PBS_LEAF_NAME=<master-hostname>
    Here 'PBS_START_MOM=0' and not having master in nodes list (Point below) ensures that jobs execute only on compute nodes. If we want jobs to execute on master node then we should have 'PBS_START_MOM=1' and also master should be part of node list '/var/spool/pbs/server_priv/nodes'.
  4. Set the environment
    source /etc/profile.d/pbs.sh
    source /etc/pbs.conf
  5. Enter master hostname in /var/spool/pbs/mom_priv/config file
    $clienthost <rocks-master-hostname> //Ex: master
  6. In pbs server, needs to specify all the compute/gpu nodes in /var/spool/pbs/server_priv/nodes
    node1
    node2
  7. Start and enable pbs
    systemctl start pbs
    systemctl enable pbs



Home > Ubuntu > HPC setup with openpbs and openmpi > Setup PBS master on master node