A snapshot is taken from a production federation. Currently the MASTER is used for CDB snapshots and IR2 is used for CfgDB. Once the MySQL/root implementation will become available it will be used.
The conditions that are extracted depend of the type of the snapshot (e.g.: cond18boot) and the subset of conditions needed (e.g.: betamini, full).
A snapshot could be self consistent or incremental. A self consistent snapshot contains all the needed data. An incremental snapshot however, contains only data that changed compared to a previous snapshot and it has to be merged with the previous snapshot.
For the the configuration database (CfgDb) a snapshot consists of only one file. A conditions database (CDB) snapshot consists of many file and therefore a bootfile is created that acts as a file catalog.
| Domain | Naming Convention |
|---|---|
| Configurations | /store/cfg/<YYYY>/<MM>/CfgDB-<DateTime>.root Example: /store/cfg/2006/01/CfgDB-20060118T185125.root |
| Conditions | /store/cdb/<Type>/<subSet>/<YYYY>/<MM>/<DateTime>/CDB-<DateTime>-<components>.root Example: /store/cdb/cond18boot/betamini/2006/01/20060119T134600/Cdb-20060119T134600-cdb_o257_c0_p33_i0.root |
| Ambient | > ....../Amb-<components>.root |
| Type | Comment |
|---|---|
| cond18boot | Cond18boot like conditions |
| subSet | Comment |
|---|---|
| full | contains all conditions for a particular snapshot type |
| betaMini | only conditions needed by BetaMini analysis jobs |
An incremental snapshot is a snapshot that contains only those root files that changed compared to a previous snapshot. It is not that it only contains new conditions values.
Lets assume a snapshot is taken that contains three root files (meta data files are ignored).
Snapshot 1: 183689 Jan 19 13:48 Cdb_20060119T134600_o256_c2_i1.root 214296 Jan 19 13:48 Cdb_20060119T134600_o256_c2_i0.root 401191 Jan 19 13:48 Cdb_20060119T134600_o0_c0_p21_i0.rootA few days later a new snapshot is taken. However in the mean time some conditions changed and therefore the o256_c2_i1.root will be different.
Snapshot 2: 234599 Jan 26 11:23 Cdb_20060126T112200_o256_c2_i1.root 214296 Jan 26 11:23 Cdb_20060126T112200_o256_c2_i0.root 401191 Jan 26 11:24 Cdb_20060126T112200_o0_c0_p21_i0.rootThe two files _o256_c2_i0.root and _o0_c0_p21_i0.root are identical but o256_c2_i1.root is larger as it contains more conditions. Therefore the incremental snapshot consists only of the file
Incremental Snapshot: 234599 Jan 26 11:23 Cdb_20060126T112200_o256_c2_i1.root
After a snapshot has been imported to a local site and the files are accessible either through the local file system or Xrootd and few more steps are needed that allows a client to resolve a generic root file name to a specific root file in the snapshot. The document Import CfgDB snapshot describes what has to be done.