Building an HPC Cluster on Gentoo

Install Torque and OpenMPI

USE=”server” emerge torque
USE=”openpbs” emerge openmpi

Configure Torque

‘pbs_server -t create’

rocky sbin # qmgr
Max open servers: 4
Qmgr: set server operators = root@localhost;
Qmgr: create queue batch
Qmgr: set queue batch queue_type = Execution
Qmgr: set queue batch started = True
Qmgr: set queue batch enabled = True
Qmgr: set server default_queue = batch
Qmgr: set server resources_default.nodes = 1
Qmgr: set server scheduling = True
Qmgr: quit
rocky sbin #

Now kill the pbs_server
‘killall -9 pbs_server’

Add lines per machines and CPUs here (I have 8 CPUs in localhost)
echo “localhost np=8” > /var/spool/torque/server_priv/nodes

Set your machine name (Rocky for me)
echo “rocky” > /var/spool/torque/server_name

Configure each node (Localhost for me)
nano /var/spool/torque/mom_priv/config

Add this content:

##################
arch x86
opsys Gentoo
$logevent 255
##################

Now start the server
/etc/init.d/pbs_server restart
/etc/init.d/pbs_mom restart

(You might get errors regarding pbs_server or pbs_mom allready running, just kill them.)

Now onto MAUI

Add ACCEPT_KEYWORDS=”~x86″ to /etc/make.conf

Download maui-3.3.tar.gz from http://www.clusterresources.com/product/maui/ (Requires registration)

put maui-3.3.tar.gz into /usr/portage/distfiles
emerge maui

Remove ACCEPT_KEYWORDS=”~x86″ from /etc/make.conf

References:
http://www.gentoo-wiki.info/HOWTO_Torque/Maui_-_grid_scheduler_and_resource_manager#Configuration

Leave a Reply

Your email address will not be published. Required fields are marked *


+ 3 = nine