How to add a Linux Samba Share to Windows Distributed File Server(DFS)

This blog post is a guide on how to add a Linux Samba share as a DFS Target Folder.

Installation of DFS

  1. Open an administrator PowerShell window
  2. Install the DFS feature
    1. Windows 2008 R2: servermanagercmd –i FS-DFS-Namespace, RSAT-DFS-Mgmt-Con
    2. Windows 2012 : add-Windowsfeature FS-DFS-Namespace, RSAT-DFS-Mgmt-Con

Configuration of DFS

  1. Open the DFS Management console.
  2. Expand the DFS Management and click Namespaces

  3. Right Click Namespace à New Namespace

  4. Select the one of the servers that have the DFS feature installed.

  5. Type the name for the DFS. Ex: files. Click Edit Settings to configure the share permissions.

  6. Configure the permissions for the share. In this example we will use Administrator have full access; other users have read and write permissions.

  7. Select the type of DFS you will use. In this case we will use Domain-based namespace and select “Enable Windows Server 2008 mode” then press next.

  8. Press Create to go ahead and configure the DFS.

  9. Press Close to finish the installation.

Adding Namespace Servers

  1. Open the DFS Management console
  2. Click the existing DFS (domainshare) à Add Namespace Server

  3. Type the name of the other server with DFS feature installed. In this example DFS is installed on the DC's. Click Edit Settings to configure the share security settings

  4. Configure the permissions for the share. In this example we will use Administrator have full access; other users have read and write permissions.

  5. After you add all your DFS servers you will see all your namespace servers in the Namespace Server tab

Add Folder to the DFS

Folders are the way DFS present the different shares to the users. You will have to add a folder for each Share that you want to present to the DFS.

  1. Right click the DFS à New Folder

  2. Type a name. In this case I will call it SambaShare
  3. Press Add to add the location of the folder.

  4. Press OK when you finished adding the folder.

  5. Open a computer and browse your new DFS. Ex: cavarpefiles , you will see your new share, if you browse the folder you will see the files in the share.

Add a second folder target

In the DFS folder you can have multiple targets to direct the users to the closes server.

  1. Left click the Folder à Add Folder Target.

  2. Type the target information. Ex: servershare

  3. In the Replication message select No as we do not want windows to manage the replication for the Linux Shares.

  4. You will see all the targets in the Folder Target tab.

Detect the site of a Windows Client or Server

In order to detect the client Active Directory Site you can follow this steps.

  1. Open an Administrator Command Prompt
  2. Type: nltest /dsgetsite
  3. You should see the site where the computer is located at that time.

Subscribe For Latest Updates

Sign up for best of digital marketing, livestream and technology opinions on what matters to you.

Invalid email address
We promise not to spam you. You can unsubscribe at any time.

2 thoughts on “How to add a Linux Samba Share to Windows Distributed File Server(DFS)”

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: