Difference between revisions of "Ubuntu HPC Setup PBS master on master node"
From Notes_Wiki
m |
m |
||
Line 25: | Line 25: | ||
PBS_LEAF_NAME=<master-hostname> | PBS_LEAF_NAME=<master-hostname> | ||
</source> | </source> | ||
#: Here '<tt>PBS_START_MOM=0</tt>' 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 '<tt>PBS_START_MOM=1</tt>' and also master should be part of node list '<tt>/var/spool/pbs/server_priv/nodes</tt>'. | |||
#Set the environment | #Set the environment | ||
#:<pre> | #:<pre> |
Latest revision as of 10:04, 28 February 2023
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:
- Install postgresql
- apt install postgresql postgresql-server-dev-all postgresql-contrib
- 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
- 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'.
- Set the environment
- source /etc/profile.d/pbs.sh
- source /etc/pbs.conf
- Enter master hostname in /var/spool/pbs/mom_priv/config file
- $clienthost <rocks-master-hostname> //Ex: master
- In pbs server, needs to specify all the compute/gpu nodes in /var/spool/pbs/server_priv/nodes
- node1
- node2
- Start and enable pbs
- systemctl start pbs
- systemctl enable pbs
Home > Ubuntu > HPC setup with openpbs and openmpi > Setup PBS master on master node