I have a 500GB attachments directory on Jira and I would like to do some cleanup there, if possible.
I only assume that maybe, in time we got some orphan attachments that we do not need anymore - removed attachemnts in jira db, but not from disk (example when you delete an issue).
I think you should check that assumption first, otherwise you're going to cause problems. Better to work out an attachment limit, and see which issues have attachments over that size.
select sum(filesize) from FILEATTACHMENT - run that on that on your db - if it's less than the size on disk, allowing for disk block sizes etc, then maybe you have orphaned attachments.
Thanks, Jamie but this not quite an answer, as it does not indicate you the orphan files. Still, it seems that there is no huge difference between the size on disk and the sum(filesize).
The strange thing is the even if I do have ~28,000 attachments, I count over 500,000 files on the attachment partition. I would expect to see up to the double due to the thumbnailsm but why this huge number?
I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs