Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (No Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 6th July 2012, 01:49 PM
johann Offline
Registered User
 
Join Date: Jul 2012
Location: Virginia, USA
Posts: 3
linuxfirefox
Torque/PBS on Fedora 17 using yum repository.

This took me a little while to figure out, so I've decided to post here for anyone interested in getting a single-node batch scheduling system running on Fedora 17 using torque from the fedora repository. These are really just a bunch of notes I took during the process. I have a dual quad-core machine and this just allows me to make use of idle cores. I could (and did orginially) use the linux "batch" command but some of my jobs are CPU-bound and some are I/O-bound. For the latter, I needed a way to strictly limit the number of concurrent jobs running and torque may be overkill, but I like it just the same. Anywho.... here we go.

Of course, if this doesn't work for you or if there are errors, please let me know. Thanks!

Code:
########################################################################
# first make sure you have no installation of torque or pbs on
# your system (use updatedb/locate for the words torque and pbs)
#
# The setup could be done with sudo everywhere or we could simply
# become root...

su -
yum -y install 'torque*'

USER=<your username (not root)>
HOST=`hostname --long`

# you may have to CTRL+C out of this. Not to worry, the file
# you need is created almost immediately after you run it.
pbs_server -t create

# configure manager/operator user
qmgr -c "set server operators += $USER@$HOST"
qmgr -c "set server managers += $USER@$HOST"

# scheduling options
qmgr -c 'set server scheduling = true'
qmgr -c 'set server keep_completed = 300'

# create the default queue called 'batch'
# this will consist of a single node and
# allow a maximum of 7 jobs to be run at
# one time. This was for a dual quad-core
# desktop machine.
qmgr -c 'create queue batch'
qmgr -c 'set queue batch queue_type = execution'
qmgr -c 'set queue batch started = true'
qmgr -c 'set queue batch enabled = true'
qmgr -c 'set queue batch resources_default.walltime = 72:00:00'
qmgr -c 'set queue batch resources_default.nodes = 1'
qmgr -c 'set queue batch max_running = 7'
qmgr -c 'set server default_queue = batch'

# single host configuration
echo $HOST > /etc/torque/server_name
echo '$pbs_server = '$HOST > /etc/torque/mom/config
echo '$pbs_server = '$HOST > /var/lib/torque/mom_priv/config
echo "$HOST np=8" > /var/lib/torque/server_priv/nodes

# start services
systemctl start pbs_{mom,server,sched}.service

# At this point the torque/pbs scheduler and queue system should
# up and running.
########################################################################








# The following should be run as a user (with operator and manager
# priveleges as set in the commands above).

# check that everything looks Ok
qmgr -c "list server"
qmgr -c "list queue batch"

# test a small job (will not work as root!!)
# we cd into $HOME to ensure we have permission
# to write out the output files.
cd $HOME
qsub << EOF
echo `hostname`
echo "Hi I am a batch job running in torque"
EOF


# Other notes

# to have the services run at boot time, do this:
sudo systemctl enable pbs_{mom,server,sched}.service

# to restart all pbs services use this:
sudo systemctl restart pbs_{mom,server,sched}.service

# I found it's generally OK to allow sendmail to have selinux
# read access to torque's serverdb file when it complains.
Reply With Quote
  #2  
Old 6th July 2012, 02:37 PM
bob Offline
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 69
Posts: 22,142
linuxfirefox
Re: Torque/PBS on Fedora 17 using yum repository.

moved to Guides
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
Reply

Tags
fedora, pbs, repository, torque, yum

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Torque/Maui Installation urilabob Using Fedora 1 3rd May 2014 03:51 PM
PBS/Torque New Installation victorxg Servers & Networking 0 28th June 2012 10:47 PM
Fedora 15 torque bruno.taglienti Installation, Upgrades and Live Media 3 31st October 2011 05:19 PM
Solved: OpenMPI and TORQUE on Fedora Core 10 gwiesenekker Using Fedora 0 5th January 2009 10:34 PM
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Pleas tmick Using Fedora 3 24th August 2008 07:52 PM


Current GMT-time: 10:22 (Tuesday, 23-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat