Checkpoint
Create a storage pool
/ 40
Create a volume
/ 40
Mount a volume
/ 20
Getting Started with Google Cloud NetApp Volumes
This lab was developed with our partner, NetApp. Your personal information may be shared with NetApp, the lab sponsor, if you have opted-in to receive product updates, announcements, and offers in your Account Profile.
ISV015
Overview
Google Cloud NetApp Volumes is a fully managed data storage service that lets you move file-based applications to Google Cloud. It has support for Network File System (NFSv3 and NFSv4.1) and Server Message Block (SMB) protocols built-in, so you don't need to re-architect your applications and can continue to get persistent storage for your applications.
This lab teaches you how to create and mount an NFSv3 volume.
Objectives
In this lab you will learn how to:
- Deploy a NetApp Volumes Storage Pool.
- Create an NFS Volume.
- Mount the NFS volume on a Linux virtual machine.
Prerequisites
A basic understanding of private service access.
Setup and requirements
Before you click the Start Lab button
Read these instructions. Labs are timed and you cannot pause them. The timer, which starts when you click Start Lab, shows how long Google Cloud resources will be made available to you.
This Qwiklabs hands-on lab lets you do the lab activities yourself in a real cloud environment, not in a simulation or demo environment. It does so by giving you new, temporary credentials that you use to sign in and access Google Cloud for the duration of the lab.
What you need
To complete this lab, you need:
- Access to a standard internet browser (Chrome browser recommended).
- Time to complete the lab.
Note: If you already have your own personal Google Cloud account or project, do not use it for this lab.
Note: If you are using a Pixelbook, open an Incognito window to run this lab.
How to start your lab and sign in to the Google Cloud Console
-
Click the Start Lab button. If you need to pay for the lab, a pop-up opens for you to select your payment method. On the left is a panel populated with the temporary credentials that you must use for this lab.
-
Copy the username, and then click Open Google Console. The lab spins up resources, and then opens another tab that shows the Sign in page.
Tip: Open the tabs in separate windows, side-by-side.
-
In the Sign in page, paste the username that you copied from the Connection Details panel. Then copy and paste the password.
Important: You must use the credentials from the Connection Details panel. Do not use your Qwiklabs credentials. If you have your own Google Cloud account, do not use it for this lab (avoids incurring charges).
-
Click through the subsequent pages:
- Accept the terms and conditions.
- Do not add recovery options or two-factor authentication (because this is a temporary account).
- Do not sign up for free trials.
After a few moments, the Cloud Console opens in this tab.
Activate Cloud Shell
Cloud Shell is a virtual machine that is loaded with development tools. It offers a persistent 5GB home directory and runs on the Google Cloud. Cloud Shell provides command-line access to your Google Cloud resources.
In the Cloud Console, in the top right toolbar, click the Activate Cloud Shell button.
Click Continue.
It takes a few moments to provision and connect to the environment. When you are connected, you are already authenticated, and the project is set to your PROJECT_ID. For example:
gcloud
is the command-line tool for Google Cloud. It comes pre-installed on Cloud Shell and supports tab-completion.
You can list the active account name with this command:
(Output)
(Example output)
You can list the project ID with this command:
(Output)
(Example output)
Task 1. Create a storage pool
-
In the Google Cloud console, search for the words NetApp Volumes.
-
Enable the NetApp API.
Storage pools act as containers for volumes. All volumes in a storage pool share the following information:
- Location
- Service level
- Virtual Private Cloud (VPC) network
- Active Directory policy
- LDAP use for NFS volumes, if applicable
- Customer-managed encryption key (CMEK) policy
- Zonal or regional pool availability
-
Select storage pools from the menu on the left.
-
Click create. Create the storage pool using the following information
- Storage pool name = pool1
- Location =
- Service level = premium
- Capacity = 2048
- Network = default
Note
Google Cloud NetApp Volumes use private service access to communicate with the resources in the project.
-
Click set up connection.
-
Select the Use an automatically allocated IP range option to allocate an IP range. Click on continue and then click on create connection
Once that the private service access connection is created, you will see the green check.
-
Uncheck the Active directory policy. Skip the remaining options and click create.
Note
This process can take several minutes, wait until the volume creation process finishes.
Click Check my progress to verify that you've performed the above task.
Task 2. Create a volume
A volume is a file system container in a storage pool that stores applications, databases, and user data.
-
Select Volumes from the menu on the left.
-
Click create. Create the volume using the following information:
- Name = volume1
- Select Storage Pool = pool1
- Share name = share1
- Capacity = 100
- Protocol = NFSv3
- Leave the Configuration for selected protocol(s) unchecked.
- Expand Export rules and click on Add rules. Enter the following information:
-
Allowed Clients = 10.128.0.0/9
-
Access = Read & Write
-
Root access = on
Skip the remaining options and click create.
Note
This process can take several minutes, wait until the volume creation process finishes.
Click Check my progress to verify that you've performed the above task.
Task 3. Mount a volume
-
Select Volumes from the menu on the left. Select the more actions menu on the right as shown in the image. Select Mount Instructions.
-
Copy the instructions to mount the volume.
-
Navigate to the VM Instances under the Compute Engine service section. You will find the active GCE instance vm1.
-
Connect to the VM1 using SSH.
-
Follow the instructions that you copied from step 2
- Install the nfs utilities on the Linux VM
- Create a directory in the VM vm1 based on the NetApp Volumes instructions.
- Mount the volume based on the NetApp Volumes instructions (note that your IP address can be different than the one in below command).
- Verify that the volume has been mounted to your vm successfully.
Click Check my progress to verify that you've performed the above task.
Congratulations!
In this lab you learnt how to successfully create a volume within a storage pool and mounta NFS volume from a Linux virtual machine.
Next steps / Learn more
Be sure to check out the official NetApp Volumes documentation:
Google Cloud training and certification
...helps you make the most of Google Cloud technologies. Our classes include technical skills and best practices to help you get up to speed quickly and continue your learning journey. We offer fundamental to advanced level training, with on-demand, live, and virtual options to suit your busy schedule. Certifications help you validate and prove your skill and expertise in Google Cloud technologies.
Manual Last Updated July 21th, 2024
Copyright 2024 Google LLC All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.