Torque
Installation on master node and compute node
master:######mastername.org
computenode:compute node name
MasterNode:
#ssh-keygen -t rsa
/*password less access*/
#ssh-copy-id aetpl2
#yum install libtool openssl-devel
libxml2-devel boost-devel gcc gcc-c++
#wget
http://wpfilebase.s3.amazonaws.com/torque/torque-5.1.0-1_4048f77c.tar.gz
#tar -zxvf
torque-5.1.0-1_4048f77c.tar.gz
#mv torque-5.1.0-1_4048f77c torque-5.1
#cd torque-5.1
# ./configure
# make
#make install
# cp contrib/init.d/trqauthd
/etc/init.d
#chkconfig --add trqauthd
#echo /usr/local/lib >
/etc/ld.so.conf.d/torque.conf
#ldconfig
#echo aetpl3.org >
/var/spool/torque/server_name
#export
PATH=/usr/local/bin/:/usr/local/sbin/:$PATH
#./torque.setup root
Currently no servers active. Default
server will be listed as active server. Error 15133
Active server name: aetpl3.org
pbs_server port is: 15001
trqauthd daemonized - port
/tmp/trqauthd-unix
trqauthd successfully started
initializing TORQUE (admin:
root@aetpl3.org)
You have selected to start pbs_server
in create mode.
If the server database exists it will
be overwritten.
do you wish to continue y/(n)?y
root 5064 1 0 15:12 ?
00:00:00 pbs_server -t create
Max open servers: 9
set server operators += root@aetpl3.org
Max open servers: 9
#vim
/var/spool/torque/server_priv/nodes
aetpl2.org /*add compute node
name*/
# make packages
# cp contrib/init.d/pbs_server
/etc/init.d
# chkconfig --add pbs_server
#service pbs_server restart
#cp contrib/init.d/pbs_mom /etc/init.d
# chkconfig --add pbs_mom
# service pbs_mom start
#cp contrib/init.d/pbs_sched
/etc/init.d
#chkconfig --add pbs_sched
#service pbs_sched start
#Starting TORQUE Scheduler:
[ OK ]
#scp
torque-package-clients-linux-x86_64.sh
torque-package-mom-linux-x86_64.sh root@aetpl2:/root
#useradd user
#passwd user
#su – user
#ssh-key-gen -t rsa /* password
less user*/
#ssh-copy-id aetpl2@user
#su – user
#mkdir job
#vim test.sh
#!/bin/bash
#PBS -l walltime=00:1:00
#PBS -l nice=19
#PBS -q test
date
sleep 10
date
#qsub test.sh /*job submission*/
#qstat -a /* job status*/
#pbsnodes /*list all nodes*/
Compute nodes:
#cd
#
./torque-package-clients-linux-x86_64.sh --install
Installing TORQUE archive...
Done.
./torque-package-mom-linux-x86_64.sh
--install
Installing TORQUE archive...
# service pbs_mom start
Starting TORQUE Mom:
[ OK ]
# chkconfig pbs_mom on
# scp contrib/init.d/pbs_mom
root@aetpl2:/etc/init.d/
# chkconfig --add pbs_mom
# service pbs_mom start
Starting TORQUE Mom:
[ OK ]
#chkconfig pbs_mom on
#useradd user
#passwd user
#su – user
#ssh-keygen -t rsa /* password less
user*/
#ssh-copy-id aetpl2@user
#su – user
#
No comments:
Post a Comment