Getting Started with NetApp Cloud Manager & Cloud Volumes ONTAP for Google Cloud

Join Sign in

Getting Started with NetApp Cloud Manager & Cloud Volumes ONTAP for Google Cloud

1 hour 30 minutes 5 Credits

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.


Google Cloud Self-Paced Labs


In this lab you will learn about NetApp Cloud Manager and how to deploy NetApp Cloud Volumes ONTAP for Google Cloud on top of Compute Engine, Persistent Disk, and Cloud Storage. You will get an initial practical experience in setting up Cloud Volumes ONTAP and use it as an NFS storage for your applications. This lab is derived from Cloud Manager’s documentation published by NetApp.


In this lab, you will learn how to:

  • Log in to the NetApp Cloud Manager

  • Deploy a Cloud Volumes ONTAP instance

  • Create a FlexVol volume

  • Access FlexVol volume from a Linux VM using NFS

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 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 Chrome OS device, 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 left panel. Then copy and paste the password.

    Important: You must use the credentials from the left panel. Do not use your Google Cloud Training 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.


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


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

(Example output)

Credentialed accounts: -

You can list the project ID with this command:

gcloud config list project


[core] project = <project_ID>

(Example output)

[core] project = qwiklabs-gcp-44776a13dea667a6

Set up Service Accounts

  1. Run the following commands in the cloud shell to set some environment variables.

export PROJECT_ID=$(gcloud config get-value project) export serviceAccount="netapp-cloud-manager@"$PROJECT_ID"" export serviceAccount2="netapp-cvo@"$PROJECT_ID""
  1. Next, run the following commands to assign roles to the pre-created netapp-cloud-manager service account.

# assign roles to the netapp-cloud-manager service account gcloud projects add-iam-policy-binding $PROJECT_ID \ --member="serviceAccount:${serviceAccount}" \ --role='roles/iam.serviceAccountAdmin' gcloud projects add-iam-policy-binding $PROJECT_ID \ --member="serviceAccount:${serviceAccount}" \ --role='roles/storage.objectAdmin' gcloud projects add-iam-policy-binding $PROJECT_ID \ --member="serviceAccount:${serviceAccount}" \ --role='roles/deploymentmanager.editor' gcloud projects add-iam-policy-binding $PROJECT_ID \ --member="serviceAccount:${serviceAccount}" \ --role='roles/logging.admin' gcloud projects add-iam-policy-binding $PROJECT_ID \ --member="serviceAccount:${serviceAccount}" \ --role='roles/compute.admin' gcloud projects add-iam-policy-binding $PROJECT_ID \ --member="serviceAccount:${serviceAccount}" \ --role='roles/cloudkms.admin' gcloud projects add-iam-policy-binding $PROJECT_ID \ --member="serviceAccount:${serviceAccount}" \ --role='roles/storage.admin'

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

Assign roles to service account
  1. Lastly, create the netapp-cvo service account and assign it the relevant roles.

# create netapp-cvo service account gcloud iam service-accounts create netapp-cvo --display-name=netapp-cvo gcloud projects add-iam-policy-binding $PROJECT_ID \ --member="serviceAccount:${serviceAccount2}" \ --role='roles/storage.objectAdmin' gcloud projects add-iam-policy-binding $PROJECT_ID \ --member="serviceAccount:${serviceAccount2}" \ --role='roles/storage.admin' gcloud iam service-accounts add-iam-policy-binding ${serviceAccount2} --member="serviceAccount:${serviceAccount}" --role='roles/iam.serviceAccountUser'

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

Set up Service Accounts

Set up a new ONTAP storage environment

In this section you will log in to NetApp Cloud Manager, NetApp’s data lifecycle management platform, and create a new Cloud Volumes ONTAP storage environment on Google Cloud infrastructure.

  1. From the Navigation Menu, go to Compute Engine > VM instances. You should see the cloudmanager VM already deployed for you.


  1. Click the External IP to connect to the VM in a new window.
If Chrome gives you a privacy error, you can still continue by clicking Advanced, then Proceed.
  1. Once you are on the Cloud Manager SaaS setup page, you can set up your NetApp Account.

First click Sign Up, then enter in your email address and a password. Fill out the rest of the fields to authenticate yourself with NetApp’s Cloud Central and click Sign Up to log in to Cloud Manager.


  1. Next, you will be prompted to create an Account Name and a Cloud Manager name. For these, you can just use user. Click Let's Start. Click on Lets go to Cloud Manager Saas.

  2. Before you add a working environment, navigate to the gear icon on the top-right of the page then click Connector Settings.

  3. For Automatic Cloud Volumes ONTAP update during deployment, click the box and then uncheck the Automatically update Cloud Volumes ONTAP box to turn the updates off. Click Save. Your configuration settings should resemble the following:


  1. Click Cloud Manager on the top left to navigate to the home page. Click Add Working Environment.
If you happen to run into any issues adding a Working Environment (i.e server fault), this can be due to Cloud Manager automatically updating. If this happens, please wait a few minutes, refresh the page, and try again.


  1. Choose a Location: select Google Cloud.


  1. Define Your Working Environment: choose Cloud Volumes ONTAP Single Node and click on Continue.


  1. Specify a cluster name, optionally add labels, and then specify a new password for the default admin account. Click Continue.
