How To Create File Store In GCP ?
Last Updated :
08 Apr, 2024
In other words, a Google Cloud Platform (GCP) is like having a high-performance shared drive in the cloud. It's a service that makes creating and managing file and application storage easy. Filestore is meant to manage tasks like file serving to websites and storing application data that needs to be shared among numerous users or systems. It enables you to store and access your data securely. It's an easy and reliable way to arrange and handle your data and files on the cloud.
Features Of Filestore
- Shared File Storage: Consider an example in which you have several cloud-based virtual machines (VMs) that need access to the same files, such as application information or configuration files. Filestore offers one central location for all VMs to access and store this data to ensure consistency and dependability.
- Content Management: Filestore can be used to efficiently and securely store huge numbers of media items, such as documents, videos, and photographs, if your website or application depends on their storage. This guarantees that consumers can access your material quickly and that it is constantly available.
- Data Processing: Filestore can serve as a shared storage solution for input and output files for scenarios where data analysis is required. For instance, Filestore can offer a central location for storing the data that must be completed and the analysis's output if you share the machine learning or data analysis activities across several compute instances.
- Application Data Sharing: Application information can also be shared between multiple instances of the same application using FileStore. Filestore can be used, for example, to store configuration files, user session data, and other shared resources that are required to be accessible by all instances of the program's functionality when the web application is set up in a distributed system.
The Architecture Of FileStore in GCP
Google Cloud Platform (GCP) simplifies managing operating systems (OS) for Network File System (NFS) clients. Traditionally, an NFS server requires manual OS patching and maintenance. GCP offers Cloud Filestore, a managed file storage service, that replaces the need for a separate NFS server. Since GCP handles Cloud Filestore, they are responsible for patching and maintaining the underlying OS, eliminating this task for the user. This allows you to focus on your applications and data without worrying about server maintenance.

Steps to create Filestore in GCP
Step 1: Click on menu and select the filestore under the storage group.

Step 2: Click on create instance as shown image below.

Step 3: Enter the filestore details like instance id, select the instance type based on our requirement. Selct the storage type.

Step 4: Provide the more details like storage, region, vpc network and fileshare name as shown image below. After all details provided click on create it will take few minutes to create filestore.

Step 5: Below image shows the filestore created on GCP

Mount the filestore to clint systems for that we need to follow the below process. Make sure you need to allow the required ports under the network.
Step 7: Below command we need to install nfs-common to connect the nfs server. On the client server, we need to install a package called nfs-common
, which provides NFS functionality without including any server components.
sudo apt install nfs-common

Step 8: Below image shows the mount point of filestore

Step 9: Create directory on client machine
mkdir gfg

Below command used for mount the file store to client machine. For parminant solution we can provide the mount path on fstab for more detals follow the official documentation.
sudo mount 10.150.136.122:/gfgnfs gfg
Step 10: If you want delet the filestore you can follow the below proceess.

Advantages of Filestore
- High Performance: With low latency and high throughput, Filestore provides high-performance file storage that is ideal for a variety of applications needing quick access to data.
- Managed Service: When Google Cloud deals with all of the management, there is no need for manual provisioning, scaling, or maintenance of the storage infrastructure, which minimizes operational costs.
- Scalability: Filestore adapts quickly to increasing storage needs, allowing apps to access and store massive volumes of data without being limited by capacity issues.
- Integration: Its smooth integration with other Google Cloud services, like Compute Engine and Kubernetes Engine, makes file sharing accessible from cloud-based apps and facilitates simple deployment.
- Data Durability: By replicating files over multiple storage nodes in a region, Filestore offers resilience against hardware failures and guarantees data integrity, both which both contribute to data long-term viability
Conclusion
By following the procedures outlined in the aforementioned blog post, users can seamlessly set up Filestore on Google Cloud Platform (GCP), including creating the filestore, mounting the NFS share on client machines, and properly deleting the filestore when no longer needed.
Similar Reads
How To Create VPC Network In GCP?
A VPC or Virtual Private Cloud allows you to secure your virtual networking environment including IP addresses, subnets, and network gateways. VPC allows users to create a virtually protected environment for their virtual instances on the Cloud platform and have complete access to the environment. V
10 min read
How To Delete & Create VPC Network In The GCP
Google Cloud Platform (GCP) provides a hearty systems administration foundation that permits clients to make and manage virtual organizations, known as virtual private clouds (VPCs). VPCs empower clients to safely interface with their cloud assets while keeping up with command-over network arrangeme
7 min read
How To Create Cloud Storage Buckets In GCP ?
It is becoming very important to protect and secure our data since more threats and attacks can be seen nowadays. Cyberattacks and data breaches are very common, and it is very difficult to track them. Some cases of attacks also go unreported and undetected. Before facing such attacks and threats on
8 min read
How To Create a Free Tier Account on GCP?
Like rivals Amazon Web Services (AWS) and Microsoft Azure, GCP is a provider of public clouds. Customers can use Google's global data center-based computing resources for free or pay-per-use through GCP and other cloud suppliers. GCP offers a comprehensive set of computing services that include ever
1 min read
How To Create A GCP Project ?
Google Cloud Platform is one of the leading providers of cloud computing in the industry. GCP provides multiple services, like infrastructure as a service (IaaS), platform as a service (PaaS), and many more. Using the Google Cloud Platform, businesses can get rid of managing physical servers and ins
7 min read
How To Create a Pub/Sub Topic on GCP?
Pub/Sub is a messaging service that allows you to send and receive messages between independent applications. Separating the senders and receivers enables secure and consistent communication between independently developed applications. With Pub/Sub, you can expect quick delivery of messages while e
2 min read
How To Create Alerts In GCP ?
Monitoring through the Google Cloud Platform (GCP) enables resource monitoring in the cloud. You will be able to monitor their performance, discover problems early, and make sure everything goes according to plan. You can maintain control over your cloud services and the smooth operation of your app
5 min read
How To Create VPC In GCP Using Terraform ?
When we are building an application to be hosted on a Cloud Platform we must configure networks and take security measures. If you are building an application that is open to users over the internet, you might want to control who gets access or not, and how users interact with each other. This is es
9 min read
How To Delete Project In GCP ?
Google Cloud Platform is one of the leading Cloud service providers in the market of Cloud Computing providing various cloud services to developers and organizations. Google Cloud helps organizations to migrate to online platforms and get rid of managing physical servers for operation. Services like
7 min read
How to Share files on Google Drive
In today's fast-paced digital world, efficient file sharing is crucial for smooth collaboration and productivity. Whether you're working on a team project, sharing important documents with colleagues, or simply distributing files to friends and family, Google Drive offers a seamless and effective so
4 min read