Changes between Version 3 and Version 4 of Software/eTutorialSupport


Ignore:
Timestamp:
May 16, 2016, 11:02:43 PM (9 years ago)
Author:
ffund01
Comment:

Info about setting up PBS

Legend:

Unmodified
Added
Removed
Modified
  • Software/eTutorialSupport

    v3 v4  
    22
    33[[TOC(Software/*, depth=1)]]
     4
     5
     6== Set up torque/PBS ==
     7
     8'''This section describes how to set up torque PBS. If it's already set up, skip this section.
     9'''
     10First, we install the torque PSB system:
     11
     12
     13{{{
     14apt-get install torque-server torque-scheduler torque-mom torque-client
     15}}}
     16
     17Then stop all the running torque processes:
     18
     19
     20{{{
     21/etc/init.d/torque-mom stop
     22/etc/init.d/torque-scheduler stop
     23/etc/init.d/torque-server stop
     24}}}
     25
     26Create the PBS server (say "yes" when prompted):
     27
     28
     29{{{
     30pbs_server -t create
     31}}}
     32
     33Then kill the PBS server process:
     34
     35{{{
     36killall pbs_server
     37}}}
     38
     39Set up the PBS server:
     40
     41
     42{{{
     43echo $(hostname -f) > /etc/torque/server_name
     44echo $(hostname -f) >  /var/spool/torque/server_priv/acl_svr/acl_hosts
     45echo $(hostname -f) > /var/spool/torque/mom_priv/config
     46
     47echo root@$(hostname -f) > /var/spool/torque/server_priv/acl_svr/operators
     48echo root@$(hostname -f) > /var/spool/torque/server_priv/acl_svr/managers
     49
     50echo "$(hostname -f) np=4" > /var/spool/torque/server_priv/nodes
     51}}}
     52
     53If you have a line in your /etc/hosts file that resolves your hostname to 127.0.1.1, you have to comment it out, e.g.
     54
     55
     56{{{
     57#127.0.1.1  console.grid.orbit-lab.org  console
     58}}}
     59
     60Once you've done that, start everything back up again:
     61
     62
     63{{{
     64/etc/init.d/torque-server start
     65/etc/init.d/torque-scheduler start
     66/etc/init.d/torque-mom start
     67}}}
     68
     69Now we'll set up some configuration values:
     70
     71
     72{{{
     73qmgr -c "set server scheduling = True"
     74qmgr -c "set server acl_host_enable = True"
     75qmgr -c "set server acl_hosts = $(hostname -f)"
     76qmgr -c "set server allow_node_submit = True"
     77}}}
     78
     79You'll have to run the commands above as root, since you've set up the root user as the only PBS operator and manager.