• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

securitywing

Menu
  • About
  • Must Read
      • IIS Performance Boost
      • RFID Security
      • Web App Security Testing
      • How to Secure Home Network
      • Prevent Cross-Site Scripting Attacks
      • Renew Self-Signed Certificates
      • Penetration Testing Tools
      • VPN Concentrator
      • Forensic Investigation Tools
      • Digital Certificates
      • Cloud Security Issues
      • Advanced Evasion Prevention
      • Firewall Types
      • Tips to Prevent Data Exfiltration
      • Classified Info Handling
      • MySQL Security
      • Definition of 7 Types of Malware
      • VOIP Security
      • Why Antivirus Software Fails
      • 15 Network Security Vulnerabilities
      • Web App Security
      • IT Security Standards
      • Types of Virtualization
      • Android Security
      • Digital Signature
      • Advanced Malware Protection
    • Close
  • Consultancy
  • Contact

How to Mount Amazon EFS in EC2-CentOS Instance

by wing

With Amazon EFS(elastic file system)mounted in the EC2, you can signifincalty reudce cost of storge becaues you pay only for the storgrage used by your applications/data. EFS supports NFS

In the AWS console, search for EFS and then create a volume. When you attahce a security group in the EFS, make sure it allows traffc on port 22 from the EC2 instance. Also, take note of the DNS name of  EFS, which will be used to mount the volumen in the EC2.

SSH to the Ec2 and create a mount directory.

sudo mkdir efs

Note:if you want you can specify the full path of the mount directory such as /home/efs or /var/efs

 

Next, take a note of the NFS endpoint DNS name and add the following line in the fstab. Remember to replace the  endpoint by yours.

sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport fs-033a1bcb.efs.eu-west-1.amazonaws.com:/   efs

 

to auto mount the EFS when the EC2 instance restarts, you can add the mount -a in the /etc/fstab. Add the following lines to permanently  mount the EFS

 

fs-033a1bcb.efs.eu-west-1.amazonaws.com:/   /home/centos/efs  nfs4 defaults,_netdev 0 0

after adding the mount point the fstab, you need to run:

sudo mount -a

now, if you reboot the instance, the EFS will be auto mounted.

To verify the EFS mount status  run the following command:

$ df -T

Related Posts:

  • How to Resolve Route 53 Privated Hosted zone from a VPC in a different AWS account
  • How to Enable AWS Cross Account ECR Image Replication
  • How to Install Boto3 for AWS SDK using Anaconda in Windows
  • How to Setup AWS CloudFront for Externally Registered Domain Name
  • How to Setup SSL in AWS application load balancer for WordPress

Filed Under: Off Track Tagged With: AWS, efs

Primary Sidebar

CISSP Sample Test

Take a CISSP Sample Test

CISA IT governance Sample test



Twitter Follow @securitywing

Categories

  • AWS
  • containers
  • Internet Security and Safety
  • IS Audit
  • IT Security Exams
  • Network Security Tips
  • Off Track
  • Telecom
  • Tutorial

Pages

  • About
  • Best IT Security Certification Exam
  • CISA IT governance Sample test
  • CISA Sample Test
  • CISSP Sample Test Online
  • Consultancy
  • Contact

Popular Posts

  • 3 Steps to Install Miniku...
  • How to install a new Goda...
  • 63 Web Application Securi...
  • How to Setup AWS CloudFro...
  • How to Renew Self-Signed...
  • Host Based IDS vs Network...
  • 8 Effective Ways to Impro...
  • Active vs Passive FTP Mod...
  • Top 10 RFID Security Conc...
  • 3 Simple Steps to Capture...

Footer

Copyrights

Protected by Copyscape Duplicate Content Detection Software

Securitywing.com reserves the copyrights of all of its published articles.No contents of this site is permitted to be published to anywhere else in the Internet.If any contents are found in any other websites, securitywing reserves the rights to file a DMCA complaint. But you have the right to use the link of any relevant article of this site to point from your website if you consider that it might improve the quality of your article.

Tags

antivirus audit AWS backup browser check cisco cloud computer cyber data database encryption firewall home hsrp ids informaiton internet intrusion it kubernetes linux load balancing malware network protection putty risk router security security tips server ssh SSL switch tools virus vpn vulnerability web webserver website windows wordpress

Copyright © 2010-2023 ·All Rights Reserved · SecurityWing.com