wiki:jazz/09-06-29

Version 4 (modified by jazz, 15 years ago) (diff)

--

2009-06-29

  • [專案] 安裝 OpenPBS - 參考Globus Tutorial: Deploying Torque (Open PBS)
    ~$ wget http://www.clusterresources.com/downloads/torque/torque-2.3.6.tar.gz
    ~$ tar zxvf torque-2.3.6.tar.gz
    ~$ cd torque-2.3.6/
    ~/torque-2.3.6$ ./configure --prefix=/opt/pbs
    ~/torque-2.3.6$ make
    ~/torque-2.3.6$ sudo make install
    ~/torque-2.3.6$ sudo make package
    ~/torque-2.3.6$ sudo ./torque-package-clients-linux-x86_64.sh --install --destdir /opt/pbs
    ~/torque-2.3.6$ sudo ./torque-package-mom-linux-x86_64.sh --install --destdir /opt/pbs
    ~/torque-2.3.6$ sudo /opt/pbs/sbin/pbs_server -t create
    ~/torque-2.3.6$ sudo su -
    ~# /opt/pbs/bin/qmgr
    Qmgr: set server operators = root@bio-cluster.ym.edu.tw
    Qmgr: create queue batch
    Qmgr: set queue batch queue_type = Execution
    Qmgr: set queue batch started = True
    Qmgr: set queue batch enabled = True
    Qmgr: set server default_queue = batch
    Qmgr: set server resources_default.nodes = 1
    Qmgr: set server scheduling = True
    Qmgr: quit
    ~# touch /var/spool/torque/server_priv/nodes
    ~# cat >> /var/spool/torque/server_priv/nodes << EOF
    bio002
    bio003
    bio004
    bio005
    bio006
    bio007
    bio008
    bio009
    bio010
    bio011
    bio012
    EOF
    ~# touch /var/spool/torque/mom_priv/jobs/config
    ~# cat >> /var/spool/torque/mom_priv/jobs/config << EOF
    \$pbsserver    bio-cluster.ym.edu.tw
    \$logevent     255
    EOF
    ~# /opt/pbs/bin/qterm -t quick
    ~# /opt/pbs/sbin/pbs_server
    ~# for ((i=2;i<=12;i++)); do rsync -r /var/spool/torque/ /tftpboot/nodes/192.168.129.$i/var/spool/torque/; done
    ~# mkdir .dsh
    ~# cat >> .dsh/machines.list << EOF
    192.168.129.1
    192.168.129.2
    192.168.129.3
    192.168.129.4
    192.168.129.5
    192.168.129.6
    192.168.129.7
    192.168.129.8
    192.168.129.9
    192.168.129.10
    192.168.129.11
    192.168.129.12
    EOF
    ~# dsh -a /opt/pbs/sbin/pbs_mom
    ~# /opt/pbs/bin/pbsnodes -a