> ## Content Index
> Fetch the complete content index at: https://devopscube.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Setup NFS Server On Google Cloud - Managed Cloud FileStore Service
- URL: https://devopscube.com/nfs-servers-google-cloud-filestore/
- Published: 2018-08-16T20:15:57.000Z
- Updated: 2025-03-16T03:37:55.000Z
- Author: devopscube
- Tags: DEVOPS, DISTRIBUTED SYSTEMS, GOOGLE CLOUD, HOW TO GUIDES, #Migrated-1741795015845, #wp, #wp-post, #Import 2025-03-12 15:57, #blog

[Google Cloud Filestore](https://cloud.google.com/filestore/?ref=devopscube.com) 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](https://aws.amazon.com/efs/?ref=devopscube.com) 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](https://cloud.google.com/filestore/pricing?ref=devopscube.com)

![cloud filestore key features](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)

## 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](https://devopscube.com/setup-google-cloud-clisdk/)

```
gcloud beta filestore instances create <name-of-filestore-instance> \
    --location=us-central1-c \
    --tier=STANDARD \
    --file-share=name="<filestore-name>",capacity=1TB \
    --network=name="default",reserved-ip-range="<IP-range>"
```

For example,

```
gcloud beta filestore instances create devopscube-nfs-server \
    --location=us-central1-c \
    --tier=STANDARD \
    --file-share=name="devopscubefileserver",capacity=1TB \
    --network=name="default",reserved-ip-range="10.0.0.0/29"
```

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

```
gcloud beta filestore instances list
```

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

```
gcloud beta filestore instances describe <filestore-instance-name> --location <region>
```

For example,

```
gcloud beta filestore instances describe devopscube-demo-nfs --location us-central1-a
```

You will get the following output.

```
createTime: '2018-08-16T18:26:46.864763Z'
fileShares:
- capacityGb: '1024'
  name: devopscubenfs
name: projects/devopscube/locations/us-central1-a/instances/devopscube-demo-nfs
networks:
- ipAddresses:
  - 10.179.213.42
  network: default
  reservedIpRange: 10.179.213.40/29
state: READY
tier: STANDARD
```

### Create Filestore NFS Server From Cloud Console

**Step1:** Go to [https://console.cloud.google.com/filestore/](https://console.cloud.google.com/filestore/?ref=devopscube.com)

**Step 2:** Click "Create Instance" option.

![create NFS on google cloud](https://storage.ghost.io/c/5f/2f/5f2f4d20-2abf-4534-8d40-7aa233aedd43/content/images/2025/03/filestore-googel-cloud-1.png)

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

![create filestore option 1](https://storage.ghost.io/c/5f/2f/5f2f4d20-2abf-4534-8d40-7aa233aedd43/content/images/2025/03/create-filestore-option-1.png)

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

![filestore address range](https://storage.ghost.io/c/5f/2f/5f2f4d20-2abf-4534-8d40-7aa233aedd43/content/images/2025/03/filestore-address-range-1.png)

**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](https://storage.ghost.io/c/5f/2f/5f2f4d20-2abf-4534-8d40-7aa233aedd43/content/images/2025/03/google-filestore-properties-1.png)

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

![filestore details](https://storage.ghost.io/c/5f/2f/5f2f4d20-2abf-4534-8d40-7aa233aedd43/content/images/2025/03/filestore-details-1.png)

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

![Google filestore mount path](https://storage.ghost.io/c/5f/2f/5f2f4d20-2abf-4534-8d40-7aa233aedd43/content/images/2025/03/filestore-mount-path-1.png)

### 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.

```
sudo yum install nfs-utils
```

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

```
sudo mkdir /mnt/nfs-mount
```

**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.

```
sudo mount <filestore-IP>:/<filestore-name> /mnt/nfs-mount
```

For example,

```
sudo mount 10.179.213.42:/devopscubenfs /mnt/nfs-mount
```

**Step 4:** Check the mount point using df command.

```
df -h
```

You should see the mounted NFS as shown below.

![mounting google filestore volume](https://storage.ghost.io/c/5f/2f/5f2f4d20-2abf-4534-8d40-7aa233aedd43/content/images/2025/03/mounting-google-filestore-volume-1.png)

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