Dashboard > BaBar > ... > Root Conditions > Create a snapshot for an origin
  BaBar Log In View a printable version of the current page.  
  Create a snapshot for an origin
Added by Wilko Kroeger, last edited by Wilko Kroeger on Nov 10, 2008
Labels: 
(None)

Create a snapshot of a certain type

A snapshot that is taken is of an undetermined origin. In order to create a snapshot of a certain origin the steps below have to be done.

  1. Update the bootfile: set proper origin, ID, view and files names
  2. copy conditions file in a migrateable area with proper names and migrate files to HPSS
  3. transfer file to kan cluster

Lets assume a snapshot has been take from the Master and the snapshot is in:
/kanga/snapshots/prod/cdb/conversion/full/2008/11/20081107T165240/

Setting the following variables:

snapDir = /kanga/snapshots/prod/cdb/conversion/full/2008/11/20081107T165240
bootfile = $snapDir/CDB-20081107T165240-cdb_o258_c0_p24_i0.root
snapType = analysis50
snapSubset = full
snapOrigin = anal50
collStream = CDBAnal50Full
dsname = Nonevent-CDB-analysis50-full
dsDescr = "Analysis50 CDB full snapshot"

The commands to create the proper snapshot are:

Update bootfile

KanCdbUpdateBootfile --bootfile $bootfile --origin $snapOrigin --type $snapType --subset $snapSubset --includeboot

migrate to HPSS and transfer to kan cluster

KanTransferCdbSnapshot --snapdir $snapdir --type $snapType --subset $snapSubset --tocache --migr
KanTransferCdbSnapshot --snapdir $snapdir --type $snapType --subset $snapSubset --toserver clusterkan

Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.8 Build:#814 Oct 02, 2007) - Bug/feature request - Contact Administrators