Download Torque:
- http://www.adaptivecomputing.com/download/torque/torque-5.0.0-1_43d8f09a.tar.gz
- http://www.adaptivecomputing.com/download/mauischeduler/maui-3.3.1.tar.gz
- NOTE: You will need an account to download maui from adaptivecomputing.com
On the RocksCluster Headnode -
- As root move to the directory containing the tar files for torque.
- Execute the following commands to change the folder/package name
- Copy torque-5.0.0-1_43d8f09a.tar.gz to /tmp and extract
- tar xvf torque-5.0.0-1_43d8f09a.tar.gz
- mv torque-5.0.0-1_43d8f09a torque-5.0.0
- tar czvf torque-5.0.0.tar.gz torque-5.0.0
- rm -rf torque-5.0.0-1_43d8f09a torque-5.0.0
- tar xvf torque-5.0.0.tar.gz
- yum --enablerepo=base install boost-devel
- cd ./torque-5.0.0
- ./configure
- make
- make install
- cp contrib/init.d/trqauthd /etc/init.d/
- cp contrib/init.d/pbs_server /etc/init.d/
- chkconfig --add trqauthd
- chkconfig --add pbs_server
- echo /usr/local/lib > /etc/ld.so.conf.d/torque.conf
- ldconfig
- service trqauthd start
- Verify /var/spool/torque/server_name exists with the server hostname
- Run Torque.Setup
- ./torque.setup root
- qterm
- pbs_server
- qmgr -c 'p s'
- Make client packages
- Install rpmbuild
- yum --enablerepo=base install rpmdevtools rpmlint
- Switch to a regular user account and run
- rpmdev-setuptree
- Build Torque RPMS
- Switch to a regular user account and run
- rpmbuild -tb /tmp/torque-5.0.0.tar.gz
- Switch to root and run move the following RPMS from /state/partition1/home/<user_name>/rpmbuild/RPMS/x86_64/ to /export/rocks/install/contrib/6.1.1/x86_64/RPMS
- torque-5.0.0-1.adaptive.el6.x86_64.rpm
- torque-client-5.0.0-1.adaptive.el6.x86_64.rpm
- Create extend-compute.xml
- In the /export/rocks/install/site-profiles/6.1.1/nodes run the following
- cp skeleton.xml extend-compute.xml
- Edit the extend-compute.xml file
- In the packages section add
- <package>torque</package>
- <package>torque-client</package>
- In the post section add
- echo <your_hostname.local> > /var/spool/torque/server_name
- echo <your_hostname.yourdomain> > /var/spool/torque/mom_priv/config
- Create distro
- cd to /export/rocks/install
- Run the following
- rocks create distro
- As root move to the directory containing the tar files for maui.
- Execute the following commands
- tar xvf maui.3.3.1.tar.gz
- cd maui.3.3.1
- ./configure
- make
- make install
- Move the following files
- mv /usr/local/maui/sbin/* /usr/local/sbin
- mv /usr/local/maui/bin/* /usr/local/bin
- rmdir /usr/local/maui/sbin /usr/local/maui/bin
- cp /tmp/maui-3.3.1/etc/maui.d /etc/init.d/maui
- Verify the following
- /etc/init.d/maui
- MAUI_PREFIX=/usr/local
- Run the following
- chkconfig --add maui
- service maui start
- Reboot the head node
- Follow compute node provisioning from Installing Rocks Cluster
- Run the following for each node
- qmgr -c 'create node compute-<x-x>.local np=<number_of_processors>'
- pbsnodes -c <compute-<x-x>.local
- Reboot the head node then compute nodes
Create Test Job:
- As a user create a test job called sleep.job with execute permissions and the following text inside
#!/bin/shRun Test Job:
for i in `seq 1 60` ; do
echo $i
sleep 1
done
- Run the following
- qsub sleep.job
- Executing qstat should show the job in the queue
- As root diagnose -n / pbsnodes -a should both show the nodes
- After ~1 Min the files sleep.job.e<job_number> and sleep.job.o<job_number> should appear in the same directory sleep.job is located in.
- sleep.job.e<job_number> should be empty
- sleep.job.o<job_number> should have seq 1 60 in it