Manual File Injection
Introduction
Some files might be failed to inject to TMDB by WMAgent, or one may want to re-inject them with different structure.
In the former case, necessary info should be taken from DBS for each file&block, in the latter case however, file info can be retrieved from TMDB before invalidating files.
-
Step 1
Get file info from either DBS or TMDB(info might not be exist)
-
- necessary info to inject a file
block_name: |
/QUTojZinc_CC_M-400_TuneZ2star_8TeV-madgraph/Summer12-START53_V7C-v1/GEN-SIM#75b412b4-0bff-11e4-be54-003048f0e38c |
file_size |
2618934533 |
check_sum |
4050956718 |
adler32 |
ef5f56fe |
-
Step 2
create xml file in the following format, update info manually where necessary
<data version="2.0">
<dbs name="https://cmsweb.cern.ch/dbs/prod/global/DBSReader" dls="dbs">
<dataset name="/QUTojZinc_CC_M-400_TuneZ2star_8TeV-madgraph/Summer12-START53_V7C-v1/GEN-SIM" is-open="y" is-transient="n">
<block name="/QUTojZinc_CC_M-400_TuneZ2star_8TeV-madgraph/Summer12-START53_V7C-v1/GEN-SIM#75b412b4-0bff-11e4-be54-003048f0e38c" is-open="n">
<file name="/store/generator/Summer11LegwmLHE/TTJets_MSDecays_mass171_5_7TeV-madgraph/GEN/START53_LV4-v2/20000/7ADC16D5-4717-E411-A155-002590D9D822.root" bytes="8524837" checksum="adler32:91ec0a9b,cksum:314100391"/>
</block>
<block>
<file />
<file />
</block>
</dataset>
</dbs>
</data>
-
Step 3
Find where the file physically exists
- WF team should tell, or sometimes DBS has this info too. Crosscheck with lcg-ls or any equivalent command
- It can also be written in TMDB if file is injected before
-
Step 4
After making sure you have all necessary info which is XML file and node name, invalidate file if it is injected before
-
Step 5
inject file using PhEDEx script
./PHEDEX-micro/Toolkit/Request/TMDBInject -db ~/param/DBParam:Prod/Meric -nodes [NODES] -filedata [XML FILE]
--
MericTaze - 24 Oct 2014