Configuration
Script expects configuration file enstore2cta.yaml
in the current directory or pointed to by environment variable MIGRATION_CONFIG
. The yaml file has to have “0600” permission bits and has to have the following parameters defined:
# name of the disk instance
# will be created if no "--add" option is used
disk_instance_name: dCache
# uncomment and modify when adding single volume
# to existing system using "--add" option
# tape_pool_name must exist in CTA
#tape_pool_name: ctasystest
# DB connection parameters,
# cta_db and chimera_db require r/w access
cta_db: postgresql://user:password@host:port/db_name
enstore_db: postgresql://user:password@host:port/db_name
chimera_db: postgresql://user:password@host:port/db_name
# Enstore to CTA media_type map.
media_type_map:
LTO8: LTO8
M8: LTO7M
LTO9: LTO9
# Map from the Enstore LMs to CTA logical library name(s)
# this map is used if there is desire to map existing
# Enstore LMs to pre-created CTA logical libraries
# If this map is commented out the Enstore LMs will be re-created
# as CTA logical libraries.
# Uncomment and modify when adding single volume to existing system using
# --add option
# Destination logical_library_name must exist in CTA
#
#library_map:
# CD-LTO8F1: TS4500G1
# CD-LTO8F1T: TS4500G1
# CD-LTO8G1: TS4500G1
# CD-LTO8G1T: TS4500G1
# CD-LTO8G2: TS4500G1
# CD-LTO8G2T: TS4500G1
# CTA-TESTING: TS4500G1
# TFF1-LTO9: TS4500G1
# TFF1-LTO9T: TS4500G1
# TFF2-LTO9: TS4500G1
# TFF2-LTO9M: TS4500G1
# TFF2-LTO9T: TS4500G1
# TFF1-LTO8: TS4500G1