Hi Michael,
Thanks for the suggestion as well as for the word of caution!
It looks like what you suggested did work
Creating the stub file generated an error
[root@cta-adm1 georgep]# eos touch /eos/antares/prod/lhcb/dataChallenge/stub.4308411357
error: unable to touch ‘/eos/antares/prod/lhcb/dataChallenge/stub.4308411357’ (errc=71) (Protocol error)
but the Frontend received the CREATE event and the file was created
Sep 11 15:40:32.581964274 cta-front04 cta-frontend: LVL=“INFO” PID=“1275296” TID=“95302” MSG=“In WorkflowEvent::WorkflowEvent(): received event.” user=“eosantares@cta-front04” eventType=“CREATE” eosInstance=“eosantares” diskFilePath=“/eos/antares/prod/lhcb/dataChallenge/stub.4308411357” diskFileId=“879599649”
Sep 11 15:40:32.581964274 cta-front04 cta-frontend: LVL=“INFO” PID=“1275296” TID=“95302” MSG=“In WorkflowEvent::WorkflowEvent(): received event.” user=“eosantares@cta-front04” eventType=“CREATE” eosInstance=“eosantares” diskFilePath=“/eos/antares/prod/lhcb/dataChallenge/stub.4308411357” diskFileId=“879599649”
Then, I assigned the archive file id as an extended EOS attibute
[root@cta-adm1 georgep]# eos attr set sys.archive.file_id=4308411357 /eos/antares/prod/lhcb/dataChallenge/stub.4308411357
[root@cta-adm1 georgep]# eos attr ls /eos/antares/prod/lhcb/dataChallenge/stub.4308411357
sys.archive.file_id=“4308411357”
sys.eos.btime=“1726065632.580272011”
sys.fs.tracking=“+100”
sys.utrace=“cc64f23e-704b-11ef-a7a4-1c34da4b345c”
sys.vtrace=“[Wed Sep 11 15:40:32 2024] uid:0[root] gid:0[root] tident:root.4040157:521@cta-adm1 name:daemon dn: prot:sss app: host:cta-adm1.scd.rl.ac.uk domain:scd.rl.ac.uk geo: sudo:1”
and, finally, doing an “eos rm” on this file did send the DELETE event to the Frontend and the file was removed from the tape
Sep 11 15:46:04.253622697 cta-front04 cta-frontend: LVL=“INFO” PID=“1275296” TID=“165677” MSG=“In OracleCatalogue::copyArchiveFileToRecycleBinAndDelete: ArchiveFile moved to the recycle-bin.” user=“eosantares@cta-front04” archiveFileId=“4308411357” diskFileId=“879599649” diskFilePath=“/eos/antares/prod/lhcb/dataChallenge/stub.4308411357” diskInstance=“eosantares” insertToRecycleBinTime=“0.003639” setTapeDirtyTime=“0.000916” deleteTapeFilesTime=“0.002752” deleteArchiveFileTime=“0.005183”
Sep 11 15:46:04.254170812 cta-front04 cta-frontend: LVL=“INFO” PID=“1275296” TID=“165677” MSG=“In RdbmsCatalogue::moveArchiveFileToRecycleLog(): ArchiveFile moved to the file-recycle-log.” user=“eosantares@cta-front04” fileId=“4308411357” diskInstance=“eosantares” requestDiskInstance=“eosantares” diskFileId=“828464334” diskFileInfo.owner_uid=“36250” diskFileInfo.gid=“24289” fileSize=“5368709120” creationTime=“1671116899” reconciliationTime=“1671116899” storageClass=“lhcbchall22” checksumType=“ADLER32” checksumValue=“f901298b” TAPE_FILE=“copy number: 1 vid: CT4063 fSeq: 37 blockId: 737605 creationTime: 1671116899 fileSize: 5368709120” checkDeleteRequestConsistency=“3.5e-05” copyArchiveFileToFileRecyleLogAndDeleteTime=“0.013002” totalTime=“0.013042”
Sep 11 15:46:04.255578240 cta-front04 cta-frontend: LVL=“INFO” PID=“1275296” TID=“165677” MSG=“In WorkflowEvent::processDELETE(): archive file deleted.” user=“eosantares@cta-front04” fileId=“4308411357” address=“null” filePath=“/eos/antares/prod/lhcb/dataChallenge/stub.4308411357” catalogueGetArchiveFileByIdTime=“0.001877” schedulerTime=“0.01467”
[root@cta-adm1 georgep]# cta-admin tf ls --id 4308411357
Archive file with ID 4308411357 does not exist
I will go ahead and apply this to the rest of the tape files/
Many thanks again,
George