Enstore to CTA mapping
Enstore |
CTA |
Comment |
---|---|---|
|
|
|
|
|
|
volume.storage_group volume.file_family |
|
This is needed so that dCache can
communicate to CTA and still use
storage_class for data steering within dCache.
|
|
|
|
|
|
Sequence in CTA |
|
|
|
if bfid has entry in
file_copies_map |
storage_class.nb_copies archive_route.copy_nb And extra entries in
tape_file |
The
storage_class.nb_copies is set to 2if
volume.file_family ~ '.*_copy_1' and or each enry in
file_copies_map an extra entry is made in
file_copies_map corresponding to file copy
|
The script enstore2cta.py
running with --all
options performs the following steps:
creates
disk_instance
with name corresponding to"disk_instance_name"
key in configuration fileenstore2cta.yaml
;selects distinct names of
volume.storage_group
-> creates entries invirtual_organization
;selects distinct names of
volume.library
-> creates CTAlogical_library
entries with the same names;selects distinct
volume.storage_group||'.'||volume.file_family||'@cta'
-> creates corresponding entries instorage_class
table. Ifvolume.file_family ~ '.*_copy_1
thenb_copies
is set to 2;for each vo creates
tape_pool
entry;for each storage class and corresponding tape_pool (by vo) creates
archive_route
entry;selects all Enstore volumes, that do not have
"_copy_1"
suffix and puts them on the Queue;spawns number of processes (default - number of cores), each process takes volume to process from Queue;
each process:
inserts volume into
tape
table;selects all active direct files, together with all their copies (if there are copies)
from the
file
,volume
,file_copies_map
join and loops over them inserting entries intoarchive_file
andtape_file
, for each copy, it also makes an entry intotape
for copy volume (does it only once for each new copy volume) andtape_file
for file copies;
calculates CTA file location and inserts in into Chimera
t_locationinfo
table;
when Queue drops to 0, the processes shutdown and a single bootstrap query is run to updtate copy counts on all entries in
tape
table.