Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Change the directory of the attachment in jira dc 8.13.0

Weixing Xu June 28, 2021

At present, our server is Linux. We want to change the directory of the attachment and point it to a distributed storage. Does that mean that we also need to modify JIRA home? How to operate?

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 29, 2021

You mention DC in the summary of the question, which expects a whole chunk of the home directory (including attachments) to be on shared storage, and the docs for installing that cover what you can do there.

But you've also said server, which does not expect to have any part of the home directory shared.  But a lot of us do exactly what you're suggesting and put the attachments on a share simply for automated backups and failovers.

On Linux you have two really easy options for moving your attachments to shared storage.

  • First, stop Jira, then copy the attachments directly to your new storage (do not re-arrange anything, you need to keep the structure as it). 
  • Second, rename the old attachments directory in the home directory.
  • Third, make the shared attachments appear at the old place, using either
    • a symbolic link named attachments, pointing at the root of the shared storage
    • a mount - the shared attachments drive mounted directly at <Jira home>/shared/attachments
  • Make sure the permissions are all ok to let the user account that runs Jira have full access to the new shares
  • Restart Jira

You won't need to re-index or anything, the service doesn't care that the storage has changed!

Suggest an answer

Log in or Sign up to answer