CE post install

From Begrid Wiki
Jump to navigationJump to search

Computing Element Post-install configuration

Adding the CE to the toplevel BDII

In belnet/site/config_grid.tpl add an entry for the new site to this list

variable TOP_LEVEL_BEGRID_BDII_URLS = nlist( )

Then commit + runcheck

On the top level BDII (voms.begrid.be) wait until /var/log/ncm-cdispd.log gives no error.

Run then the cron script /etc/cron.hourly/toplevel_bdii_script.sh manually (this is a bug and should be solved later)

Check if the new site is correctly listed here:

/opt/bdii/etc/bdii-update.local.conf

and here

/opt/bdii/etc/bdii-update.conf

Adding the CE in the top level bdii

cfg/sites/begrid/site/top_level_bdii.tpl
add this line
  "SiteName","ldap://ce01.yourdomain.be:2170/mds-vo-name=BEgrid-SiteName,o=grid"

on the CE

In variable BDII_URLS = {
	urls = nlist(
		"CE" , "ldap://"+ CE_HOST+":"+to_string(GRIS_PORT)+"/mds-vo-name=local,o=grid",
                )
                      }

Replace GRIS_PORT by BDII_PORT and local by resource

should look like: "CE", "ldap://"+CE_HOST+":"+to_string(BDII_PORT)+"/mds-vo-name=resource,o=grid"

tests

  1. Check if the site is correctly published
ldapsearch -x -H ldap://bdii02.begrid.be:2170 -b mds-vo-name=local,o=grid

(this may take a while before everything get published)

"ldapsearch -x -H ldap://ce01.yourdomain.be:2170 -b mds-vo-name=resource,o=grid" 
"ldapsearch -x -H ldap://ce01.yourdomain.be:2170 -b mds-vo-name=BEgrid-SiteName,o=grid" 

2. Torque: Useful PBS Commands

2.1 pbsnodes [pbs node query and control]

The pbsnodes command, while a useful PBS administration command, can also be informative to the PBS user. It is used to mark nodes down, free or off line. It can also be used to list nodes and their state. Node information is obtained by sending a request to the PBS job server.

pbsnodes -a [-s server] [-q] [node]
pbsnodes -l [-s server] [-n] [-q] 
-a All nodes, their attributes and job status are listed. The attributes include “state” and “properties”.
-l List all nodes marked in any way.
-s specify the PBS server to which to connect.


2.2. qsub

Once a PBS job script is created, it is submitted to PBS via the qsub command.

2.3. qstat

The qstat command will allow you to view the contents of the PBS queue.

2.4. qdel

The qdel command takes a single argument, a job number. You can use qdel to abort execution of your job.

2.5. qalter

The qalter command is helpful for altering the parameters of a job after it's submitted. qalter takes two arguments: the PBS directive that you wish to change (like -l), and the job number that you want to change. For example, if you forgot to set the walltime that your job requires, you can change it after it's been submitted:

node1:~> qalter -l walltime=4:00:00 147

Configuring Queues

Examples:

qmgr -c "set queue your_queue_name max_running = 4"
qmgr -c "set queue your_queue_name Priority = 200"

Back to Servers


Template:TracNotice