EOS command 'evict'/'stagerrm' not deleting files on FST
As shown in https://gitlab.cern.ch/cta/operations/-/issues/1211#note_7218878, the EOS command evict/stagerrm is no longer deleting the files on the FST, due to a misuse of the flag forceRemove on XrdMgmOfs::_dropallstripes(...) and XrdMgmOfs::_dropstripe(...):
This needs to be fixed.
In order to do so, we need to change some of the EOS commandevict parameters:
- Remove
--force. This command is not very clear about its purpose... - Add
--ignore-evict-counter(direct replacement of--force), to bypass the eviction counter and trigger the file deletion. - Add
--ignore-removal-on-fstto bypass the deletion on the FST (i.e. setforceRemoveastrue), to allow the file to be removed from the namespace without requiring a response from the FST. This is preferable toeos fs rm, which is not tape-aware... The--ignore-removal-on-fstshould only be allowed together with--fsid <id>.
Corresponding issue on EOS Jira:
Edited by Joao Afonso