{"id":701,"date":"2018-08-16T20:15:57","date_gmt":"2018-08-16T20:15:57","guid":{"rendered":"https:\/\/blog.ngocha.biz\/?p=701"},"modified":"2018-08-16T20:15:57","modified_gmt":"2018-08-16T20:15:57","slug":"nfs-servers-google-cloud-filestore","status":"publish","type":"post","link":"https:\/\/blog.ngocha.biz\/?p=701","title":{"rendered":"Setup NFS Server On Google Cloud &#8211; Google Cloud FileStore Service"},"content":{"rendered":"<p><a href=\"https:\/\/cloud.google.com\/filestore\/?ref=devopscube.com\" rel=\"noopener\">Google Cloud Filestore<\/a> is a managed NFS implementation on google cloud. This is one of the awaited features for Google cloud users. Amazon AWS has released its Managed NFS service <a href=\"https:\/\/aws.amazon.com\/efs\/?ref=devopscube.com\" rel=\"noopener\">EFS<\/a> in June 2016 with 99.99% availability.<\/p>\n<h4 id=\"google-filestore-features\">Google Filestore Features<\/h4>\n<p>Key features of cloud filestore are shown in the table below. You can find the filestore <a href=\"https:\/\/cloud.google.com\/filestore\/pricing?ref=devopscube.com\" rel=\"noopener\">pricing details here<\/a><\/p>\n<figure class=\"kg-card kg-image-card\"><img decoding=\"async\" src=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/03\/screen-shot-2018-08-17-at-12-08-03-am-1.jpg\" class=\"kg-image\" alt=\"cloud filestore key features\" loading=\"lazy\" width=\"1782\" height=\"678\" srcset=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w600\/2025\/03\/screen-shot-2018-08-17-at-12-08-03-am-1.jpg 600w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w1000\/2025\/03\/screen-shot-2018-08-17-at-12-08-03-am-1.jpg 1000w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w1600\/2025\/03\/screen-shot-2018-08-17-at-12-08-03-am-1.jpg 1600w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/03\/screen-shot-2018-08-17-at-12-08-03-am-1.jpg 1782w\" sizes=\"auto, (min-width: 720px) 720px\"><\/figure>\n<h2 id=\"google-filestore-setup\">Google FileStore Setup<\/h2>\n<p>In this guide, I will walk you through the process of setting up a filestore using CLI and google cloud console.<\/p>\n<p>Following are the topics covered.<\/p>\n<ol>\n<li>Creating filestore using CLI<\/li>\n<li>Creating filestore using Console<\/li>\n<li>Connecting to filestore from a Google Compute Instance<\/li>\n<\/ol>\n<h3 id=\"create-filestore-using-gcloud-cli\">Create Filestore Using Gcloud CLI<\/h3>\n<p><em>Note: Filestore is in beta stage now<\/em><\/p>\n<p><strong>Step 1:<\/strong> Use the following syntax to create a filestore. Make sure you have <a href=\"https:\/\/devopscube.com\/setup-google-cloud-clisdk\/\" rel=\"noopener\">Gcloud CLI installed<\/a><\/p>\n<pre><code>gcloud beta filestore instances create &lt;name-of-filestore-instance&gt; \\\n    --location=us-central1-c \\\n    --tier=STANDARD \\\n    --file-share=name=\"&lt;filestore-name&gt;\",capacity=1TB \\\n    --network=name=\"default\",reserved-ip-range=\"&lt;IP-range&gt;\"<\/code><\/pre>\n<p>For example,<\/p>\n<pre><code>gcloud beta filestore instances create devopscube-nfs-server \\\n    --location=us-central1-c \\\n    --tier=STANDARD \\\n    --file-share=name=\"devopscubefileserver\",capacity=1TB \\\n    --network=name=\"default\",reserved-ip-range=\"10.0.0.0\/29\"<\/code><\/pre>\n<p><strong>Step 2:<\/strong> You can list the available filestore instances using the following command.<\/p>\n<pre><code>gcloud beta filestore instances list<\/code><\/pre>\n<p>Step 3: You can describe a filestore using the following command.<\/p>\n<pre><code>gcloud beta filestore instances describe &lt;filestore-instance-name&gt; --location &lt;region&gt;<\/code><\/pre>\n<p>For example,<\/p>\n<pre><code>gcloud beta filestore instances describe devopscube-demo-nfs --location us-central1-a<\/code><\/pre>\n<p>You will get the following output.<\/p>\n<pre><code>createTime: '2018-08-16T18:26:46.864763Z'\nfileShares:\n- capacityGb: '1024'\n  name: devopscubenfs\nname: projects\/devopscube\/locations\/us-central1-a\/instances\/devopscube-demo-nfs\nnetworks:\n- ipAddresses:\n  - 10.179.213.42\n  network: default\n  reservedIpRange: 10.179.213.40\/29\nstate: READY\ntier: STANDARD<\/code><\/pre>\n<h3 id=\"create-filestore-nfs-server-from-cloud-console\">Create Filestore NFS Server From Cloud Console<\/h3>\n<p><strong>Step1:<\/strong> Go to <a href=\"https:\/\/console.cloud.google.com\/filestore\/?ref=devopscube.com\" rel=\"noopener\">https:\/\/console.cloud.google.com\/filestore\/<\/a><\/p>\n<p><strong>Step 2:<\/strong> Click &#8220;Create Instance&#8221; option.<\/p>\n<figure class=\"kg-card kg-image-card\"><img decoding=\"async\" src=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/03\/filestore-googel-cloud-1.png\" class=\"kg-image\" alt=\"create NFS on google cloud\" loading=\"lazy\" width=\"1454\" height=\"536\" srcset=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w600\/2025\/03\/filestore-googel-cloud-1.png 600w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w1000\/2025\/03\/filestore-googel-cloud-1.png 1000w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/03\/filestore-googel-cloud-1.png 1454w\" sizes=\"auto, (min-width: 720px) 720px\"><\/figure>\n<p><strong>Step 3:<\/strong> Fill out the basic details as shown below.<\/p>\n<figure class=\"kg-card kg-image-card\"><img decoding=\"async\" src=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/03\/create-filestore-option-1.png\" class=\"kg-image\" alt=\"create filestore option 1\" loading=\"lazy\" width=\"1700\" height=\"1342\" srcset=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w600\/2025\/03\/create-filestore-option-1.png 600w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w1000\/2025\/03\/create-filestore-option-1.png 1000w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w1600\/2025\/03\/create-filestore-option-1.png 1600w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/03\/create-filestore-option-1.png 1700w\" sizes=\"auto, (min-width: 720px) 720px\"><\/figure>\n<p>Also, you can mention a custom network range in a selected network as shown below.<\/p>\n<figure class=\"kg-card kg-image-card\"><img decoding=\"async\" src=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/03\/filestore-address-range-1.png\" class=\"kg-image\" alt=\"filestore address range\" loading=\"lazy\" width=\"1626\" height=\"374\" srcset=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w600\/2025\/03\/filestore-address-range-1.png 600w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w1000\/2025\/03\/filestore-address-range-1.png 1000w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w1600\/2025\/03\/filestore-address-range-1.png 1600w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/03\/filestore-address-range-1.png 1626w\" sizes=\"auto, (min-width: 720px) 720px\"><\/figure>\n<p><strong>Step 4:<\/strong> The minimum size of NFS that can be created in 1 TB. Enter filestore name, required storage and click create. It will take a few minutes for the NFS instance to be created.<\/p>\n<figure class=\"kg-card kg-image-card\"><img decoding=\"async\" src=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/03\/google-filestore-properties-1.png\" class=\"kg-image\" alt=\"google filestore properties\" loading=\"lazy\" width=\"1556\" height=\"524\" srcset=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w600\/2025\/03\/google-filestore-properties-1.png 600w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w1000\/2025\/03\/google-filestore-properties-1.png 1000w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/03\/google-filestore-properties-1.png 1556w\" sizes=\"auto, (min-width: 720px) 720px\"><\/figure>\n<p><strong>Step 5: <\/strong>Click on the created instance to get the NFS details.<\/p>\n<figure class=\"kg-card kg-image-card\"><img decoding=\"async\" src=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/03\/filestore-details-1.png\" class=\"kg-image\" alt=\"filestore details\" loading=\"lazy\" width=\"1676\" height=\"136\" srcset=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w600\/2025\/03\/filestore-details-1.png 600w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w1000\/2025\/03\/filestore-details-1.png 1000w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w1600\/2025\/03\/filestore-details-1.png 1600w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/03\/filestore-details-1.png 1676w\" sizes=\"auto, (min-width: 720px) 720px\"><\/figure>\n<p>It will show all the details such as mount point and networking address range as shown below.<\/p>\n<figure class=\"kg-card kg-image-card\"><img decoding=\"async\" src=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/03\/filestore-mount-path-1.png\" class=\"kg-image\" alt=\"Google filestore mount path\" loading=\"lazy\" width=\"1922\" height=\"676\" srcset=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w600\/2025\/03\/filestore-mount-path-1.png 600w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w1000\/2025\/03\/filestore-mount-path-1.png 1000w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w1600\/2025\/03\/filestore-mount-path-1.png 1600w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/03\/filestore-mount-path-1.png 1922w\" sizes=\"auto, (min-width: 720px) 720px\"><\/figure>\n<h3 id=\"connecting-to-filestore-from-a-google-compute-instance\">Connecting to filestore from a Google Compute Instance<\/h3>\n<p><em><strong>Note: <\/strong>The instance which needs access to filestore storage should have access to the filestore network.<\/em><\/p>\n<p><strong>Step 1:<\/strong> Update the package list and install the NFS client.<\/p>\n<pre><code>sudo yum install nfs-utils<\/code><\/pre>\n<p><strong>Step 2:<\/strong> Create a mount directory for mounting the filestore volume.<\/p>\n<pre><code>sudo mkdir \/mnt\/nfs-mount<\/code><\/pre>\n<p><strong>Step 3:<\/strong> Mount the filestore volume to the mount point. You can get the mount point from the filestore details page as shown in previous steps.<\/p>\n<pre><code>sudo mount &lt;filestore-IP&gt;:\/&lt;filestore-name&gt; \/mnt\/nfs-mount<\/code><\/pre>\n<p>For example,<\/p>\n<pre><code>sudo mount 10.179.213.42:\/devopscubenfs \/mnt\/nfs-mount<\/code><\/pre>\n<p><strong>Step 4:<\/strong> Check the mount point using df command.<\/p>\n<pre><code>df -h<\/code><\/pre>\n<p>You should see the mounted NFS as shown below.<\/p>\n<figure class=\"kg-card kg-image-card\"><img decoding=\"async\" src=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/03\/mounting-google-filestore-volume-1.png\" class=\"kg-image\" alt=\"mounting google filestore volume\" loading=\"lazy\" width=\"1628\" height=\"422\" srcset=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w600\/2025\/03\/mounting-google-filestore-volume-1.png 600w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w1000\/2025\/03\/mounting-google-filestore-volume-1.png 1000w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w1600\/2025\/03\/mounting-google-filestore-volume-1.png 1600w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/03\/mounting-google-filestore-volume-1.png 1628w\" sizes=\"auto, (min-width: 720px) 720px\"><\/figure>\n<p>Let us know in the comment section if you face any errors.<\/p>\n<hr>\n<p><strong>Ngu\u1ed3n:<\/strong> <a href=\"https:\/\/devopscube.com\/nfs-servers-google-cloud-filestore\/\" target=\"_blank\" rel=\"noopener noreferrer\">Setup NFS Server On Google Cloud &#8211; Google Cloud FileStore Service \u2014 DevOpsCube<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Source: https:\/\/devopscube.com\/nfs-servers-google-cloud-filestore\/<\/p>\n","protected":false},"author":1,"featured_media":702,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-701","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops"],"_links":{"self":[{"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=\/wp\/v2\/posts\/701","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=701"}],"version-history":[{"count":0,"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=\/wp\/v2\/posts\/701\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=\/wp\/v2\/media\/702"}],"wp:attachment":[{"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=701"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}