English

Create and manage volumes for Cloud Volumes Service for Google Cloud

Contributors netapp-tonacki Download PDF of this page

Cloud Manager enables you to create cloud volumes based on your Cloud Volumes Service for Google Cloud subscription. You can also edit certain attributes of a volume, get the relevant mount commands, create snapshot copies, and delete cloud volumes.

Create cloud volumes

You can create NFS or SMB volumes in a new or existing Cloud Volumes Service for Google Cloud account. Cloud volumes currently support NFSv3 and NFSv4.1 for Linux and UNIX clients, and SMB 3.x for Windows clients.

Before you begin
  • If you want to use SMB in GCP, you must have set up DNS and Active Directory.

  • When planning to create an SMB volume, you must have a Windows Active Directory server available to which you can connect. You will enter this information when creating the volume. Also, make sure that the Admin user is able to create a machine account in the Organizational unit (OU) path specified.

Steps
  1. Select the working environment and click Add New Volume.

  2. In the Details & Location page, enter details about the volume:

    1. Enter a name for the volume.

    2. Specify a size within the range of 1 TiB (1024 GiB) to 100 TiB.

    3. Specify a service level: Standard, Premium, or Extreme.

    4. Select the Google Cloud region.

    5. Select the VPC Network from which the volume will be accessible. Note that the VPC cannot be changed or edited after the volume is created.

    6. Click Continue.

      A screenshot of the volume details page where you supply the name

  3. In the Protocol page, select NFS or SMB and then define the details. Required entries for NFS and SMB are shown in separate sections below.

  4. For NFS:

    1. In the Volume Path field, specify the name of the volume export you will see when you mount the volume.

    2. Select NFSv3, NFSv4.1, or both depending on your requirements.

    3. Optionally, you can create an export policy to identify the clients that can access the volume. Specify the:

      • Allowed clients by using an IP address or Classless Inter-Domain Routing (CIDR).

      • Access rights as Read & Write or Read Only.

      • Access protocol (or protocols if the volume allows both NFSv3 and NFSv4.1 access) used for users.

      • Click + Add Export Policy Rule if you want to define additional export policy rules.

        The following image shows the Volume page filled out for the NFS protocol:

        A screenshot that shows the volume page filled out for an NFS Cloud Volumes Service volume.

  5. For SMB:

    1. In the Volume Path field, specify the name of the volume export you will see when you mount the volume and click Continue.

    2. If Active Directory has been set up, you see the configuration. If it is the first volume being set up and no Active Directory has been set up, you can enable SMB session encryption in the SMB Connectivity Setup page:

      Field Description

      DNS Primary IP Address

      The IP addresses of the DNS servers that provide name resolution for the SMB server. Use a comma to separate the IP addresses when referencing multiple servers, for example, 172.31.25.223, 172.31.2.74..

      Active Directory Domain to join

      The FQDN of the Active Directory (AD) domain that you want the SMB server to join.

      SMB Server NetBIOS name

      A NetBIOS name for the SMB server that will be created.

      Credentials authorized to join the domain

      The name and password of a Windows account with sufficient privileges to add computers to the specified Organizational Unit (OU) within the AD domain.

      Organizational Unit

      The organizational unit within the AD domain to associate with the SMB server. The default is CN=Computers for connections to your own Windows Active Directory server.

      The following image shows the Volume page filled out for the SMB protocol:

      A screenshot that shows the volume page filled out for an SMB Cloud Volumes Service volume.

  6. Click Continue.

  7. If you want to create the volume based on a snapshot of an existing volume, select the snapshot from the Snapshot Name drop-down list. Otherwise just click Continue.

  8. In the Snapshot Policy page, you can enable Cloud Volumes Service to create snapshot copies of your volumes based on a schedule. You can do this now by moving the selector to the right, or you can edit the volume later to define the snapshot policy.

    See Creating a snapshot policy for more information about snapshot functionality.

  9. Click Add Volume.

