{"id":1243,"date":"2017-03-13T20:10:21","date_gmt":"2017-03-13T14:40:21","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=1243"},"modified":"2017-03-13T20:10:21","modified_gmt":"2017-03-13T14:40:21","slug":"working-efs-elastic-file-system","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/working-efs-elastic-file-system\/","title":{"rendered":"Working with EFS (Elastic File System)"},"content":{"rendered":"<p><strong>Date Posted:<\/strong><\/p>\n<p>EFS is a aws service which is similar to NFS service where we can add a single disk across multiple servers. The advantage of using EFS is we dont have to worry about data storage.<\/p>\n<h4>Limitation:<\/h4>\n<ol>\n<li>EFS has a limited to few regions as of now and it doesn&#8217;t support it all regions.<\/li>\n<li>An EFS volume can be used within the region and the volume cannot be mounted to other regions.<\/li>\n<\/ol>\n<h4>EFS Creation:<\/h4>\n<p>Logon to Amazon Management Console<\/p>\n<p>Click on\u00a0<em>Create File System<\/em><\/p>\n<p>Select\u00a0<em>VPC,\u00a0<\/em>under\u00a0Create mount targets, select <strong>availability zones\u00a0<\/strong>and\u00a0<strong>security groups\u00a0<\/strong>as\u00a0<em>default.<\/em><\/p>\n<p>Mention the\u00a0<em>Name\u00a0<\/em>of the key and select\u00a0<em>Choose performance mode\u00a0<\/em>as\u00a0<strong><em>General Purpose<\/em><\/strong><\/p>\n<p>We will get\u00a0<em>DNS name\u00a0<\/em>for the EFS volume<\/p>\n<h4>Mounting EFS volume to Instance\/server:<\/h4>\n<p>If we followed the steps properly,\u00a0<em>default\u00a0<\/em>security group would be selected. Let&#8217;s install nfs utility on the host.<\/p>\n<p>For Ubuntu,<\/p>\n<p><code>apt-get install nfs-common<\/code><\/p>\n<p>For Centos,<\/p>\n<p><strong><code><\/code><code>yum install -y nfs-utils<\/code><\/strong><\/p>\n<p>Create a directory or mount to an existing partition. In our example, we are going to mount the partition to\u00a0<em>\/var\/www\/html<\/em><\/p>\n<p><code>mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 EFS-DNSNAME:\/\u00a0\/var\/www\/html<\/code><\/p>\n<p>Add the permanent entry on <em>\/etc\/fstab<\/em><\/p>\n<p><code>vi \/etc\/fstab<\/code><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\">DNSNAME-:\/ \/var\/www\/html nfs4 nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 0 0<\/pre>\n<p>Replace DNSNAME with EFS endpoint.<\/p>\n<p>Post your queries incase of any issues.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Date Posted: EFS is a aws service which is similar to NFS service where we can add a single disk [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1019],"tags":[280,300,161,301,274],"class_list":["post-1243","post","type-post","status-publish","format-standard","hentry","category-cloud-aws","tag-amazon","tag-aws","tag-centos","tag-efs","tag-ubuntu","psol-cat-cloud-aws"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-k3","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1243","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=1243"}],"version-history":[{"count":1,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1243\/revisions"}],"predecessor-version":[{"id":11506,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1243\/revisions\/11506"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=1243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=1243"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=1243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}