Map a Cloud Storage Gateway SMB share to a Windows network drive. This lets you read and write files on the share as you would in a local folder.
Prerequisites
An SMB share has been created on the gateway. For more information, see Create an SMB share.
Background information
After you map a gateway share as a network drive, Windows assigns it a drive letter. You can then access the share like a local folder.
-
An on-premises file gateway supports up to eight SMB shares. The actual limit varies based on the CPU and memory configuration of the gateway model. For more information, see Specifications.
-
After the share is mounted, Windows displays the capacity of the associated OSS bucket. The file system requires this value for display. An OSS bucket has no capacity limit, and its actual storage is unaffected by this displayed value.
-
Starting from version 1.0.35: If no users are configured, clients can access the SMB share as a public user by default. If users are configured, they must have read/write or read-only permissions to access the share.
-
Each time you change SMB user permissions, you must clear the cached credentials on the client before you mount the share. On the Windows client, run
net use /delete < share path >. You do not need to restart the client.
Procedure
-
Log on to your Windows client.
-
Open This PC and click Map network drive.
-
Select a drive letter. In the Folder box, enter the network path in the following format:
\\<Gateway IP address>\<Share name>In the Alibaba Cloud Cloud Storage Gateway console, find the target gateway and go to the Shares page to view the gateway IP address and share name.
-
Click Finish, and then enter the CIFS username and password.
If you have joined an Active Directory (AD) domain, prefix the username with the domain name in the
<domain name>\<username>format, for example,corp\jdoe. -
Verify the mount.
The mount is successful if the CIFS share appears in Windows File Explorer as drive Z: (cifs1) and the New folder is visible.
-
Access the share.
After the share is mounted, you can manage it just like a local folder. Users with read/write permissions can write data to the share. Users with read-only permissions can only read files.
NoteAll operations on the Cloud Storage Gateway share are synchronized to its associated OSS bucket.