Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

โ€œInvest in yourself โ€” your confidence is always worth it.โ€

Explore Cosmetic Hospitals

Start your journey today โ€” compare options in one place.

Artifactory: Guide to change Artifactory filestore to AWS EFS (Elastic File System)

Hereโ€™s a comprehensive, step-by-step tutorial for migrating or configuring JFrog Artifactory 7.117.7+ (self-hosted, Linux) to use AWS EFS (Elastic File System) as its filestore. This guide brings together all best practices from JFrog documentation, AWS, and real-world experience.
(Suitable for both single-node and HA Artifactory setups.)


๐ŸŸข JFrog Artifactory 7.117.7+ with AWS EFS: Step-by-Step Guide


Step 1: Prepare Your AWS EFS

  • Create an EFS File System in the AWS Console.
  • Create Mount Targets for each AZ where your Artifactory servers run.
  • Set security group rules: Allow NFS (port 2049) inbound from your EC2(s).
  • Note your EFS DNS name (looks like fs-xxxx.efs.<region>.amazonaws.com).

Step 2: Mount EFS on Your Artifactory Server(s)

  1. Install NFS Client: sudo apt update && sudo apt install -y nfs-common # Ubuntu/Debian # OR sudo yum install -y nfs-utils # RHEL/CentOS/Amazon Linux
  2. Create a Mount Directory: sudo mkdir -p /mnt/efs
  3. Mount EFS: sudo mount -t nfs4 -o nfsvers=4.1 fs-xxxx.efs.<region>.amazonaws.com:/ /mnt/efs (Replace fs-xxxx... with your EFS DNS name.)
  4. Add to /etc/fstab for Persistent Mount: fs-xxxx.efs.<region>.amazonaws.com:/ /mnt/efs nfs4 defaults,_netdev 0 0

Step 3: (Optional) Copy Existing Filestore Data

If migrating existing artifacts:

  1. Stop Artifactory: sudo systemctl stop artifactory
  2. Copy data to EFS: sudo cp -a /opt/jfrog/artifactory/var/data/artifactory/filestore/* /mnt/efs/ (Use rsync -av for large data or HA setups.)

Step 4: Configure Artifactory to Use EFS

  1. Edit the binarystore.xml file: sudo vi /opt/jfrog/artifactory/var/etc/artifactory/binarystore.xml
  2. Replace the content with: <config version="2"> <chain template="file-system"/> <provider id="file-system" type="file-system"> <fileStoreDir>/mnt/efs</fileStoreDir> </provider> </config> If you used a subdir, use /mnt/efs/filestore above and adjust the copy commands accordingly.

Step 5: Fix Permissions

sudo chown -R artifactory:artifactory /mnt/efs

(Repeat for /mnt/efs/filestore if using a subdirectory.)


Step 6: Start Artifactory

sudo systemctl start artifactory
sudo systemctl status artifactory

Step 7: Verify

  • Check UI: Log in to http://<server-ip>:8082
  • Upload or download artifacts to confirm they are now stored in EFS (check files appear in /mnt/efs).

Additional Best Practices & Notes

  • For HA: All Artifactory nodes must mount EFS to the exact same path and share the same binarystore.xml.
  • Always backup your filestore and database before making changes.
  • Use NFSv4 (EFS default) for full compatibility.
  • Monitor EFS performanceโ€”provision throughput if needed for high load.
  • For Kubernetes: Use Artifactoryโ€™s Helm chart and set artifactory.persistence.type=file-system, then map your PVC to EFS.

Quick Reference Table

StepCommand/Action
Install NFS clientapt install nfs-common or yum install nfs-utils
Mount EFSmount -t nfs4 ...
Add to fstabEdit /etc/fstab
Stop Artifactorysystemctl stop artifactory
Copy filestorecp -a or rsync -av
Edit binarystoreEdit /opt/jfrog/artifactory/var/etc/artifactory/binarystore.xml
Fix permissionschown -R artifactory:artifactory /mnt/efs
Start Artifactorysystemctl start artifactory
VerifyWeb UI & file checks

References


Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services โ€” all in one place.

Explore Hospitals
Iโ€™m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

Artifactory: Comprehensive Troubleshooting Guide for JFrog Artifactory

Hereโ€™s a very comprehensive, up-to-date troubleshooting guide for JFrog Artifactory 7.x, covering the application, database, core components, all services, log files, and all the key troubleshooting commands.This…

Read More

Artifactory: Setting up Artifactory 7 High Availability Cluster

Here is a comprehensive, step-by-step guide to design, configure, and deploy JFrog Artifactory 7.x in High Availability (HA) modeโ€”including all architectural and configuration considerations required for a…

Read More

Artifacatory: Upload Artifacts to Artifactory using NPM with Node.js Project

Step-by-Step Guide: Create a Node.js Project with npm and Upload Artifacts to Artifactory 1. Install Prerequisites 2. Initialize a New Node.js Project 3. Develop Your Node.js Artifact…

Read More

Artifactory: using Gradle and Uploading Artifacts to Artifactory

Step-by-Step Guide: Creating a Java Project with Gradle and Uploading Artifacts to Artifactory 1. Install Prerequisites 2. Create a New Java Project Using Gradle Open your terminal…

Read More

Jfrog Artifactory: Install Artifactory 7 with Postgresql

Hereโ€™s a clear, step-by-step command guide to install the latest JFrog Artifactory (7.117.7) on a Linux server with PostgreSQL as the external database. This walkthrough assumes Ubuntu/Debian,…

Read More

Package Types Supported by Artifactory

Here is a short summary of each of the mentioned package types: Complete List of Package Types Supported by JFrog Artifactory JFrog Artifactory is recognized for its…

Read More
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Jason Mitchell
Jason Mitchell
1 month ago

Very helpful guide! It clearly shows how to switch Artifactoryโ€™s filestore to AWS EFS in easy-to-follow steps. Great resource for anyone managing Artifactory on AWS.

1
0
Would love your thoughts, please comment.x
()
x