biomed-shifts:lfcbrowsese

LFCBrowseSE

LFCBrowseSE can list the files and the amount of storage used by users on a particular SE (useful for data migration in case of full SE). It also supports the replication of the files that are stored on the affected SE.

Download the tool: Source code and binary (x86-64).

The tool requires the presence of liblcgdm.so.1 and liblfc.so.1. If those do not exist on your system, you may have to create symbolic links like shown below:

# cd /opt/lcg/lib64
# ln -s liblcgdm.so liblcgdm.so.1
# ln -s liblfc.so liblfc.so.1

or, if you are not root user, copy those files to a directory of your choice and add that path to your LD_LIBRARY_PATH variable:

# cp /opt/lcg/lib64/liblcgdm.so /home/myhome/libs/liblcgdm.so.1
# cp /opt/lcg/lib64/liblfc.so /home/myhome/libs/liblfc.so.1
# export LD_LIBRARY_PATH=/home/myhome/libs:$LD_LIBRARY_PATH

Make sure your LFC variables are set, like:

export LFC_HOST=lfc-biomed.in2p3.fr
export LFC_HOME=/grid/biomed/mylogin
usage syntax: ./LFCBrowseSEv2 <SE> [[--vo|<VO>]] [--sfn] [[--lfn]] [--dn] [[--size]] [--guid] [[--summary]][--rep|<DstSE>] [[--keep]]

<code>
 SE: affected SE from files will be listed
 --vo VO: optional, only list files belonging to the specified VO
 --sfn: optional, lists all the SURLs of the files affected.
 --lfn: optional, lists all the LFNs of the files affected.
 --dn: optional, displays the DNs of the owners of all the files affected.
 --size: optional, displays the size of the files affected.
 --guid: optional, lists the GUIDs of the files affected.
 --summary: optional, displays a summary of the different users with files affected and the total storage space occupied
 --quiet: optional, it does not display the progress
 --rep <DstSE>> optional, replicates matching instances on the specified SE
 --keep: optional, it does not delete the temporary files

This tool is developed at Universitat Politica de Valencia.

List LFNs/DNs on an SE (e.g. in case of decommissioning):

 ./LFCBrowseSE serv02.hep.phy.cam.ac.uk --vo biomed --lfn --dn 
  • biomed-shifts/lfcbrowsese.txt
  • Last modified: 2016/02/01 16:45
  • by fmichel