当前位置:文档之家› pbs torque 安装过程

pbs torque 安装过程

单机安装torque PBS过程
(广石化应用物理系 XU)
去torque官网下载安装包,以最新的6.1.1为例。

使用系统为最新的centos7。

首先设置 hostname。

Vi /etc/hosts
修改成如下:(我的hostname是wuzhou509)
127.0.0.1 wuzhou509 wuzhou509 localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 Vi /etc/hostname
修改成wuzhou509
然后,重新登录。

输入命令 hostname ,看是否修改成功。

解压torque
./configure (如果要改目录,在这里加参数)
Make
Make install
如何提示缺少/etc/lib/ld 那是因为有些依赖包没装。

∙libxml2-devel package (package name may vary)
∙openssl-devel package (package name may vary)
∙Tcl/Tk version 8 or later if you plan to build the GUI portion of TORQUE or use a Tcl based scheduler
∙If your configuration uses cpusets, you must install libhwloc; the corresponding hwloc-devel package is also required. See 4.6 Linux Cpuset Support.
用 yum install libtool openssl-devel libxml2-devel boost-devel gcc gcc-c++
安装上面的东西。

安装完成后。

设置。

Red Hat 6-based systems
[root]# cp contrib/init.d/trqauthd /etc/init.d/
[root]# chkconfig --add trqauthd
[root]# echo /usr/local/lib > /etc/ld.so.conf.d/torque.conf
[root]# ldconfig
[root]# service trqauthd start
SUSE 11-based systems
[root]# cp contrib/init.d/suse.trqauthd /etc/init.d/trqauthd
[root]# chkconfig --add trqauthd
[root]# echo /usr/local/lib > /etc/ld.so.conf.d/torque.conf
[root]# ldconfig
[root]# service trqauthd start
Red Hat 7-based and SUSE 12-based systems
[root]# cp contrib/systemd/trqauthd.service /usr/lib/systemd/system/
[root]# systemctl enable trqauthd.service
[root]# echo /usr/local/lib > /etc/ld.so.conf.d/torque.conf
[root]# ldconfig
[root]# systemctl start trqauthd.service
接下来继续:
1.Verify that the /var/spool/torque/server_name file exists and contains
the correct name of the server.
[root]# echo <pbs_server's_hostname>>/var/spool/torque/server_name
2.By default, TORQUE installs all binary files
to /usr/local/bin and /usr/local/sbin. Make sure the path environment variable includes these directories for both the installation user and the root user.
[root]# export PATH=/usr/local/bin/:/usr/local/sbin/:$PATH
3.Initialize serverdb by executing the torque.setup script.
[root]# ./torque.setup root
这一步如果出错,检查hostname是否按照上面修改hosts
新建 /var/spool/torque/server_priv/nodes
内容为:wuzhou509 np=32 all
新建/var/spool/torque/mom_priv/config 内容为:
$pbsserver wuzhou509 # hostname running pbs server
$logevent 225 # bitmap of which events to log
修改walltime
qmgr-c "set queue batch resources_default.walltime=900:00:00"
然后qterm
填加自动启动:
* If RHEL distribution, do the following *
[root]# cp contrib/init.d/pbs_server contrib/init.d/pbs_mom contrib/init.d/pbs_sched /etc/init.d
[root]# chkconfig --add pbs_server
[root]# chkconfig --add pbs_sched
[root]# chkconfig --add pbs_mom
[root]# service pbs_server restart
[root]# service pbs_sched restart
[root]# service pbs_mom start
完成。

相关主题