-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manage live data diskspace #314
base: master
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 11462583155Details
💛 - Coveralls |
Time to merge this PR. Main changes:
|
Ciao Maricke! Thank you for working on this!! Looks all very good! |
I tried to implement it quicly here but just to get an idea of how it would look, did not do it properly https://github.com/XAMS-nikhef/amstrax/tree/delete_stbc_from_xams |
Main things:
delete_live_stbc.py
(running in a screen on stbc) that checks the available diskspace on in the stoomboot/data/xenon/xams_v2/live_data
folder and if it is less thanargs.min_free_diskspace
(default 500G), it removes the oldest run, if and only if there is a copy of the live data on/dcache/archives/xenon/xams/xams_v2/live_data
. Update the runsdb accordinglydelete_live.py
(running locally on the DAQ PC) that checks if a run is tagged asdelete_daq
and if so, it checks if a live data copy is stored on both (!)/dcache
and/data
and if so, it removes the live data on the XAMS PC. This is to force certain runs to be removed first, when struggling with diskspace locally.delete_live
or when the deletion of a live data folder didn't go according to plan for whatever reason (fordelete_live_stbc
) so it doesn't keep trying over and over again.