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.
- Update the bootfile: set proper origin, ID, view and files names
- copy conditions file in a migrateable area with proper names and migrate files to HPSS
- 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