2018年3月16日 星期五

Torque 安裝(torque-6.1.2)

1.作業系統環境 CentOS Linux release 7.4.1708 (Core)  Minimal 安裝

2.相關開發軟體安裝
yum install -y libtool openssl-devel libxml2-devel gcc gcc-c++ make boost-devel wget libcgroup-tools

3.安裝 hwloc 1.9.1
yum remove hwloc -y
wget https://www.open-mpi.org/software/hwloc/v1.9/downloads/hwloc-1.9.1.tar.gz
tar -xzvf hwloc-1.9.1.tar.gz
cd hwloc-1.9.1
./configure
make
make install
echo /usr/local/lib >/etc/ld.so.conf.d/hwloc.conf
ldconfig
cd $OLDPWD

4.安裝 torque (預設環境變數 /var/spool/torque/)
wget http://wpfilebase.s3.amazonaws.com/torque/torque-6.1.2.tar.gz
tar -xzvf torque-6.1.2.tar.gz
cd torque-6.1.2
./configure --enable-cgroups --with-hwloc-path=/usr/local
make
make install
./torque.setup root

systemctl start pbs_server
systemctl enable pbs_server

systemctl start pbs_mom
systemctl enable pbs_mom

systemctl enable trqauthd
systemctl start trqauthd

systemctl start  pbs_sched
systemctl start pbs_sched

5.建立 Torque Package 提供 運算節點軟體安裝
make packages
產生
torque-package-clients-linux-x86_64.sh
torque-package-devel-linux-x86_64.sh
torque-package-doc-linux-x86_64.sh
torque-package-mom-linux-x86_64.sh
torque-package-server-linux-x86_64.sh

6.設定
編輯 /var/spool/torque/server_priv/nodes 內容如下
headnode
n1
n2

編輯 /var/spool/torque/mom_priv/config  內容如下
$pbsserver      headnode
$logevent       225

7建立 queue
qmgr -c "create queue dque queue_type=execution"
qmgr -c "set server default_queue=dque"
qmgr -c "set queue dque started=true"
qmgr -c "set queue dque enabled=true"
qmgr -c "set server scheduling=true"

8.測試
pbsnode -a
echo test | qsub

沒有留言: