This page provides details and instructions for how to create a volume from a snapshot.
Before you begin
The creation of a new volume from a snapshot is comparable to cloning. You can clone or copy entire volumes within a few seconds independent of volume size. The newly created clone represents a new volume. The process for snapshot-driven volume creation is similar to the procedure for new volume creation. NetApp Volumes assigns the clone to the same storage pool as the source volume. The host storage pool needs enough available capacity to accommodate the volume clone. The new volume inherits all settings from the parent volume, except the settings you explicitly specify in the creation workflow.
Considerations
Consider the following limitations before you create a volume from a snapshot:
Changes to permission models: if you use the cloning mechanism to switch the network-attached storage (NAS) protocol type, it might also switch the permission model that the security style provides. You might experience file access permission issues, which you can only fix manually with administrator access using the NAS client tools for permissions setting.
Increased volume consumption: after you create a volume from a snapshot, you have two independent volumes and both consume capacity from the host storage pool.
Replication capabilities: volumes created from a snapshot don't support volume replication.
Create a new volume from a snapshot
Use the following instructions to create a new volume from a snapshot using the Google Cloud console or Google Cloud CLI.
Console
Use the following instructions to clone the latest state of the volume:
Go to the NetApp Volumes page in the Google Cloud console.
Click Volumes.
Select the volume to clone.
Select the Snapshots tab.
Click Create Snapshot.
To clone from a previous snapshot, complete the following instructions:
Find the snapshot you want to clone.
Click
Show more.Click Create new volume from snapshot.
Enter a volume name in the Volume name field for the cloned volume.
Optional: Enter a description in the Description field.
Enter a share name in the Share name field.
Choose a volume capacity in the Capacity field.
Select the NAS protocol from the Protocol(s) drop-down list to use for the clone. We recommend that you choose the same protocol as the source volume.
Select the protocol-specific options to apply to the clone. Protocol options depend on the protocol choice. For more information, see Create a volume.
Click Block volume from deletion when clients are connected in the Configuration for selected protocol(s) for volumes used as GCVE datastores. This setting is permanent.
Optional: Define a snapshot schedule.
Select Make snapshot directory visible if you want to enable file system access to snapshot versions by clients.
Select Allow scheduled snapshots if you want to configure the volume to automatically take snapshots. You can specify the number of snapshots to keep at hourly, daily, weekly, and monthly snapshots intervals. NetApp Volumes specifies time in the UTC format. If you reach the maximum number of snapshots, the older snapshot deletes automatically.
Review your snapshot selections.
Optional: under the Labels section, click Add label to enter relevant labels for reporting and querying purposes.
Click Create.
NetApp Volumes creates the volume within a few seconds. You can find the new volume in the Volumes page. You can mount the volume with clients using the NetApp Volumes instructions for how to mount a volume.
gcloud
Create a new volume from an existing snapshot:
gcloud netapp volumes snapshots create VOLUME_NAME \ --project=PROJECT_ID \ --location=LOCATION \ --storage-pool=STORAGE_POOL \ --capacity=CAPACITY \ --protocols=PROTOCOLS \ --share-name=SHARE_NAME \ --source-snapshot=SOURCE_SNAPSHOT
Replace the following information:
VOLUME_NAME
: the name of the volume you want to create the snapshot in. This name must be unique per location.PROJECT_ID
: the name of the project you want to create the new volume in.LOCATION
: the location of the existing volume.STORAGE_POOL
: the name of the storage pool you want to create the volume in.CAPACITY
: the capacity of the volume. It defines the capacity that NAS clients see.PROTOCOLS
: choose the NAS protocols you want to export the new volume with. Valid choices include the following:NFSV3 and NFSV4.1
NFSV3 and SMB
NFSV4.1 and SMB
We strongly recommend that you choose the same protocol as the source volume.
SHARE_NAME
: the NFS export path or SMB share name of the new volume.SOURCE_SNAPSHOT
: the ID of the snapshot or fully qualified identifier for the snapshot.
For more options, see Google Cloud SDK documentation for NetApp Volumes volume snapshots.
What's next
Restore your data using snapshots.