Note: The service account netapp-cvo has been pre-created for you with the Storage Admin role.


  1. For Backup to Cloud, leave the default configuration and click Continue.

  2. Location & Connectivity: For the Google Cloud Region and Google Cloud Zone, use us-central1 and us-central1-a, respectively. For the VPC, Subnet, and Firewall Policy, leave as default. Select the checkbox to confirm network connectivity to Google Cloud storage for data tiering, and click Continue.


  1. Cloud Volumes ONTAP License & NSS Account: Leave with defaults and click Continue.


  1. Preconfigured Packages: click Create my own configuration.

  2. In this section, first click Change version and select ONTAP-9.7P5 version from the drop down. Click Apply. Next, select Cloud Volumes ONTAP Standard and for the Machine Type n1-highmem-4. Click Continue.


  1. Underlying Storage Resources: Choose Standard and for the Google Cloud Disk Size select 100 GB. Click Continue.


  1. WORM (write once, read many): keep the settings as default and click Continue.

  2. Data Tiering in Google Cloud: Leave all the fields as default and click Continue.

Note: the service account netapp-cvo has been pre-created for you with the Storage Admin role.


  1. Create Volume: Skip this as you will create a volume and access it in the next sections.

  2. Review & Approve: Review and confirm your selections:

  • Review details about the configuration.
  • Click More information to review details about support and the Google Cloud resources that Cloud Manager will purchase.
  • Select both checkboxes.
  • Click Go.

Great! You’re done. Now, sit back while Cloud Manager deploys your Cloud Volumes ONTAP system on top of Google Cloud resources (Compute Engine and Persistent Disks + Cloud Storage). This should take around ten minutes to complete. In the meantime, you can check out the NetApp documentation for Cloud Volumes ONTAP for Google Cloud.

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

Set up a new ONTAP Storage Environment

Create an ONTAP Volume

In this section you will learn how to create a Cloud Volumes ONTAP volume, choose the access protocol to be used, and enable storage efficiencies and cold data tiering.

  1. After your Cloud Volumes ONTAP system is deployed, on the Working Environments page, double click the new Working Environment added to enter the Volumes page.

  2. In the Volumes page on the right-hand side, click on Add New Volume.


  1. Edit the Volume Details, Protection & Protocol section with the following information:
  • Name your volume data1
  • Set size to 10 (size set in GB)
  • Leave Snapshot Policy with default
  • Select NFS as protocol
  • Verify Access Control is set to Custom export policy
  • Verify Custom export policy is set with the VPC’s CIDR range
  • Click Continue


  1. Update the Usage Profile, Disk Type & Tiering Policy with the following:
  • Verify the Storage Efficiency is marked (to enable NetApp’s data footprint reduction technologies).
  • For disk type pick Standard.
  • Leave Tiering data to object storage with default settings.
  • Click Go.


Great! You have just created your first Cloud Volumes ONTAP volume to store your applications data optimized for capacity and cost, leveraging NetApp’s data footprint reduction technologies (thin provisioning, deduplication and compression) with intelligent data management - frequently accessed (hot) data remains on SSD-backed PD while infrequently accessed (cold) data is seamlessly moved to Cloud Storage.

Access the Volume

In this section you will access the Cloud Volumes ONTAP volume created in Section 2 from a Linux VM using the NFS protocol.

  1. Go back to the Cloud Console. Run the following commands in Cloud Shell to reset your PROJECT_ID environment variable and create a new linux-vm instance:

export PROJECT_ID=$(gcloud config get-value project) gcloud beta compute --project=$PROJECT_ID instances create linux-vm --zone=us-central1-a --machine-type=n1-standard-1
  1. After the VM has been deployed, navigate back to the NetApp Cloud Manager page.

  2. On the Volumes page, locate the data1 volume and click on its triple-bar.


  1. From the list of operations revealed, click on Mount Command:


Then click on Copy to copy the command to your clipboard:


  1. Back in the Cloud Console, from the Navigation Menu, navigate to Compute Engine > VM instances

  2. On the VM instances page, locate the linux-vm instance and connect to it by clicking on SSH.


  1. In the linux VM SSH window, create a local directory under /mnt named data1 that would serve as a mount point.

sudo mkdir /mnt/data1
  1. Before mounting, use the following command to install nfs-common:

sudo apt install nfs-common -y
  1. Next, paste the Mount Command (copied on step 2) and replace <dest_dir> with the /mnt/data1 directory created. Press Enter to mount Cloud Volumes ONTAP volume using NFS.

# you may need to change command here sudo mount /mnt/data1
  1. Verify that your volume is properly mounted using the following native Linux command.

df -h

You should see the data1 volume mounted on /mnt/data.

Great! You have just mounted the volume created in the previous section, and it’s ready to be accessed by your applications that use NFS.

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

Access the Volume


In this lab, you got your first NetApp Cloud solutions skills by using Cloud Manager to deploy Cloud Volume ONTAP for Google Cloud on top of Google Cloud infrastructure. You have also learned how to create volumes that serve as data containers, and provide your applications with an optimized NFS storage.

Next Steps / Learn More

Be sure to check out the following to receive more hands-on practice with NetApp:

Google Cloud Training & 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 August 27, 2021

Lab Last Tested August 16, 2021

Copyright 2021 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.