How automatically to organize deleting old study?

949 views
Skip to first unread message

alex sss

unread,
Jun 18, 2017, 8:23:44 PM6/18/17
to dcm4che
Hi!

It is necessary for me that the oldest study were deleted always when free disk space becomes less than 20GB. Regardless of that - as often addressed study.
I.e. the DeleteStudyIfNotAccessedFor parameter shall matter NEVER strictly.
How automatically to organize deleting old study?

Message has been deleted

Dr Suresh Viswanathan

unread,
Jun 19, 2017, 4:13:00 AM6/19/17
to dcm...@googlegroups.com
Please ignore my previous post (now deleted) - it was accidentally sent.

Suresh


--
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.
To post to this group, send email to dcm...@googlegroups.com.
Visit this group at https://groups.google.com/group/dcm4che.
For more options, visit https://groups.google.com/d/optout.

Jon Ander Zuccaro

unread,
Jun 22, 2017, 2:14:43 PM6/22/17
to dcm4che

If you set DeleteStudyIfNotAccessedFor to NEVER this will mean that the deletion of studies will only occur when running out of disk space.

The other option, DeleteStudyOnlyIfNotAccessedFor, tells dcm4chee how old must a study be in order to be a candidate for deletion. By "old" it means when was the last time the study was accessed. When you run out of disk space, the deleter uses this as a criteria for determining what old studies it can start deleting.

This will work for you only if you are not continuously accessing old studies, if this is your case you could create a script that updates the study_on_fs database table setting the access time column to the study date periodically, so even if the table is updated by a recent access to the study it always falls back to be the study date.


How often do you access old studies? Because, if you don't do it all the time those old studies will get deleted when running out of disk space just fine.

alex sss

unread,
Jun 22, 2017, 7:47:18 PM6/22/17
to dcm4che
I want to tell that to me it isn't important - whether there was an access to a study or not. If the disk space ended - the oldest study shall be deleted. You can advise what parameters it is necessary to set that there was a deleting according to date of a study?

I set the following parameters:
DeleteStudyIfNotAccessedFor to NEVER
MinimumFreeDiskSpace to 20GB
ScheduleStudiesForDeletionOnSeriesStored to True
ScheduleStudiesForDeletionInterval to 8h
DeleterThresholds - didn't understand as to use it

What parameters more need to be used that my task was successfully solved?

Bruno Barthez

unread,
Sep 20, 2017, 5:07:17 AM9/20/17
to dcm...@googlegroups.com
Hi Alex,

With you configuration, no  studies was deleted on my pacs. 
When the free available disk space on the current storage file system falls below 500Go, DCM4HEE crashe. I suppose it is  because there is not a next configured file system on my current  file system. In other word, I think When the free available disk space on the current storage file system falls below 500Go, the system trigger a  "change storage file system" and not delete the old studies . Isn't it ?
 
Here is my configuration  
MinimumFreeDiskSpace to 500GB
DeleteStudyIfNotAccessedFor to NEVER
ScheduleStudiesForDeletionOnSeriesStored to True
ScheduleStudiesForDeletionInterval to 30m
 
The showDeleterCriteria() is

Trigger intervall: 30m
Trigger on SeriesStored:true
Only triggered by running out of disk space! Studies not accessed for 26w
Deleter Criteria:
 
1) Storage Not Commited


My question : Can i set  MinimumFreeDiskSpace=0  to trigger an "out of disk space" without trigger a "change storage file system" ?

if someone has the solution, I would be very grateful
Best regard
Bruno
 

Arnold Maderthaner

unread,
Sep 20, 2017, 5:16:44 AM9/20/17
to dcm4che
I think out of disk space can be done by not adding any other RW filesystem.

Levon Soukissian

unread,
Mar 22, 2021, 2:05:48 AM3/22/21
to dcm4che
Hello,
which is the mechanism that automatically changes the data (add, delete or update entries) in study_on_fs table in other words who change those data when I change the value of  DeleteStudyOnlyIfNotAccessedFor option?
When I change the value of option, the tables data are recreated or just add new entries?

Thanks in advance
Reply all
Reply to author
Forward
0 new messages