Mounting a File System on a Windows Instance Using SMB
General Prerequisites
-
The file system must be created and have at least one export in a mount target. See Creating a File System, Mount Target, and Export.
-
The mount target must have correctly configured security rules or be assigned to an NSG. See Configuring VCN Security Rules for File Storage.
-
You must know the mount target's IP address. See Obtaining the Mount Target IP Address.
-
You must be able to log into the Microsoft Windows OS on the instance with superuser or administrator privileges.
Specific Prerequisites for SMB Support
Using the SMB protocol requires that the Microsoft Windows instances and Compute Cloud@Customer belong to the same Active Directory domain.
This procedure assumes that the AD service is already configured in your data center infrastructure.
To add a Microsoft Windows instance to your AD service, perform the necessary administrative tasks according to the documentation for your version of Microsoft Windows OS.
To add the Compute Cloud@Customer to your AD service, Oracle must add the AD domain name to the Oracle Cloud Infrastructure Active Directory Domain configuration. To request this administrative action, submit a support request. See Creating a Support Request. To access support, sign in to the Oracle Cloud Console as described in Sign In to the OCI Console.
Relaxing File System Permissions Before Network Mapping with SMB
By default, write permissions to a file system are limited to the UNIX superuser and group identity. To provide write permission to AD domain users, the permissions need to be relaxed.
-
Mount the network drive using NFS protocol.
-
Relax the file system permissions:
-
Open File Explorer, select the mapped drive and right-click it, then select Properties.
-
Select the NFS Attributes tab.
-
Change File permissions by checking all RWX check boxes to relax the permissions for Owner, Group, and Other.
-
Click OK.
-
-
Disconnect the NFS-mounted drive.
Now that the file system permissions are relaxed, you can mount the file system using the SMB protocol.
Mounting a File System Using SMB
-
Log into your Microsoft Windows instance.
-
Open File Explorer and select This PC.
-
In the Computer tab, select Map network drive.
-
In the Folder field, enter the following line and replace these items:
-
10.x.x.x
with the mount target IP address. -
fs-export-path-ID
with the file system export path (see Creating an Export for a File System).Note – Do not include
\export
in thefs-export-path-ID
string when mounting using SMB.
\\10.x.x.x\fs-export-path-ID
Example:
\\192.0.2.0\39u21btystm8x1axizezb9a3lfnpzjho98evi3ij450i96vj0a8jpf36au26
-
-
select the 'Drive' letter of any available drive you want to map the file system to.
-
If needed, select the Connect using different credentials check box.
-
Click Finish.
-
When prompted, provide the user name and password of the AD domain user used for mapping the network drive.
-
Click OK.
-
In a Command Prompt window (cmd), verify that the drive is properly mapped using this command:
C:\>net use New connections will be remembered. Status Local Remote Network ------------------------------------------------------------------------------- OK Z: \\10.0.0.2\uvj1iw6ytyecqijcbdgpy7ec15mgsv044i7609giqx7ukfn6t2pwgfqot0ma Microsoft Windows Network The command completed successfully. C:\>