Creating and managing SMB volumes

Before you can create and manage SMB volumes, you must review security considerations regarding SMB access. You must also add an Active Directory (AD) connection. Currently, Cloud Volumes Service supports only one AD connection per Google Cloud region. You can only associate a cloud volume in a region with the AD connection in the same region.

The following diagram shows how Cloud Volumes Service works with Windows applications on Google Cloud:

Cloud Volumes Service Windows

For more information about SMB services provided by Cloud Volumes Service for Google Cloud, see SMB performance FAQs.

Creating an AD connection

You can't create an AD connection for Cloud Volumes Service to manage services for Microsoft Active Directory. However, you can set up an AD connection for Cloud Volumes Service to an AD configured on Compute Engine.

  1. In the Cloud Console, go to Cloud Volumes.

    Go to the Cloud Volumes page

  2. Click Active Directory connections, and then click Create.

    Active Directory menu

  3. In the Create Active Directory Connection window, enter the following information, and then click Save.

    1. In the Username and Password fields, enter credentials associated with an account that has privileges to create a computer account in AD.
    2. In the Domain field, enter the name of the AD domain.
    3. In the DNS server field, enter the DNS server address of the AD domain.
    4. In the NetBIOS field, enter the NetBIOS name of the server. The length of the NetBIOS name must be 10 characters or less.
    5. From the Region drop-down list, select a region associated with your AD credentials.

      Active Directory window

Creating an SMB volume

  1. In the Cloud Console, go to Cloud Volumes.

    Go to Cloud Volumes page

  2. Click Create.

  3. In the Create File System page, complete the following fields:

    Create File System page

    1. Name: Enter a display name for the volume.

    2. Service Type: Select either the CVS (Beta) or CVS-Performance service type, depending on which is appropriate for your workload. Each service type offers different service levels, and the service levels are offered in different regions. SMB volumes are only supported for the CVS-Performance service type. For more information, see Service types.

    3. Region: Select a Google Cloud region for your volume from the drop-down list. For more information about region selection, see Best practices for Compute Engine region selection.

    4. Volume path: Enter the name of the volume path. It must be unique across all your cloud volumes. The system automatically generates a recommended volume path.

    5. Service level: Click the level of performance for the volume. It scales with capacity.

    6. Snapshot: If you want to create a volume based on a snapshot, select the snapshot from the drop-down list. This field applies only to volumes that use the CVS-Performance service type. For more information, see Creating and managing volume snapshots.

    7. Allocated capacity: Set the size of the cloud volume. The minimum size is 1,024 GiB (1 TiB).

    8. Protocol type: Select SMB.

    9. Shared VPC Configuration: The VPC network can be part of a host project in a shared VPC, or it can be a standalone project. If you have a host project and a shared VPC topology, select the checkbox. For standalone projects, leave the checkbox clear.

    10. VPC Network Name:

      • Select the network from which the volume will be accessible.

      • Optionally, you can specify your custom CIDR range by selecting the Use Custom Address Range box.

        IP address range

      • If this is the first time that you're setting up the VPC peering for Cloud Volumes Service, you receive the following prompt indicating that you need to set up network peering.

        Network peering warning window. The service networking peering for this VPC is not set up.

        For more information, see Setting up private services access.

    11. Snapshot policy: To manage snapshot policy for the volume, expand Show snapshot policy. Select Allow automatic snapshots, specify the snapshot schedules, and specify the number of snapshots to keep. See Managing snapshot policies for details.

      Snapshot policy page

  4. Click Save to create the volume.

    The new volume appears in the Volumes list.

Mapping SMB shares from Compute Engine instances

  1. In the Cloud Console, go to the Volumes page.

    Go to the Volumes page

  2. Click the SMB volume for which you want to map an SMB share.

  3. Scroll to the right, click More , and then click Mount Instructions.

    Mount SMB

  4. Follow the instructions in the Mount Instructions for SMB window that appears.

    Create SMB instructions

What's next