/data/xnat/cache management?

37 views
Skip to first unread message

akluiber

unread,
Jan 12, 2026, 5:52:55 PMJan 12
to xnat_discussion
Hi all,

I'm wondering if there's any enforcement mechanisms to limit the size of and automatically clean /data/xnat/cache when data is no longer being used?

I've been bulk uploading a large project via dicom send and found that my local drive where /data/xnat is mounted  ran out of space because /data/xnat/cache grew too large. archive, build and workspaces all live on an NFS mount, and prearchive seems to clean itself, so I don't believe those are  a problem.

I do currently have a nightly cronjob which cleans the /data/xnat/cache, but this project upload fills it up within less than a day. For now, I'm limiting my uploads to a certain number of sessions, to allow me to manually check and clear the cache in between runs. 

I suppose I could run a cronjob every half-hour which tests for disk usage greater than some threshold, and then cleans the cache from oldest to newest, of any files that haven't been written, accessed or modified within the last hour or something. But wondering if there's a better way and/or what other people have done.

Thanks for any advice.

Michael Rohan

unread,
Jan 30, 2026, 5:48:28 PM (12 days ago) Jan 30
to xnat_di...@googlegroups.com
Is it possible to dump the displayed prearchive list (with all columns, perhaps as csv?) to a text file for managing? Mine got out of hand.



Michael L Rohan Ph.D.

Chief Technology Officer/MRI Facility Director

Laureate Institute for Brain Research 

6655 S. Yale Ave.

Tulsa, OK  74136

(918) 502-5101

mro...@laureateinstitute.org

 

Laureate Institute for Brain Research



img-efd99874-8f69-42a2-af26-5d1e74d8c3da

Timothy Olsen

unread,
Jan 30, 2026, 5:55:49 PM (12 days ago) Jan 30
to xnat_di...@googlegroups.com
Yes.  add /data/prearchive?format=csv to your url in your browser, and it should download the results as a CSV.

{HOST}/data/prearchive?format=csv

Tim


Timothy R Olsen 

Founder, President




--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/xnat_discussion/PH7PR19MB75561DC08E6CAAB8C8BFF794DF9FA%40PH7PR19MB7556.namprd19.prod.outlook.com.
img-efd99874-8f69-42a2-af26-5d1e74d8c3da
Reply all
Reply to author
Forward
0 new messages