arrow_back

Getting Started with Google Cloud NetApp Volumes

Anmelden Teilnehmen
Testen und teilen Sie Ihr Wissen mit unserer Community.
done
Sie erhalten Zugriff auf über 700 praxisorientierte Labs, Skill-Logos und Kurse

Getting Started with Google Cloud NetApp Volumes

Lab 40 Minuten universal_currency_alt 1 Guthabenpunkt show_chart Einsteiger
info Dieses Lab kann KI-Tools enthalten, die den Lernprozess unterstützen.
Testen und teilen Sie Ihr Wissen mit unserer Community.
done
Sie erhalten Zugriff auf über 700 praxisorientierte Labs, Skill-Logos und Kurse

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

Google Cloud Self-Paced Labs

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

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

    Open Google Console

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

    Sign in

    Tip: Open the tabs in separate windows, side-by-side.

  3. 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).

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

Cloud Shell icon

Click Continue.

cloudshell_continue.png

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:

Cloud Shell Terminal

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:

gcloud auth list

(Output)

Credentialed accounts: - <myaccount>@<mydomain>.com (active)

(Example output)

Credentialed accounts: - google1623327_student@qwiklabs.net

You can list the project ID with this command:

gcloud config list project

(Output)

[core] project = <project_ID>

(Example output)

[core] project = qwiklabs-gcp-44776a13dea667a6

Task 1. Create a storage pool

  1. In the Google Cloud console, search for the words NetApp Volumes.

    getting_started_gcnv_01
  2. Enable the NetApp API.

    getting_started_gcnv_02

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
  1. Select storage pools from the menu on the left.

    getting_started_gcnv_03
  2. Click create. Create the storage pool using the following information

    getting_started_gcnv_04
  • 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.

  1. Click set up connection.

    getting_started_gcnv_05
  2. Select the Use an automatically allocated IP range option to allocate an IP range. Click on continue and then click on create connection

    getting_started_gcnv_06

    Once that the private service access connection is created, you will see the green check.

    getting_started_gcnv_07
  3. 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. Create a storage pool

Task 2. Create a volume

A volume is a file system container in a storage pool that stores applications, databases, and user data.

  1. Select Volumes from the menu on the left.

  2. Click create. Create the volume using the following information:

    getting_started_gcnv_08
  • Name = volume1
  • Select Storage Pool = pool1
  • Share name = share1
  • Capacity = 100
  • Protocol = NFSv3
  • Leave the Configuration for selected protocol(s) unchecked.
  1. 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.

    getting_started_gcnv_09

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. Create a volume

Task 3. Mount a volume

  1. Select Volumes from the menu on the left. Select the more actions menu on the right as shown in the image. Select Mount Instructions.

    getting_started_gcnv_10
  2. Copy the instructions to mount the volume.

  3. Navigate to the VM Instances under the Compute Engine service section. You will find the active GCE instance vm1.

    getting_started_gcnv_11
  4. Connect to the VM1 using SSH.

  5. Follow the instructions that you copied from step 2

  • Install the nfs utilities on the Linux VM
sudo apt-get install nfs-common -y
  • Create a directory in the VM vm1 based on the NetApp Volumes instructions.
sudo mkdir /share1
  • Mount the volume based on the NetApp Volumes instructions (note that your IP address can be different than the one in below command).
sudo mount -t nfs -o rw,hard,rsize=65536,wsize=65536,vers=3,tcp 172.23.64.4:/share1 /share1
  • Verify that the volume has been mounted to your vm successfully.
df -h | grep share1

Click Check my progress to verify that you've performed the above task. Mount a volume

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.

Diese Inhalte sind derzeit nicht verfügbar

Bei Verfügbarkeit des Labs benachrichtigen wir Sie per E-Mail

Sehr gut!

Bei Verfügbarkeit kontaktieren wir Sie per E-Mail