
Before you begin
- Labs create a Google Cloud project and resources for a fixed time
- Labs have a time limit and no pause feature. If you end the lab, you'll have to restart from the beginning.
- On the top left of your screen, click Start lab to begin
Assign roles to service account
/ 10
Set up Service Accounts
/ 10
Set up a new ONTAP storage environment
/ 20
Resize a NetApp Volume Non-Disruptively
/ 10
Customize snapshots policies
/ 20
Create a NetApp FlexGroup Volume
/ 20
Access the Volume from Windows and Linux
/ 10
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.
In this lab, you will learn how to leverage additional management tools available with Cloud Volumes ONTAP for Google Cloud. You will get practical experience using Cloud Volumes ONTAP's builtin GUI and CLI, known as ONTAP System Manager and the clustershell respectively. During the lab you will use these built in tools to get familiar with additional, commonly used, capabilities available in Cloud Volumes ONTAP, that are not yet available in NetApp BlueXP, such as resizing a NetApp volume, create customized snapshot policy, provision a NetApp FlexGroup volume, and access the same volume using NFS and SMB. This lab is derived from BlueXP's and ONTAP 9 documentation published by NetApp.
In this lab, you will learn how to perform the following tasks:
This is an advanced lab and some knowledge of NetApp is recommended. It is encouraged to be familiar with using NetApp BlueXP and knowing how to perform foundational tasks in Google Cloud. The labs Getting Started with NetApp BlueXP & Cloud Volumes ONTAP for Google Cloud and Managing SMB Workloads and Optimizing Storage Usage with NetApp BlueXP are good introductions.
You will need to use RDP to log into a Windows VM. You can either use the Chrome RDP for Google Cloud extension or Microsoft Remote Desktop. If you are on a Windows machine, it is highly recommended to use Microsoft Remote Desktop as it will be a much better user experience.
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 are made available to you.
This hands-on lab lets you do the lab activities in a real cloud environment, not in a simulation or demo environment. It does so by giving you new, temporary credentials you use to sign in and access Google Cloud for the duration of the lab.
To complete this lab, you need:
Click the Start Lab button. If you need to pay for the lab, a dialog opens for you to select your payment method. On the left is the Lab Details pane with the following:
Click Open Google Cloud console (or right-click and select Open Link in Incognito Window if you are running the Chrome browser).
The lab spins up resources, and then opens another tab that shows the Sign in page.
Tip: Arrange the tabs in separate windows, side-by-side.
If necessary, copy the Username below and paste it into the Sign in dialog.
You can also find the Username in the Lab Details pane.
Click Next.
Copy the Password below and paste it into the Welcome dialog.
You can also find the Password in the Lab Details pane.
Click Next.
Click through the subsequent pages:
After a few moments, the Google Cloud console opens in this tab.
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.
Click Activate Cloud Shell at the top of the Google Cloud console.
Click through the following windows:
When you are connected, you are already authenticated, and the project is set to your Project_ID,
gcloud
is the command-line tool for Google Cloud. It comes pre-installed on Cloud Shell and supports tab-completion.
Output:
Output:
gcloud
, in Google Cloud, refer to the gcloud CLI overview guide.
netapp-cloud-manager
service account:Click Check my progress to verify that you've performed the above task.
netapp-cvo
service account and assign it the relevant roles:Click Check my progress to verify that you've performed the above task.
In this section you will log in to NetApp BlueXP, NetApp’s data lifecycle management platform, and create a new Cloud Volumes ONTAP storage environment on Google Cloud infrastructure.
cloudmanager
VM already deployed for you.http://<IP Address>/
.Next, you will be prompted to create an Account Name and a BlueXP name. For these, you can just use user
. Click Let's Start. You should now be redirected to the BlueXP SaaS page.
Before you add a working environment, navigate to the gear icon on the top-right of the page then click Connector Settings > General.
Define Your Working Environment: choose Cloud Volumes ONTAP and click on Add new.
Specify a cluster name, optionally add labels, and then specify a password for the default admin account. Click Continue.
netapp-cvo
has been pre-created for you with the Storage Admin role.
Preconfigured Packages: click Change Configuration.
On the Licensing section, first click Change version and select ONTAP-9.7P5
version from the drop down. Click Apply. Next, from the Machine Type dropdown list select n1-highmem-4
. Click Continue.
Standard
and for the Google Cloud Disk Size select 100 GB
. Click Continue.WORM (write once, read many): keep the settings as default and click Continue.
On the Create Volume page, you will create a NetApp volume that will be used in the next sections. Use the following details:
data1
Your configuration settings should resemble the following:
Great! You're done with your working environment setup. Now, sit back and relax while BlueXP deploys your Cloud Volumes ONTAP system (this should take around ten minutes to complete) and your Active Directory (deployed for you upon lab startup) is being created.
Click Check my progress to verify that you've performed the above task.
Every ONTAP system, whether deployed on-premise on top of engineered hardware or on public cloud infrastructure, has a built-in GUI, known as ONTAP System Manager, and a CLI, known as the clustershell. In this section you'll be accessing both of these management tools and in the following ones you'll execute some common advanced operations. Essentially, through clustershell any ONTAP operation can be performed, while ONTAP System Manager contains all the ongoing management operations. It is important to note that operations available through BlueXP should be performed through BlueXP, since some operations require interfacing and orchestrating Google Cloud infrastructure services.
On the Cloud Console, navigate to Compute Engine → VM Instances and locate your windows-vm
.
Set Windows password from the Connect/RDP menu, Copy and Save the password.
windows-vm
External IP address.Next, open a remote desktop connection and log in to the windows virtual machine. To do this, locate the downloaded RDP file and double click it. When prompted for password, enter the password copied on step 2.
Once you have logged into your Windows instance, open up a new Google Chrome window and proceed to the next section.
Once your Cloud Volumes ONTAP system has deployed, from the Storage Canvas click on the Cloud Volumes ONTAP system.
On the opened right panel, locate and click the information button and copy the Cluster management IP.
Back in the windows-vm RDP window, paste your following URL https://<cluster_management_ip>
into Google Chrome.
When the Chrome warning appears, click on Advanced and then on Proceed to cluster_management_ip
(unsafe).
ONTAP System Manager login screen will appear shortly after.
Welcome to ONTAP System Manager! Here's a quick orientation:
Now, you'll disable the INACTIVITY TIMEOUT so you won't have to log in again throughout the lab.
You're all set! In just a few minutes you'll get back to ONTAP System Manager and perform some operations.
On the Cloud Console go to the VM instances page (Compute > Compute Engine > VM instances), locate the cloudmanager
instance and connect to it by clicking on SSH.
In order to maintain continuous SSH connectivity to the cloudmanager instance run the following command:
ssh admin@<cluster_management_ip>
(replacing with your actual Cluster Management IP address)Your screen should now look like this:
Welcome to ONTAP Clustershell! Here are the basic rules:
root
directory or /
(default).?
or Tab for help and to list the available directories/commands.man <directory/command>
to view its manual page.cd <directory>
to change directory.top
command to go to the root directory and up or cd ..
to go one level up.You're CLI ready! It's time to put these built-in tools into action. In each of the following sections you will perform operations using the UI, then have a description of how to perform the same operation with the other.
The provisioning of a Cloud Volumes ONTAP volume, also known as a Flexible Volume (FlexVol) is done through BlueXP's GUI or API. By default, the volume is associated with a policy allowing it to grow automatically, whenever more capacity is needed (this policy can be adjusted to automatically shrink the volume too). In situations where you would need to manually change the volume's size you will use ONTAP System Manager or clustershell. In this section you'll learn how to perform resize operations through the clustershell and verify them through your linux-vm (Instructions on how to do it from ONTAP System Manager are at the end of this section).
Back on NetApp BlueXP, double-click on your Cloud Volumes ONTAP working environment located on the Storage Canvas to access the Volumes page.
On the Volumes page, locate the data1 volume and click on its Manage Volume.
Then click on Copy to copy the command to your clipboard:
Back in the Cloud Console, from the Navigation Menu, navigate to Compute Engine > VM instances.
On the VM instances page, locate the linux-vm instance and connect to it by clicking on SSH.
/mnt
named data1 that would serve as a mount point:<dest_dir>
with the /mnt/data1
directory created. Press Enter to mount Cloud Volumes ONTAP volume using NFS.df -h
command and note the Size column. Should show 9.5G since 5% are allocated by default for NetApp snapshots.Click Check my progress to verify that you've performed the above task.
df -h
command again and verify that the size change is reflected in it. You should now see it's 19G, since 5% are allocated by default for NetApp snapshots.If you'll go back to BlueXP's Volumes page you can see the size change is reflected there as well (you might need to refresh the page)
How about shrinking a volume? Yes, that can be done and non-disruptively as well. Go back to the cloudmanager SSH tab, where you have established an SSH session to Cloud Volumes ONTAP CLI.
df -h
command again and verify that the size change is reflected in it. You should now see it's 15G (since the 5% reserve for snapshots is 0.75G it does not reflect in the output).A volume resize operation can also be performed through ONTAP System Manager. To change the volume's capacity from ONTAP System Manager do the following:
Navigate to STORAGE > Volumes.
Hover over the volume's name and click on the ellipsis that appears and then Edit.
Great job! By changing the volume's size you can easily update its capacity, based on your workloads' requirements. Remember that volumes created are set to grow automatically, when needed. Through Cloud Volumes ONTAP's built-in tools, it is possible to adjust these settings and adjust the volume's autosize policy to shrink. Most importantly, these types of operations are done instantly and non-disruptively.
On fresh deployments of Cloud Volumes ONTAP, volumes provisioned can be associated with one of the three snapshot policies available by default - default, default-1weekly or none. With the default snapshot policies, snapshots are created and retained based on three predefined schedules, while the None policy is an empty one and does not create any snapshots.
None is primarily used with volumes containing structured data (MySQL, Oracle, etc.), where snapshots must be application-aware and managed through NetApp SnapCenter Server for example. Whenever you need to create additional snapshot policies, with different schedules and retention, you will use ONTAP System Manager or clustershell.
In this section, you will use the clustershell to create new schedules upon which your snapshots will be created and use them in a new snapshot policy. In addition you will define your snapshots retention for each schedule and put it to work. (Instructions on how to do it from ONTAP System Manager are at the end of this section).
Go back to the cloudmanager SSH tab, where you have established an SSH session to Cloud Volumes ONTAP CLI.
Now create a couple of new schedules with the following details:
Schedule 1 - For snapshots created every 4 hours, at specified hours, on the hour
Schedule 2 - For snapshots created on a daily basis at 3am
The command output should look like this:
The command output should look like this:
The new snapshot policy is now available for use and you will be able to use it when creating and editing a volume through BlueXP. Since you're already on the clustershell, why not do it from here?
A warning message appears when changing the snapshot policy to emphasize that existing snapshots may not be automatically deleted.
Manually deleting residual snapshots can be done with the commands:
The command output should look like this:
Want to see the 5min snapshots piling up?
After waiting 5 minutes, you should see a 5min snapshot was created:
Click Check my progress to verify that you've performed the above task.
Schedules and snapshot management can also be performed through ONTAP System Manager.
Well done! Snapshots are the groundwork for Cloud Volumes ONTAP data protection. Through ONTAP System Manager and clustershell you can take full advantage of the NetApp Snapshot technology and customize it to each and every workload based on your established best practices.
Cloud Volumes ONTAP has multiple volume types. As mentioned earlier, when you create a volume, the type used by default, and the recommended one, is FlexVol. A FlexVol is hosted on a single collection of persistent disks (up to 6), grouped together to a single storage pool, known as a NetApp Aggregate, and can scale up to 100 TiB in size. What if you need more capacity than a 100 TiB in a single volume? What if you need better performance than what a single FlexVol (or aggregate) provides? If that's the case, you need a FlexGroup volume.
A FlexGroup volume is a scale-out NAS container that provides high performance along with automatic load distribution and scalability. A FlexGroup contains several FlexVol constituents that automatically and transparently share the traffic.
In this section you will learn how to create and access a FlexGroup volume. This section will be performed through ONTAP System Manager (Instructions on how to do it through the clustershell is located at the end of this section).
First, create another aggregate on our Cloud Volumes ONTAP storage environment. Since this operation requires Google Cloud resources you'll use BlueXP. Back on BlueXP, double click your Cloud Volumes ONTAP working environment.
Click on the triple-bar () on the right side of the screen, then Advanced, and finally on Advanced Allocation to open the Aggregates page.
On the Aggregates page, click on the Add Aggregate button located at the top right side of the page.
Use the following details on the Create new aggregate wizard:
When the creation of the aggregate is complete, you should have two aggregates and the aggregates page should look like this:
Go back to the SSH window where you've opened and logged into ONTAP clustershell CLI.
On the ONTAP CLI, run the following command to automatically create an 800 GiB, thin-provisioned, FlexGroup volume named data2fg, that would span both aggregates and would be accessible through the /data2fg path on Cloud Volumes ONTAP:
Your output should look like this:
The command's output should look like this:
Copy and Save the IP address of the svm_default_data_lif up/upoutput
output.
Navigate back to the SSH session opened on the linux-vm.
In the linux VM SSH window, create a local directory under /mnt
named data2fg that would serve as a mount point for the FlexGroup volume:
df -h
command to verify the volume was mounted and its capacity from the client perspective.Your output should look like this:
Click Check my progress to verify that you've performed the above task.
Although the recommended method for creating a FlexGroup volume is through ONTAP CLI, FlexGroup volumes can also be created from ONTAP System Manager:
Go back to the windows-vm to the Chrome tab where you've opened and logged into ONTAP System Manager and navigate to STORAGE > Volumes.
Click on the Add button and then on More Options.
Fill in the volume's Name and CAPACITY.
Select the Distribute Volume Data Across the Cluster box, to ensure the volume's style would be FlexGroup, and click Save.
A few short moments later the new FlexGroup appears in the volumes list.
That's it, however, there are some caveats to consider when deploying FlexGroups with System Manager that make using the CLI a better choice in that case (you can check out the link at the section's summary below for more information).
Congratulations! You've just created a scale-out NAS container, made up from multiple volume constituents, that is managed and acts like a NetApp FlexVol. With FlexGroups your workloads are provided with many benefits such as massive capacity, low-latency for high metadata workloads, efficient use of Cloud Volumes ONTAP resources and more. For more information on FlexGroup volumes check out the NetApp ONTAP FlexGroup Volumes - Best Practices and Implementation Guide.
In this section you will be introduced to the basics of unified file-level access, aka multiprotocol access. Multiprotocol file-level access allows storage systems to provide access to clients running both Linux and Windows-based operating systems through the NFS and CIFS/SMB protocols, respectively. In this section you will configure Cloud Volumes ONTAP to provide SMB/CIFS service, create a SMB/CIFS share to a NetApp volume already configured with NFS access, and access the volume from both your Windows and Linux VMs.
tart wSith setting up your windows-vm as a member server in an Active Directory Domain.
Go back to the Cloud Console. Under Security, go to Managed Microsoft AD and click on the qwiklabs.netapp.local
active directory domain that was created for you upon lab startup.
Scroll down to the Access details section and click SET PASSWORD. Click Confirm. Copy and Save the password.
Go back to the Windows VM. On the Start screen, click the Control Panel.
Navigate to System and Security, and then click System.
Under Computer name, domain, and workgroup settings, click Change settings.
On the Computer Name tab, click Change.
Under Member of, click Domain, and type qwiklabs.netapp.local
, and then click OK.
When prompted for User name and Password use the following:
setupadmin
<the password copied on step 2>
. Click OK.After a few seconds a Welcome message to the domain would appear. Once acknowledged, another message will appear specifying the computer must be restarted to apply the changes.
Click OK and Close System Properties. Finally, click Restart Now to restart the virtual machine.
Once your Windows server is up and running, log in as the setupadmin user (with the password copied on step 8) and verify it has joined the domain.
Verify it has joined the domain. From the Windows Start screen > Control Panel > System and Security > System, check the Windows Computer name, domain, and workgroup settings. It should be similar to the image below:
That's that! Your Windows virtual machine was restarted and configured as a member server in the qwiklabs.netapp.local domain. Moving on...
Continue with setting up your Cloud Volumes ONTAP system as a member server too in the same Active Directory Domain.
First get the DNS IP address you need to use later on. Back on the Cloud console, under Networking, go to VPC Network > VPC Networks.
Under the default VPC, Copy and Save the Gateway IP for the us-central1
region.
Next, go to NetApp BlueXP Storage Canvas page and double-click on your Cloud Volumes ONTAP working environment to access the Volumes page.
From the top right triple-bar menu above Add Volume select Advanced > CIFS Setup and use the following details to create a CIFS server:
qwiklabs.netapp.local
setupadmin
Great! You have added your Cloud Volumes ONTAP system as a member server in the qwiklabs.netapp.local
domain. Moving on to create an SMB/CIFS share on your data1 volume.
Any style of NetApp volume can be accessed using NFS, SMB/CIFS or both. To enable NFS access to a volume, an NFS export policy must be associated with it. To enable SMB/CIFS access to a volume, an SMB/CIFS share must be created for it. And to enable access for both protocols, both an NFS export policy and an SMB/CIFS share need to be associated with a volume. In this subsection, you will create an SMB/CIFS share for the data1 volume, initially created in the lab, that already has an export policy associated with and can be accessed by NFS.
Back on your windows-vm
RDP session, and log into ONTAP System Manager, as you did in the ONTAP System Manager Access subsection earlier in the lab.
On ONTAP System Manager, navigate to STORAGE > Shares, and click on the Add button, and select Share to create a new share.
On the opened Add Share dialog box fill in the following information:
Back on the Shares page, you should be able to see the new share you just created.
Now that the volume has an export policy associated with and an SMB/CIFS share. It's time to access the volume both ways.
On your Windows VM, open File Explorer from the taskbar or the Start menu, or press the Windows logo key + E.
Select This PC from the left pane. Then, on the Computer tab, select Map network drive.
On the Map Network Drive window use the following details:
Your screen should look like this:
Upon completion of the operation a new window will appear showing the mapped network drive. If you expand This PC, you can see it listed as one of the available drives.
On your windows-vm, create a file on the new mapped network drive (Z:\\
). Right click within the opened (Z:) drive window, select New and then Text Document, and name SMB_file (a .txt extension is added by default).
In the linux VM SSH window, list the /mnt/data1
and to view the file created and its attributes. Use the following command:
The command's output should look like this:
ONTAP is not unique in the concept of user mapping, but it is still a concept that gets people confused on occasion. Essentially, to get the proper permissions on a NetApp storage system, a client must first pass a "test" in the form of initial authentication. The storage system needs to know that the user you are claiming to be is actually you.
There are varying degrees of how secure this test is, mostly dependent on the protocol you're using, but the bottom line is this: authentication helps ONTAP get a username. That user name allows ONTAP to map to another user name, depending on the volume security style (defines the type of permissions used in the volume. Can be set to either Unix or NTFS). In that case, we accessed a Unix configured volume with the setupadmin Windows user, which ONTAP has mapped to a Unix user named nobody or UID 65534.
/mnt/data1
directory. Use the following command:/mnt/data1
directory again using the following command:The command's output should look like this:
Click Check my progress to verify that you've performed the above task.
Managing SMB/CIFS share can also be done through ONTAP CLI:
That was the basics of multiprotocol file-level access! By leveraging Cloud Volumes ONTAP builtin management tools you can set up volume access to NFS and SMB/CIFS clients used on Linux and Windows-based operating systems. It is important to remember that part of the access process requires username mapping and it must be configured properly for secured access. For more information on multiprotocol access and name mapping check out this guide: Multiprotocol NAS in NetApp ONTAP Overview and Best Practices.
You took a deep dive into Cloud Volumes ONTAP and got to use its built-in management tools that together with BlueXP provides you three levels of administration. While with BlueXP you provision Cloud Volumes ONTAP and use it to perform daily-basis tasks, with the built-in tools you can perform advanced management operations such as:
As previously mentioned, note that operations available through BlueXP should be performed through BlueXP, since some operations require provisioning and management of Google Cloud infrastructure services.
...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 March 28, 2023
Lab Last Tested March 28, 2023
Copyright 2025 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.
This content is not currently available
We will notify you via email when it becomes available
Great!
We will contact you via email if it becomes available
One lab at a time
Confirm to end all existing labs and start this one