| 5 | | $ wget http://www.clusterresources.com/downloads/torque/torque-2.3.6.tar.gz |
| 6 | | $ tar zxvf torque-2.3.6.tar.gz |
| 7 | | $ cd torque-2.3.6/ |
| 8 | | ~/torque-2.3.6$ |
| | 5 | ~$ wget http://www.clusterresources.com/downloads/torque/torque-2.3.6.tar.gz |
| | 6 | ~$ tar zxvf torque-2.3.6.tar.gz |
| | 7 | ~$ cd torque-2.3.6/ |
| | 8 | ~/torque-2.3.6$ ./configure --prefix=/opt/pbs |
| | 9 | ~/torque-2.3.6$ make |
| | 10 | ~/torque-2.3.6$ sudo make install |
| | 11 | ~/torque-2.3.6$ sudo make package |
| | 12 | ~/torque-2.3.6$ sudo ./torque-package-clients-linux-x86_64.sh --install --destdir /opt/pbs |
| | 13 | ~/torque-2.3.6$ sudo ./torque-package-mom-linux-x86_64.sh --install --destdir /opt/pbs |
| | 14 | ~/torque-2.3.6$ sudo /opt/pbs/sbin/pbs_server -t create |
| | 15 | ~/torque-2.3.6$ sudo su - |
| | 16 | ~# /opt/pbs/bin/qmgr |
| | 17 | Qmgr: set server operators = root@bio-cluster.ym.edu.tw |
| | 18 | Qmgr: create queue batch |
| | 19 | Qmgr: set queue batch queue_type = Execution |
| | 20 | Qmgr: set queue batch started = True |
| | 21 | Qmgr: set queue batch enabled = True |
| | 22 | Qmgr: set server default_queue = batch |
| | 23 | Qmgr: set server resources_default.nodes = 1 |
| | 24 | Qmgr: set server scheduling = True |
| | 25 | Qmgr: quit |
| | 26 | ~# touch /var/spool/torque/server_priv/nodes |
| | 27 | ~# cat >> /var/spool/torque/server_priv/nodes << EOF |
| | 28 | bio002 |
| | 29 | bio003 |
| | 30 | bio004 |
| | 31 | bio005 |
| | 32 | bio006 |
| | 33 | bio007 |
| | 34 | bio008 |
| | 35 | bio009 |
| | 36 | bio010 |
| | 37 | bio011 |
| | 38 | bio012 |
| | 39 | EOF |
| | 40 | ~# touch /var/spool/torque/mom_priv/jobs/config |
| | 41 | ~# cat >> /var/spool/torque/mom_priv/jobs/config << EOF |
| | 42 | $pbsserver bio-cluster.ym.edu.tw |
| | 43 | $logevent 255 |
| | 44 | EOF |
| | 45 | ~# /opt/pbs/sbin/pbs_mom |
| | 46 | ~# /opt/pbs/bin/qterm -t quick |
| | 47 | ~# /opt/pbs/sbin/pbs_server |
| | 48 | ~# for ((i=2;i<=12;i++)); do rsync -r /var/spool/torque/ /tftpboot/nodes/192.168.129.$i/var/spool/torque/; done |
| | 49 | ~# mkdir .dsh |
| | 50 | ~# cat >> .dsh/machines.list << EOF |
| | 51 | 192.168.129.2 |
| | 52 | 192.168.129.3 |
| | 53 | 192.168.129.4 |
| | 54 | 192.168.129.5 |
| | 55 | 192.168.129.6 |
| | 56 | 192.168.129.9 |
| | 57 | 192.168.129.10 |
| | 58 | 192.168.129.11 |
| | 59 | 192.168.129.12 |
| | 60 | EOF |
| | 61 | ~# dsh -a /opt/pbs/sbin/pbs_mom |