CDR Setup - PADME-Experiment/padme-cdr GitHub Wiki

These are the steps required for a user to run the PADME CDR on padmeui or on any node configured as a Tier2 UI:

  1. Obtain a personal account from the INFN LNF computing services: this is needed for any computing-related activities at LNF and is mandatory to take shifts and access the PADME DAQ system.
  2. Apply for a personal account on padmeui by sending an e-mail to the Tier2 manager Elisabetta Vilucchi. In your e-mail you must specify who you are and why you need the account on the node.
  3. Make sure you have a GRID-enabled personal certificate and that this certificate is registered to the PADME VO, as described in The PADME VO.
  4. Logon padmeui, create the .globus directory in your home directory, and copy there your GRID-enabled certificate. If it is in P12 format, you must extract the certificate and key files with the following commands (assuming that the P12 certificate file is called myCert.p12):
openssl pkcs12 -in myCert.p12 -clcerts -nokeys -out $HOME/.globus/usercert.pem
openssl pkcs12 -in myCert.p12 -nocerts -out $HOME/.globus/userkey.pem
chmod 600 $HOME/.globus/usercert.pem
chmod 400 $HOME/.globus/userkey.pem
  1. Install the special ssh public and private keys for CDR in the .ssh directory (ask Emanuele for the files)
cp id_rsa_cdr $HOME/.ssh
cp id_rsa_cdr.pub $HOME/.ssh
chmod 600 $HOME/.ssh/id_rsa_cdr

These keys are needed to access the daq account on the PADME DAQ data servers and the PADME account pdm on the KLOE tape library.

  1. Install the parallel package. This package can be installed as an individual user and does not require root access. If not installed, several data transfer tools will not work (but the main CDR server will).

  2. Get the latest version of the PADME CDR software from the github repository

git clone https://github.com/PADME-Experiment/padme-cdr $HOME/padme-cdr
  1. Create a cdr directory, where all CDR-related activities will take place, and add a few needed subdirs and links:
mkdir $HOME/cdr
cd $HOME/cdr
mkdir run log
ln -s $HOME/padme-cdr/PadmeCDR/code/PadmeCDR.py PadmeCDR
ln -s $HOME/padme-cdr/PadmeCDR/code/CDRMonitor.py CDRMonitor
ln -s $HOME/padme-cdr/PadmeCDR/tools/VerifyRunsToRemove.sh VerifyRunsToRemove
ln -s $HOME/padme-cdr/PadmeCDR/tools/VerifyRun.py VerifyRun
ln -s $HOME/padme-cdr/PadmeCDR/tools/TransferRun.py TransferRun
  1. The system is now ready. All CDR activities will take place from within the cdr directory.