Project

General

Profile

Install Torque » History » Version 1

Amber Herold, 01/08/2014 10:10 AM

1 1 Amber Herold
2
h4. Install TORQUE (OpenPBS) Server on Goby Head Node
3
4
<pre>
5
yum install pdsh-mod-torque torque-server pdsh-mod-torque torque-libs -y 
6
/etc/init.d/pbs_server start
7
/etc/init.d/pbs_sched start
8
</pre>
9
 The last command was giving:
10
<pre>
11
pbs_sched: LOG_ERROR::Cannot assign requested address (99) in main, bind
12
</pre>
13
After Googling for answer found this http://www.supercluster.org/pipermail/torqueusers/2009-May/009101.html and changed /etc/sysconfig/network to:
14
<pre>
15
NETWORKING=yes
16
NETWORKING_IPV6=no
17
HOSTNAME=goby.amigroup.scripps.edu
18
GATEWAY=137.131.204.1
19
</pre>
20
Then restarted pbs_server and pbs_sched. Encounter another problem: 
21
<pre>[root@goby ~]# pbsnodes
22
munge: Error: Unable to access "/var/run/munge/munge.socket.2": No such file or directory
23
pbsnodes: Invalid credential
24
</pre>
25
Run the following commands to fix this:
26
<pre>
27
create-munge-key
28
chkconfig munge on
29
/etc/init.d/munge start
30
</pre>
31
 * Copy "nodes":https://emg.nysbc.org/attachments/2496/nodes to goby:/var/lib/torque/server_priv and restart /etc/init.d/pbs_server.
32
<pre>
33
[root@goby ~]# cd ~
34
[root@goby ~]# cat > safadmin
35
#!/bin/sh
36
37
for node in `cat  /var/lib/torque/server_priv/nodes |awk {'print $1'}`
38
do
39
  echo "Executing on $node"
40
  ssh -oStrictHostKeyChecking=no  $node $@
41
done
42
[root@goby ~]# chmod +x safadmin 
43
[root@goby ~]# ./safadmin ls
44
</pre>
45
This adds RSA key for nodes to the list of known hosts.