
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
/ 15
Set up a new ONTAP storage environment
/ 15
Access the Volume
/ 15
Create NetApp Snapshots
/ 15
Create copy of Snapshots
/ 15
Restore from NetApp Snapshots
/ 15
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 implement a full data protection strategy with NetApp Cloud Volumes ONTAP and BlueXP capabilities. You will get practical experience in managing NetApp Snapshots and use them for recovery and cloning purposes. You will also be introduced with Cloud Volumes ONTAP replication engine, allowing you to implement cross-regions & cross-clouds disaster recovery. This lab is derived from BlueXP's documentation published by NetApp.
In this lab, you will learn how to perform the following tasks:
This is a fundamental lab and no prior knowledge is required. It is recommended to be familiar with using NetApp BlueXP and knowing how to perform foundational tasks in Google Cloud. The lab, Getting Started with NetApp BlueXP & Cloud Volumes ONTAP for Google Cloud, is a good introduction.
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>/
.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 BlueXP.
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. Click on Lets go to BlueXP.
Before you add a working environment, navigate to the gear icon on the top-right of the page then click Connector Settings > General.
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:
Add Working Environment: select Google Cloud Platform.
Choose Type: Cloud Volumes ONTAP Single Node and click 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.
On the Services page, toggle off Backup to Cloud (you will enable it later on the lab) and click Continue.
Location & Connectivity: For the GCP Region and GCP Zone, use
Cloud Volumes ONTAP Charging Methods & NSS Account: Select Freemium (Up to 500 GiB) and click on Continue.
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.
Underlying Storage Resources: Choose 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.
Create Volume: Create a NetApp volume that will be used in the next sections. Use the following details:
data1
10
(size set in GB)none
Custom export policy
Your configuration settings should resemble the following:
Great! You're done with your working environment setup. Now, sit back while BlueXP deploys your Cloud Volumes ONTAP system and creates a NetApp volume. 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.
In this section, you will learn about NetApp Snapshots and leverage them for instant recovery and cloning. A NetApp Snapshot is a highly efficient, read-only, point-in-time image of a NetApp volume providing it with local protection. NetApp Snapshots do not affect system performance, they are instantly created regardless of the data size in the volume, and only consume storage space when changes are made to existing data. Go to NetApp documentation center for more information.
In this section, set up access to the Cloud Volumes ONTAP volume, created in the previous section, from a Linux VM using the NFS protocol.
PROJECT_ID
environment variable and create a new linux-vm
instance:After the VM has been deployed, navigate back to the NetApp BlueXP page and double-click on your Cloud Volumes ONTAP working environment to access the Volumes page.
On the Volumes page, locate the data1 volume and click on its triple-bar.
From the list of operations revealed, click on Mount Command.
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.
In the linux VM SSH window, create a local directory under /mnt
named data1 that would serve as a mount point:
nfs-common
:<dest_dir>
with the /mnt/data1
directory created. As well, add -o vers=3
to the command to mount with NFS v3. Press ENTER to mount Cloud Volumes ONTAP volume using NFS.You should see the data1 volume mounted on /mnt/data
.
Great! You have just mounted the volume created in the previous section, now let's see what these NetApp Snapshots can do.
Click Check my progress to verify that you've performed the above task.
In each NetApp volume up to 1,023 Snapshots can be retained. Now you'll configure Cloud Volumes ONTAP to automatically create NetApp Snapshots and manually create one.
Go back to BlueXP and double click on Cloud Volumes ONTAP working environment to enter the Volumes page.
On the Volumes page, locate the data1 volume click on its triple-bar and from the list of operations revealed click on Edit.
From the Edit page, set the Snapshot Policy to default. Note the schedules at which NetApp Snapshots are created automatically and the retention for each. Click Update.
On the Volumes page, click on the triple-bar of the data1 volume and from the list of operations revealed click on Create a Snapshot copy.
On the Create a Snapshot page, leave the Snapshot Copy Name unchanged and click on Create. Note the notification that appears when redirected back to the Volumes page.
Well done! You have just enabled automatic Snapshots creation for your volume (if you stay long enough you can see them accumulating) and created a manual snapshot instantly. Now, see what you can do with it.
Click Check my progress to verify that you've performed the above task.
It's time to use a Snapshot copy to recover data. You can recover individual files and directories, LUNs (when using iSCSI), or recover the entire content of a volume. In this section you will practice file restore through an NFS client as well as volume restore through BlueXP.
Go back to the Volumes page, click on the triple-bar of the data1 volume and from the list of operations revealed click on Create a Snapshot copy.
On the Create a Snapshot page, leave the Snapshot Copy Name unchanged and click on Create.
Return to your linux-vm SSH window. List the /mnt/data1
directory including hidden items. Use the following commands:
Your output should look like the following. Note the file you created and the .snapshot
directory.
.snapshot
directory. Next, list the volume's Snapshots by running the following command from your linux-vm:Your output should look similar to this: (note the two manual Snapshots you have created).
cvo.google
file by simply copying it from the first manual snapshot you created. Use the following cp
command, and replace <timestamp>
with the one of the first manual snapshot created. (If typing, use the Tab key for auto-completion)./mnt/data1
directory including hidden items using the following command:Your output should look like this:
Restoring single file, checked! Now see how it's done for the whole volume.
Click Check my progress to verify that you've performed the above task.
Go back to BlueXP and from the Volumes page, click on the triple-bar of the data1 volume. From the list of operations revealed, click on Restore from Snapshot copy.
From the Restore from Snapshot copy page, select the last manual snapshot created, use the default Restored Volume Name and click Restore.
When the restore is completed, the volume's page should look like this:
Restore is instant regardless of the volume's size or used capacity. There's no copying of data, it's all a game of NetApp's WAFL file system pointers. Check out this video to see how it works. Now, access the restored volume.
Click on the triple-bar of data1_restore volume. From the list of operations revealed, click on Mount Command and then click on Copy to copy the command to your clipboard.
In the linux VM SSH window, create a local directory under /mnt
named data1_restore
that would serve as a mount point:
<dest_dir>
with the /mnt/data1_restore
directory created, and add -o vers=3
to the command to use NFS v3:Since snapshot represents a point-in-time and you have recovered the volume to a snapshot created before the single file restore, only the file named cvo.google
appears.
Instantly restoring the entire volume, checked! Ready to move on?
Click Check my progress to verify that you've performed the above task.
Snapshots can also be used for creating instant thin clones using Cloud Volumes ONTAP's FlexClone technology. With FlexClone you copy even the largest datasets almost instantaneously. That makes it ideal for situations in which you need multiple copies of identical datasets or temporary copies of a dataset, like when testing your disaster recovery copy (discussed later in Cross-Cloud / Cross-Region Disaster Recovery section). Let's do some cloning!
From the Volumes page, click on the triple-bar of the data1 volume. From the list of operations revealed, click on Clone.
On the Clone page, use the default Clone Volume Name and click Clone.
When cloning is completed, the volume's page should look like this:
Same as restore, cloning is instant regardless of the volume's size or used capacity without any data copying. Now, let's access the cloned volume.
Click on the triple-bar of data1_clone volume. From the list of operations revealed, click on Mount Command and then click on Copy to copy the command to your clipboard.
In the linux VM SSH window, create a local directory under /mnt
named data1_clone
that would serve as a mount point:
<dest_dir>
with the /mnt/data1_clone
directory created. As well, add -o vers=3
to the command to use NFS v3. Press ENTER to mount the cloned volume.The clone operation creates a new snapshot which represents the current state of the volume, after the single file restore. Therefore, two files named cvo.google
and cvo.google.v1
appear.
Instantly cloning a volume, checked! Ready to try something new?
Any ONTAP system, including Cloud Volumes ONTAP for Google Cloud include the NetApp SnapMirror data replication engine. With SnapMirror you can replicate data between working environments, located on BlueXP's Storage Canvas. SnapMirror is a highly efficient data transfer engine that replicates NetApp Snapshots, while preserving storage efficiencies (deduplication & compression) from one ONTAP system to another enabling cross-region and cross-cloud replication. SnapMirror use cases include: disaster recovery, long-term retention and migration.
BlueXP simplifies data replication between volumes on separate systems using SnapMirror. BlueXP purchases the required disks, configures relationships, applies the replication policy, and then initiates the baseline transfer between volumes. All you have to do is a drag-and-drop operation of one working environment over the other to identify the source volume and the destination volume, and then choose a replication policy and schedule.
Together with local Snapshots, backup to Google Cloud Storage, and SnapMirror a full data protection strategy can be easily implemented.
FPolicy is a file access notification framework that is used to monitor and manage file access events on Cloud Volumes ONTAP. FPolicy can operate in two modes. One mode uses external FPolicy servers to process and act upon notifications. The other uses the internal, native FPolicy server for simple file blocking based on extensions. Both act as a proactive preventive solution to limit ransomware and other malware infections. In this section you will enable native FPolicy server.
Go back to BlueXP and double click on Cloud Volumes ONTAP working environment to enter the Volumes page.
On the right side menu of the page, locate the orange colored shield (Ransomware Protection) and click it.
On the Ransomware Protection page, click Activate FPolicy.
Once the status has changed the page would look like this, and the shield will be colored blue (it takes a few seconds for the status to change - you can click on Volumes and again on the shield accelerate it).
The FPolicy engine prevents file operations on files with an extension that appears in the blocking policy. Therefore you should see a permission denied message like the following:
Great! By enabling FPolicy, BlueXP created a policy that blocks any file operation done through NFS and SMB clients on files with known ransomware extensions. And remember, NetApp Snapshots are immutable, so in case there was a security breach and ransomware wreaked havoc, you can easily and instantly recover your data to a point-in-time (like you did in Restoring From NetApp Snapshots section).
Interested in knowing more? check out this guidebook.
In this lab, you honed your NetApp Cloud solutions skills by learning how your mission-critical data can be fully protected using Cloud Volume ONTAP and BlueXP. You have also learned how to manage and leverage NetApp Snapshots and strengthen your anti-ransomware posture. In addition, you have learned through the Disaster Recovery video, how you can replicate data cross-cloud and cross-region for disaster recovery scenarios.
Be sure to check out the following to receive more hands-on practice with NetApp:
...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 28, 2023
Lab Last Tested July 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