First download the latest torque release from the adaptive
computing website or via command line :
wget http://www.adaptivecomputing.com/download/torque/torque-5.1.0-1_4048f77c.tar.gz
tar -xzvf torque-5.1.0-1_4048f77c.tar.gz
cd torque-5.1.0
[root]# vi /etc/sysconfig/SuSEfirewall2 # Add the following ports to the FW_SERVICES_EXT_TCP parameter as required # Needed on the TORQUE server for client and MOM communication FW_SERVICES_EXT_TCP="15001" # Needed on the TORQUE MOM for server and MOM communication FW_SERVICES_EXT_TCP="15002 15003" [root]# service SuSEfirewall2_setup restart
./configure --without-tcl
(error reported: torque needs Boost,install it in the default location /usr/local --sucessful ready for 'make')
make
make install
make packages
you should have the following:
torque-package-doc-linux-x86_64.sh torque.setup torque-package-clients-linux-x86_64.sh torque-package-mom-linux-x86_64.sh torque_setup.sh torque-package-devel-linux-x86_64.sh torque-package-server-linux-x86_64.sh torque-package-pam-linux-x86_64.sh torque.spec
cp contrib/init.d/* /etc/init.d/
systemctl start trqauthd
(failed it needs more modification.
0. mkdir /etc/rc.d/init.d
1. cp -a /etc/rc.status /etc/rc.d/init.d/functions
2. nano /etc/init.d/trqauthd
substitue daemon with start_daemon
) restart it goes well
chkconfig trqauthd on
make sure the file /var/spool/torque/server_name contain the hostname of the server.Initialize serverdb by executing the torque.setup script
./torque.setup rootAdd nodes to the /var/spool/torque/server_priv/nodes
teacher01 np=2
teacher02 np=12
....
.....
chkconfig pbs_server on
systemctl start pbs_server
scp -pr contrib/init.d teacher02:/etc/
scp -pr contrib/init.d teacher03:/etc/
for i in node01 node02 node03 node04 ; do ssh ${i} /tmp/torque-package-mom-linux-i686.sh --install ; done> for i in node01 node02 node03 node04 ; do ssh ${i} /tmp/torque-package-clients-linux-i686.sh --install ; donevi /var/spool/torque/mom_priv/config$pbsserver headnode # hostname running pbs server$logevent 225 # bitmap of which events to logcopy the file to all the nodesservice pbs_mom restartpdsh -R ssh -w teacher02,teacher03,teacher04,teacher05,teacher06,teacher07,teacher08,teacher09 chkconfig pbs_mom onnano /etc/init.d/pbs_mom (substitue daemon with start_daemon)
pdsh -R ssh -w teacher02,teacher03,teacher04,teacher05,teacher06,teacher07,teacher08,teacher09 mkdir /etc/rc.d/init.d/
pdsh -R ssh -w teacher02,teacher03,teacher04,teacher05,teacher06,teacher07,teacher08,teacher09 cp -a /etc/rc.status /etc/rc.d/init.d/function
pdsh -R ssh -w teacher03,teacher04,teacher05,teacher06,teacher07,teacher08,teacher09 systemctl start pbs_mom
export PATH=/usr/local/bin/:/usr/local/sbin/:$PATHqterm pbs_server pbsnodes -a
teacher01
state = down
power_state = Running
np = 2
ntype = cluster
mom_service_port = 15002
mom_manager_port = 15003
teacher02
state = down
power_state = Running
np = 12
ntype = cluster
mom_service_port = 15002
mom_manager_port = 15003
teacher03
state = down
power_state = Running
np = 12
ntype = cluster
mom_service_port = 15002
mom_manager_port = 15003
teacher04
state = down
power_state = Running
np = 12
ntype = cluster
mom_service_port = 15002
mom_manager_port = 15003
teacher05
state = free
power_state = Running
np = 12
ntype = cluster
status = rectime=1428546497,macaddr=f0:4d:a2:75:52:a3,cpuclock=Fixed,varattr=,jobs=,state=free,netload=174352799,gres=,l oadave=0.00,ncpus=24,physmem=49510168kb,availmem=51070860kb,totmem=51607316kb,idletime=356069,nusers=2,nsessions=2,sessions=1 819 10578,uname=Linux teacher05 3.11.6-4-desktop #1 SMP PREEMPT Wed Oct 30 18:04:56 UTC 2013 (e6d4a27) x86_64,opsys=linux
mom_service_port = 15002
mom_manager_port = 15003
teacher06
state = down
power_state = Running
np = 12
ntype = cluster
mom_service_port = 15002
mom_manager_port = 15003
teacher07
state = down
power_state = Running
np = 12
ntype = cluster
mom_service_port = 15002
mom_manager_port = 15003
teacher08
state = down
power_state = Running
np = 12
ntype = cluster
mom_service_port = 15002
mom_manager_port = 15003
teacher09
state = down
power_state = Running
np = 12
ntype = cluster
mom_service_port = 15002
mom_manager_port = 15003
teacher10
state = down
power_state = Running
np = 12
ntype = cluster
mom_service_port = 15002
mom_manager_port = 15003
teacher11
state = down
power_state = Running
np = 12
ntype = cluster
mom_service_port = 15002
mom_manager_port = 15003
teacher12
state = down
power_state = Running
np = 12
ntype = cluster
mom_service_port = 15002
mom_manager_port = 15003
https://ztdep.blogspot.com/2015/03/install-torque-51-on-opensuse-131.html
Post a Comment