0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

CentOS 6でTorqueのセットアップ

Last updated at Posted at 2020-05-26

ジョブスケジューラとしてtorqueを使用します。
torqueをyumから利用するにはEPELレポジトリの追加が必要です。
下記のようにインストール、設定します。

$ su -
$ rpm -Uvh http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
$ yum install --enablerepo=epel torque-server torque-client torque-mom torque-scheduler
$ /usr/sbin/create-munge-key
$ hostname > /etc/torque/server_name
$ pbs_server -t create

この後、qmgr.txtを次のように編集します。

create queue L0 queue_type = execution
set queue L0 enabled = true
set queue L0 started = true
set server default_queue = L0
set server scheduling = true
set queue L0 resources_max.ncpus = 12 # ←12コアの場合
set queue L0 resources_max.nodes = 1

続けて、以下のように操作します。

$ service trqauthd start
$ qmgr < qmgr.txt
$ echo `hostname` "np=12 num_node_boards=1" > /var/lib/torque/server_priv/nodes
$ sed -i.bak s/localhost/`hostname`/g /var/lib/torque/mom_priv/config
$ echo "nodes=1" > /var/lib/torque/mom_priv/mom.layout
$ service pbs_server restart
$ service pbs_mom restart
$ service pbs_sched restart
$ chkconfig pbs_mom on
$ chkconfig pbs_sched on
$ chkconfig pbs_server on
$ chkconfig munge on
$ chkconfig trqauthd on
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?