Create a new volume from a snapshot

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.

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:

  1. Go to the NetApp Volumes page in the Google Cloud console.

    Go to NetApp Volumes

  2. Click Volumes.

  3. Select the volume to clone.

  4. Select the Snapshots tab.

  5. Click Create Snapshot.

To clone from a previous snapshot, complete the following instructions:

  1. Find the snapshot you want to clone.

  2. Click Show more.

  3. Click Create new volume from snapshot.

  4. Enter a volume name in the Volume name field for the cloned volume.

  5. Optional: Enter a description in the Description field.

  6. Enter a share name in the Share name field.

  7. Choose a volume capacity in the Capacity field.

  8. 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.

  9. Select the protocol-specific options to apply to the clone. Protocol options depend on the protocol choice. For more information, see Create a volume.

  10. Optional: Define a snapshot schedule.

  11. Select Make snapshot directory visible if you want to enable file system access to snapshot versions by clients.

  12. 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.

  13. Review your snapshot selections.

  14. Optional: under the Labels section, click Add label to enter relevant labels for reporting and querying purposes.

  15. 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 volumes create VOLUME_NAME \
  --project=PROJECT_ID \
  --location=LOCATION \
  --storage-pool=STORAGE_POOL \
  --protocols=PROTOCOLS \
  --share-name=SHARE_NAME \
  --from-snapshot=FROM_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.

  • 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.

  • FROM_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.