The new volume is added to the working environment.

Continue with Mounting the cloud volume.

Mount cloud volumes

Access mounting instructions from within Cloud Manager so you can mount the volume to a host.

Note: Please use the highlighted protocol/dialect supported by your client.

Steps
  1. Open the working environment.

  2. Hover over the volume and click Mount the volume.

    NFS and SMB volumes display mount instructions for that protocol.

  3. Hover over the commands and copy them to your clipboard to make this process easier. Just add the destination directory/mount point at the end of the command.

    NFS example:

    Mount instructions for NFS volumes

    The maximum I/O size defined by the rsize and wsize options is 1048576, however 65536 is the recommended default for most use cases.

    Note that Linux clients will default to NFSv4.1 unless the version is specified with the vers=<nfs_version> option.

    SMB example:

    Mount instructions for SMB volumes

  4. Map your network drive by following the mount instructions for your instance.

    After completing the steps in the mount instructions, you have successfully mounted the cloud volume to your GCP instance.

Manage existing volumes

You can manage existing volumes as your storage needs change. You can view, edit, restore, and delete volumes.

Steps
  1. Open the working environment.

  2. Hover over the volume.

    A screenshot of the volume hover menu that allows you to perform volume tasks

  3. Manage your volumes:

    Task Action

    View information about a volume

    Click Info.

    Edit a volume (including snapshot policy)

    1. Click Edit.

    2. Modify the volume’s properties and then click Update.

    Get the NFS or SMB mount command

    1. Click Mount the volume.

    2. Click Copy to copy the command(s).

    Create a Snapshot copy on demand

    1. Click Create a Snapshot copy.

    2. Change the name, if needed, and then click Create.

    Replace the volume with the contents of a Snapshot copy

    1. Click Revert volume to snapshot.

    2. Select a Snapshot copy and click Restore.

    Delete a Snapshot copy

    1. Click Delete a Snapshot copy.

    2. Select the snapshot and click Delete.

    3. Click Delete again when prompted to confirm.

    Delete a volume

    1. Unmount the volume from all clients:

      • On Linux clients, use the umount command.

      • On Windows clients, click Disconnect network drive.

    2. Select a volume, and then click Delete.

    3. Click Delete again to confirm.

Remove Cloud Volumes Service from Cloud Manager

You can remove a Cloud Volumes Service for Google Cloud subscription and all existing volumes from Cloud Manager. The volumes are not deleted, they are just removed from the Cloud Manager interface.

Steps
  1. Open the working environment.

  2. Click the screenshot gallery options button at the top of the page and click Remove Cloud Volumes Service.

  3. In the confirmation dialog box, click Remove.

Manage Active Directory configuration

If you change your DNS servers or Active Directory domain, you need to modify the SMB server in Cloud Volumes Services so that it can continue to serve storage to clients.

Steps
  1. Open the working environment.

  2. Click the screenshot gallery options button at the top of the page and click Manage Active Directory.
    If no Active Directory is configured, you can add one now. If one is configured, you can modify or delete the settings using the screenshot gallery options button.

  3. Specify the settings for the SMB server:

    Field Description

    DNS Primary IP Address

    The IP addresses of the DNS servers that provide name resolution for the SMB server. Use a comma to separate the IP addresses when referencing multiple servers, for example, 172.31.25.223, 172.31.2.74.

    Active Directory Domain to join

    The FQDN of the Active Directory (AD) domain that you want the SMB server to join.

    SMB Server NetBIOS name

    A NetBIOS name for the SMB server that will be created.

    Credentials authorized to join the domain

    The name and password of a Windows account with sufficient privileges to add computers to the specified Organizational Unit (OU) within the AD domain.

    Organizational Unit

    The organizational unit within the AD domain to associate with the SMB server. The default is CN=Computers for connections to your own Windows Active Directory server.

  4. Click Save to save your settings.