准备工作
- 实验会创建一个 Google Cloud 项目和一些资源,供您使用限定的一段时间
- 实验有时间限制,并且没有暂停功能。如果您中途结束实验,则必须重新开始。
- 在屏幕左上角,点击开始实验即可开始
Mount the volume
/ 20
Create a backup vault
/ 20
Create a backup policy
/ 20
Attach a backup schedule to a volume
/ 20
Restore a volume from a backup
/ 20
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 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.
Volume backups provide independent point-in-time copies of your volume. They can be used to store old backups and provide the necessary second copy of your data. Daily, weekly, and monthly backup schedules allow for RPOs starting at one day. Volume backups can only be restored as a whole. Creating a volume from a backup (RTO) can take hours, depending on the size of the backup.
In this lab you will learn how to manage Google Cloud NetApp Volumes backup.
In this lab you will learn how to:
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.
To complete this lab, you need:
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.
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:
After a few moments, the 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.
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)
In the Google Cloud console search bar (), type NetApp Volumes and select the result to open the service.
In the navigation pane, click Volumes. A volume (volume1) has already been created for this lab.
Open Compute Engine → VM Instances in a new browser tab and click the SSH button for vm1.
Return to the NetApp Volumes page. In the row for the volume (volume1), click the overflow menu (), then select Mount Instructions.
Run the following commands from the Mount instructions into the SSH window in the following order:
sudo mount command from the Mount instructions and running it in the SSH terminal. The command includes the unique IP address of the volume. It will look like the command below:Click Check my progress to verify that you've performed the above task.
A backup vault marks the location you store your backups in.
Go to the NetApp Volumes page in the Google Cloud console.
In the navigation pane, click Backup vaults under Data protection.
Click Create.
For Name, type vault1
For Region, select
Click Create.
Click Check my progress to verify that you've performed the above task.
You can manage the backups using the Backups menu and within the Volumes menu.
vm1, create folders and files by running the following commands:Go to the NetApp Volumes page in the Google Cloud console.
In the navigation pane, click Volumes.
Click volume1, then click the Backups tab.
Click Create backup.
For Name, type backup1
Keep the Backup source as Volume's current state.
For the Backup location, select vault1.
Click Create.
Backup policies define a schedule for automated backup creation. You can define how many daily, weekly, and monthly backups of your data you want NetApp Volumes to retain. If a policy is attached to a volume, then backups will generate automatically.
In the navigation pane, click Backup policies under Policies.
Click Create.
For Name, type policy1
For Region, select
You can customize the backup schedule configuration based on your RPO needs. As an example, include the following configuration:
Click Create.
Click Check my progress to verify that you've performed the above task.
Once that the backup policy has been created, you have to attach the policy (policy1) to the volume (volume1) to allow the backups be created automatically.
In the navigation pane, click Volumes.
Click volume1, then click the Backups tab.
Click Manage Backup Policy.
Select the Allow scheduled backups checkbox.
For backup policy, select policy1.
For backup vault, select vault1.
Click Save.
Click Check my progress to verify that you've performed the above task.
To restore a backup, you have to create a new volume from a backup.
Go to the NetApp Volumes page in the Google Cloud console.
In the navigation pane, click Volumes.
Click volume1, then click the Backups tab.
You should see the backup (backup1) that you took in the task 3. If the backup status is still creating, wait some minutes.
In the row for the backup (backup1), click the overflow menu (), then select Create new volume from backup.
Create the volume using the following information:
restore-from-volume1
pool1
share1-restored
Click Create.
Click Check my progress to verify that you've performed the above task.
You have learned how to create manual backups, scheduled backups, and restore an entire volume from a backup.
Be sure to check out the official NetApp Volumes documentation:
...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 January 2, 2025
Manual Last tested January 2, 2025
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.
此内容目前不可用
一旦可用,我们会通过邮件告知您
太好了!
一旦可用,我们会通过邮件联系您
一次一个实验
确认结束所有现有实验并开始此实验