Setup NFS Server On Google Cloud – Managed Cloud FileStore Service

Google Cloud Filestore 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 EFS in June 2016 with 99.99% availability.

Google Filestore Features

Key features of cloud filestore are shown in the table below. You can find the filestore pricing details here

cloud filestore key features

Google FileStore Setup

In this guide, I will walk you through the process of setting up a filestore using CLI and google cloud console.

Following are the topics covered.

  1. Creating filestore using CLI
  2. Creating filestore using Console
  3. Connecting to filestore from a Google Compute Instance

Create Filestore Using Gcloud CLI

Note: Filestore is in beta stage now

Step 1: Use the following syntax to create a filestore. Make sure you have Gcloud CLI installed

For example,

Step 2: You can list the available filestore instances using the following command.

Step 3: You can describe a filestore using the following command.

For example,

You will get the following output.

Create Filestore NFS Server From Cloud Console

Step1: Go to https://console.cloud.google.com/filestore/

READ  How To Setup and Configure Kubernetes Cluster On Google Cloud (GCE)

Step 2: Click “Create Instance” option.

create NFS on google cloud

Step 3: Fill out the basic details as shown below.

create filestore option 1

Also, you can mention a custom network range in a selected network as shown below.

filestore address range

Step 4: 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.

google filestore properties

Step 5: Click on the created instance to get the NFS details.

filestore details

It will show all the details such as mount point and networking address range as shown below.

Google filestore mount path

Connecting to filestore from a Google Compute Instance

Note: The instance which needs access to filestore storage should have access to the filestore network.

Step 1: Update the package list and install the NFS client.

Step 2: Create a mount directory for mounting the filestore volume.

Step 3: Mount the filestore volume to the mount point. You can get the mount point from the filestore details page as shown in previous steps.

For example,

Step 4: Check the mount point using df command.

You should see the mounted NFS as shown below.

mounting google filestore volume

Let us know in the comment section if you face any errors.

Free DevOps Resources

Get DevOps news, tutorials and resources in your inbox. A perfect way If you want to get started with devops. Like you, we dont like spam.