Installing PadmeReco on CVMFS - PADME-Experiment/padme-prod GitHub Wiki
-
Compile the desired version of PadmeRoot and PadmeReco on a CentOs7 and on a SLC6 node.
-
Create the directory structure for the package. Use version identifier as the top directory name (here
test20190910
)
[leonardi@padmeui PadmeReco]$ mkdir test20190910
[leonardi@padmeui PadmeReco]$ cd test20190910
[leonardi@padmeui test20190910]$ mkdir centos7 config slc6
[leonardi@padmeui test20190910]$ mkdir centos7/bin centos7/lib slc6/bin slc6/lib
- Copy the
libPadmeRoot.so
library and thePadmeReco
binary to thelib
andbin
directories, respectively
[leonardi@padmeui test20190910]$ cp /home/leonardi/padme-fw/PadmeReco/PadmeReco centos7/bin/
[leonardi@padmeui test20190910]$ cp /home/leonardi/padme-fw/PadmeRoot/lib/libPadmeRoot.so centos7/lib/
This must be repeated for both the CentOS7 and the SLC6 version
- Copy the PadmeReco configuration files to the
config
directory
[leonardi@padmeui test20190910]$ cp -aR /home/leonardi/padme-fw/PadmeReco/config.template/* config/
You may want to edit the default configuration files to suit your needs.
- Copy the job configuration script from the padme-prod package to the
config
directory
[leonardi@padmeui test20190910]$ cp /home/leonardi/RecoProd/padme-prod/cfg/padme-configure.sh.template config/padme-configure.sh
N.B. the template script might need modifications if the version of the gcc and root packages change
- Prepare the tar ball which will be installed on cvmfs
[leonardi@padmeui test20190910]$ cd ..
[leonardi@padmeui PadmeReco]$ tar -czvf test20190910.tar.gz test20190910
- Copy the tar ball to bastion.cnaf.infn.it at CNAF
[leonardi@padmeui PadmeReco]$ scp test20190910.tar.gz [email protected]:
- Log on the CVMFS server node via bastion
[leonardi@padmeui PadmeReco]$ ssh -Y -l leonardi bastion.cnaf.infn.it
[leonardi@bastion ~]$ ssh -Y cvmfs-padme.cnaf.infn.it
- Initiate the CVMFS transaction to install the package
[leonardi@cvmfs-padme ~]$ sudo cvmfs_server transaction
- Using the special
padme
account, recover the tar ball from bastion and install it in/cvmfs/padme.infn.it/PadmeReco
[leonardi@cvmfs-padme ~]$ sudo su - padme
[padme@cvmfs-padme ~]$ scp leonardi@bastion:test20190910.tar.gz .
[padme@cvmfs-padme ~]$ cd /cvmfs/padme.infn.it/PadmeReco
[padme@cvmfs-padme PadmeReco]$ tar -xzvf /home/padme/test20190910.tar.gz
[padme@cvmfs-padme PadmeReco]$ exit
- Finalize the CVMFS transaction
[leonardi@cvmfs-padme ~]$ sudo cvmfs_server publish
- All is done: you can logout from CNAF
[leonardi@cvmfs-padme ~]$ exit
[leonardi@bastion ~]$ exit
- After a few minutes check if package is visible on cvmfs
[leonardi@padmeui PadmeReco]$ ls -l /cvmfs/padme.infn.it/PadmeReco/test20190910