To provide shared file storage over your network, Google Cloud NetApp Volumes lets you connect Windows clients to Server Message Block (SMB) and dual-protocol volumes. You can also use the Windows Computer Management console to configure SMB shares, manage share-level permissions, and monitor active sessions and open files.
Before you begin
Before you begin, make sure your client is logged in as a valid domain user.
Connect SMB clients
Use the following instructions to connect SMB clients using the Google Cloud console or Google Cloud CLI or ONTAP-mode.
Console
Go to the NetApp Volumes page in the Google Cloud console.
Click Volumes.
Click Show more.
Click Mount instructions.
Follow the mount instructions shown in the Google Cloud console.
Click Finish.
gcloud
Run the following command:
gcloud netapp volumes describe VOLUME_NAME \ --project=PROJECT_ID \ --location=LOCATION \ --format="value(mountOptions.instructions)"
Replace the following information:
VOLUME_NAME: the name of the volume.PROJECT_ID: the name of the project the volume is in.LOCATION: the location of the volume.
For more information about additional optional flags, see Google Cloud SDK documentation on volumes.
ONTAP-mode
Use the following steps to identify your volume's hostname or IP address, and share name:
Look up the computer account name you used when you created the SMB server. When joining the domain, ONTAP registers this name with Active Directory DNS using secure DDNS updates. For large capacity volumes, ONTAP registers all IP addresses for that hostname.
Find the IP addresses of the share by looking up all network interfaces for the
data_cifsservice.Look up the share name assigned to your volume.
Connect your client to
\\<var>HOSTNAME</var>\<var>SHARENAME</var>.If you use IP addresses instead of the hostname, make sure your Active Directory has the appropriate Kerberos service principal names (SPN) created for those IP addresses.
After you identify the required commands, see ONTAP-mode for instructions about how to submit ONTAP commands to the storage pool.
Manage SMB shares
When you create an SMB or dual-protocol volume, NetApp Volumes creates a share by using the share name that you specify for the volume. By default, this share grants Full Control permissions to Everyone, so clients can connect to the share without additional share configuration.
On a Windows client, you can use Computer Management to perform the following tasks:
Create, view, and delete shares, and update share descriptions.
Change share-level permissions.
View and close sessions.
View and close open files.
When you create a share, specify the share path in Windows format by using the
storage virtual machine (SVM) namespace. Drive C: is the namespace root. For
example, for the namespace path /volume_name/subdirectory, enter
C:\volume_name\subdirectory. The directory must already exist, and the path
must match the capitalization of the existing share path. To share a
subdirectory within an existing share path, enter the full path. For example,
to share the contracts directory, enter
C:\volume_name\subdirectory\contracts.
The Google Cloud console displays only the share that was created with the volume. If you create additional shares on the SMB server, you must manage them from a Windows client.
After a client connects to a share, NTFS permissions control access to files and directories. For more information about NTFS permissions, see SMB file access control for NTFS-style volumes.
Required group membership
To manage shares, sessions, and open files in the Computer Management console, you must use a Windows account that belongs to the SMB server's local Administrators group. When the SMB server joins your domain, NetApp Volumes automatically adds the Domain Admins group to the local Administrators group.
If your SMB server uses an Active Directory policy, you can add other domain users or groups in the Administrators field of the policy. Specify each user or group by its Security Account Manager (SAM) account name. For more information about managing local groups, see Create an Active Directory policy and Google Cloud NetApp Volumes: Support for built-in default local group management.
For information about managing shares in an ONTAP-mode storage pool, see View information about ONTAP SMB shares using the MMC.
Open Shared Folders
To open the Shared Folders tool for your SMB server by using the Windows console or the command prompt, complete the following steps:
Windows console
On your Windows client, right-click Start, and then select Computer Management.
In the Computer Management console, click Action > Connect to another computer.
In the Select Computer dialog, enter the NetBIOS name or DNS name of the SMB server, and then click OK.
Go to System Tools > Shared Folders.
Command prompt
On your Windows client, open a command prompt.
Open the Shared Folders tool for the SMB server:
fsmgmt.msc /computer=SMB_SERVER_NAME
Replace
SMB_SERVER_NAMEwith the NetBIOS name or DNS name of the SMB server.
Create a share
To create a share, complete the following steps:
On a Windows client, map the volume's default share before you create the new share.
In the mapped share, create the directory that you want to share.
Open Shared Folders.
Right-click Shares, and then select New Share.
In the Folder path field, enter the directory path, such as
C:\volume_name\subdirectory.Enter a share name.
Set the share permissions for the accounts that need access. If granting Full Control permissions to Everyone is broader than you need, remove those permissions.
Complete the wizard.
Change share permissions or the description
To change the permissions or description of a share, complete the following steps:
Open Shared Folders.
Go to Shares.
Double-click the share name.
On the General tab, update the description.
On the Share Permissions tab, update the share permissions.
Click OK.
Delete a share
Deleting a share removes only the share. The directory and its files remain on the volume.
To delete a share, complete the following steps:
Open Shared Folders.
Go to Shares.
Right-click the share, and then select Stop Sharing.
Confirm the action.
Close a session
To close a session, complete the following steps:
Go to System Tools > Shared Folders > Sessions.
Right-click the session that you want to close, and then select Close Session.
Close an open file
To close an open file, complete the following steps:
Go to System Tools > Shared Folders > Open Files.
Right-click the file that you want to close, and then select Close Open File.
Firewall rules for SMB volumes access
SMB uses various ports to communicate between the client and a server. For communication between Google Compute Engine and NetApp Volumes, these ports aren't blocked by default. If you use a firewall, you must enable access to the following ports for the full NetApp Volume PSA CIDR or the following individual volume IP addresses:
445 TCP SMB2/3135 TCP msrpcand40001 TCP SMB CA: Used only for SMB 3.x continuously available shares. These ports aren't required for non-continuously available shares.
The service exposes, but doesn't use, port 139/TCP.
The IP addresses for NetApp Volumes are automatically assigned from the CIDR range you assigned to the service during network peering. For more information, see Choose a CIDR.
Your SMB clients don't need to expose ingress ports for SMB to work.
What's next
Connect NFS clients.