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.

    • 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 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

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2015-01-12 - MericTaze
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CMSPublic All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback