Difference between revisions of "Imperial Dirac Maintenance"

From GridPP Wiki
Jump to: navigation, search
(Best of Github)
Line 32: Line 32:
 
[restart dirac]
 
[restart dirac]
 
</pre>
 
</pre>
 +
 +
== Check the logs ==
 +
Looking at a specific SiteDirector: <br>
 +
tail -f startup/WorkloadManagement_SiteDirectorGridPP/log/current <br>
 +
Local dirac code: <br>
 +
tail -f /opt/dirac/startup/Configuration_AutoBdii2CSAgent/log/current <br>
 +
  
 
== Best of Github ==
 
== Best of Github ==
Line 38: Line 45:
 
to check what changed if 'git status' complains about modified files: <br>
 
to check what changed if 'git status' complains about modified files: <br>
 
git diff [file it's upset about]<br>
 
git diff [file it's upset about]<br>
 +
 +
== Adding a new VO ==
 +
(example taken from the LZ VO) <br>
 +
on dirac01: <br>
 +
add VO to /etc/vomses and /etc/grid-security/vomsdir <br>
 +
 +
 +
dirac-install-agent WorkloadManagement SiteDirectorLz -m SiteDirector
 +
 +
dirac-proxy-init -C /etc/grid-security/pilotcert.pem -K /etc/grid-security/pilotkey.pem -g lz_pilot -M -P

Revision as of 10:23, 9 September 2015

Hardware

The Imperial dirac server consists of 4 machines:
dirac01 (configuration server, main dirac server)
dirac02 (second dirac server, for load balancing etc)
diracdb (hosts the databases)
diracweb (hosts the webserver)

Restarting dirac

To restart dirac:
as 'dirac' in /opt/dirac/:

killall -SIGHUP runsvdir
source bashrc
runsvdir /opt/dirac/startup &

Updating the dirac install

Note: dirac01 and dirac02 should always run the same version of the dirac software. Whatever you do it helps having a clean shell without the cursed bashrc having been invoked.

cd /opt/dirac/DIRAC
git status
git pull
find . -iname '*.pyo' -delete
[restart dirac]

and the GridPP module

cd /opt/dirac/GridPPDIRAC
git status
git pull
find . -iname '*.pyo' -delete
[restart dirac]

Check the logs

Looking at a specific SiteDirector:
tail -f startup/WorkloadManagement_SiteDirectorGridPP/log/current
Local dirac code:
tail -f /opt/dirac/startup/Configuration_AutoBdii2CSAgent/log/current


Best of Github

Merge requests: Being logged into github really helps :-)

to check what changed if 'git status' complains about modified files:
git diff [file it's upset about]

Adding a new VO

(example taken from the LZ VO)
on dirac01:
add VO to /etc/vomses and /etc/grid-security/vomsdir


dirac-install-agent WorkloadManagement SiteDirectorLz -m SiteDirector

dirac-proxy-init -C /etc/grid-security/pilotcert.pem -K /etc/grid-security/pilotkey.pem -g lz_pilot -M -P