Command to read specific files from tape
Development ticket for https://gitlab.cern.ch/cta/operations/-/issues/58.
Implement the CTA equivalent of CASTORs readtp
command:
$cta-readtp <VID> <SEQUENCE> [-d <DRIVE NAME>] [-f <DESTINATION FILE LIST>] [-p <XROOT PRIVATE KEY FILE>]
The options available are:
- VID: The vid of the tape to be read
- SEQUENCE: A sequence of tape file sequence numbers. The syntax to be used is the same as the original
readtp
command:-
f1-f2
Files f1 to f2 inclusive. -
f1-
Files f1 to the last file on the tape. -
f1-f2,f4,f6-
A series of non-consecutive ranges of files.
-
- DRIVE: used to read the tape. If not set, the first drive in TPCONFIG is used
- DESTINATION FILE LIST: Path to a list of files the read data is sent to.
- XROOT PRIVATE KEY FILE: Path to a private key file used for writting files using xroot.
The steps of the command are:
-
Check that the drive is down
-
Manually mount the tape on the drive
-
Recall each file (identified by its fseq), and compare it's checksum with the checksum in the CTA catalogue
Edited by Miguel Barros