This page describes some general details concerning the HEPDB service at CERN.
For information regarding the use of the HEPDB package itself, please see the HEPDB documentation.
See also the old (no longer maintained) web pages here
The HEPDB service is run on an IBM machine, with nodename hepdb.cern.ch.
The various HEPDB catalogs are kept on the /hepdb filesystem, which is NFS-exported and should be NFS-mounted on any system requiring access to the HEPDB catalog.
For each experiment (e.g. CHORUS, NOMAD, WA97 etc.) there is a subdirectory which contains the catalog for that experiment and associated configuration files, e.g.
sp019:/hepdb/cdwa97 # ls -F bad/ cdsrv@ l6.dbs p6.dbs tocatania/ tohadron/ toriscom/ tovm/ cdserv* hepdb.err log/ p7.dbs tocrnhp3/ tohp18/ tors320h/ cdserv.log hepdb.names or.dbs queue/ todo/ tohpfpd/ tosalerno/ cdserv.oldlog l5.dbs p5.dbs save@ toephp1/ toral/ tosophia/The purpose of each of these files is described below.
Currently, HEPDB runs on a RS6000 machine, shared with FATMEN.
The node name is shd15 with aliases fatcat and hepdb.
Any user may request a restart of a server by creating a signal.start file in
the todo directory for their experiment.
e.g. to restart the server for NOMAD, type:
Free or buy some disk space.
Change the RZ record size. Best left to an expert.
An example (for FATMEN) can be found here.
Restore the more recent online backup from /cdback/cd{experiment}/*.good
Then 'mv' the necessary update files from /hepdb/cd{experiment}/save to
/hepdb/cd{experiment}/todo and restart the server.
If surgery is required on the RZ file, best wait for an expert.
Best wait for an expert.
This directory is used by the server to store update files that are not valid HEPDB
update files. Usually happens when a user application writes to the unit reserved
for HEPDB updates.
ZEBRA-RZ files containing one of the HEPDB database for the corresponding experiment.
After processing, updates are 'mv-ed' to this directory (which is often/normally a link
to another filesystem). Update files are kept to enable recovery from corrupted catalogs.
They are automatically deleted a cleanup script.
The directory where log files are kept. Again, often a link.
The server log file.
The shell script that runs the server.
A link to the HEPDB server.
A configuration file. See the documentation for more information.
Directories where updates are queued to remote sites. See the documentation for more information.
The directory where user updates are queued. Processed by the CDSRV process.
These are kept in the directory
/afs/cern.ch/project/hepdb/@sys/bin and
/afs/cern.ch/project/hepdb/scripts.
A program run every night to backup the HEPDB databases.
The program responsible for transferring updates between different HEPDB servers
(e.g. at CERN and IN2P3).
The HEPDB server itself.
The scripts contain a brief comment explaining their function and are described in the user
documentation.
Many are run from cron as user root.
Like many CERNLIB
programs, HEPDB relies on the DATIME
routine to handle dates and times. As is described here,
this routine returns the date in YYMMDD format through the argument list.
Calibration data entered into HEPDB are given a validity range that consists of
one or more pairs of integers. HEPDB makes no assumptions as to these integers -
they may be start and end run, run and event, time or any other range.
HEPDB stores the insertion time of each entry in a packed format. The insertion
time may be overridden by the user, but by default is obtained using the DATIME
routine described above.
Modifications to support Y2K have been received from Rob Komar
Trouble-shooting
touch /hepdb/cdnomad/todo/signal.start
The following information is for service managers only.
rsplus12:/afs/cern.ch/user/j/jamie (51) hepdb
>>> macro HDBSYS not found
>>> macro HDBGRP not found
>>> macro HDBUSR not found
>>> macro HDBLOGON not found
HEPDB> open ru
HEPDB 1.21/00 960329 12:00 CERN PROGRAM LIBRARY HEPDB=Q180
This version created on 960328 at 1130
CDOPNC. opened file /hepdb/cdnomad/runst.dbs on unit 2 with top directory CDRU and record length 2048
HEPDB> cd //cdru -a
CDCDRC. current working directory = //CDRU
Quota = 65000
Number of subdirectories = 8
Created on 940304 at 2002 Modified on 990617 at 1042
Number of records used = 3
0 megawords + 4125 words
HEPDB>
(To create the final RZ file in exchange mode in the "NEW" format (see ZEBRA
manual under RZMAKE), use CHOPT='XN').
Explanation of HEPDB files
HEPDB programs and scripts
Programs
ls /afs/cern.ch/project/hepdb/@sys/bin
cdbackup cdmove cdsrv
Scripts
#
# Backup database files
#
0 23 * * * /afs/cern.ch/project/hepdb/scripts/cdbackup.sh > /dev/null 2>&1
#
# Look for servers that are stopped
#
0 8 * * * /afs/cern.ch/project/hepdb/scripts/cdchk > /dev/null 2>&1
#
# More powerful check
#
20 * * * * /afs/cern.ch/project/hepdb/scripts/cdcheck > /dev/null 2>&1
#
# Check for backlogs
#
# TGB - fixed syntax error
#
0 0 * * * /afs/cern.ch/project/hepdb/scripts/cdqueue > /dev/null 2>&1
#
#
# Special check for cdmove
#
30 * * * * /afs/cern.ch/project/hepdb/scripts/cdmovechk >> /tmp/cdmovechk.log 2>&1
Y2K Information