How to Mount the NFS Share from Linux NFS Server in Windows BDRSuite Server

How to Mount the NFS Share from Linux NFS Server in Windows BDRSuite Server

KB ID: 115909
Introduction
This Knowledge Base article provides step-by-step instructions on how to mount an NFS share from a Linux NFS server to a Windows BDRSuite server.
Step 1: Install the NFS Client on the Windows BDRSuite Server
1. Open Programs and Features.

2. Click Turn Windows features on or off.
3. Scroll down and check the option Services for NFS, then click OK.
4. Once installed, click close and exit back to the desktop.
Note: The NFS Server is assumed to be installed on a Linux machine and is reachable from the BDRSuite machine. The IP address of the NFS Server is assumed to be 192.168.102.148.
Step 2: Enable Write Permission for the Anonymous User
After installing the NFS client service on the BDRSuite machine, enabling write permission for the anonymous user can be done by following the steps provided below.
1. Mount the NFS share:
C:\Users\vembuadmin> mount -o anon \\Machine IP\mnt\nfs_share DriveName:
Example: mount -o anon \\192.168.102.148\mnt\nfs_share X:
2. Grant write permissions to the anonymous user:
  1. To grant write permissions to the anonymous user, the UID and GID can be changed from the default values that are used to mount the share
  2. To change the UID and GID, a simple modification can be made by following the steps provided below:
  1. Open `regedit` by typing it in the search box and pressing Enter.
  2. Browse to `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default`.
  3. Create new DWORD (32-bit) values named `AnonymousUid` and `AnonymousGid`.
  4. Assign the UID and GID as needed.
  1. After making these changes, restart the NFS client or reboot the machine to apply them. Once done, check the mount status
Note: Setting the UID and GID to 0 means the share is mounted using the root user.
Step 3: Enable Automatic NFS Mount on System Reboot
1. Create a Startup Script:
  1. Create a `.bat` file with the command:
mount -o anon \\192.168.102.148\mnt\nfs_share X:
  1. Place the `.bat` file in `C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp`.
2. Create a Scheduled Task:
  1. Open Control Panel and click System and Security.
  2. In the Administrative Tools section, click Schedule tasks.
  3. In the Task Scheduler window, choose Actions -> Create Task.
  1. On the General tab, enter the task name and select Run whether user is logged on or not and Run with the highest privileges.
  1. On the Triggers tab, click New Trigger. Select At log on from the Begin the task drop-down list and enable it.
  1. On the Actions tab, click New Action. Select Start a program and specify the path to the `.bat` file.
  1. On the Conditions tab, in the Network section, select Start only if the following network connection is available and choose Any connection.
  1. On the Settings tab, select If the running task does not end when requested, force it to stop and Do not start a new instance if the task is already running.
  1. Click OK to save the task.
3. Lock the Registry:
  1. Open the Command Prompt and run `regedit`.
  2. Navigate to `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Users\Default\Mount`.
  3. Right-click a blank area, choose New > DWORD (32-bit) Value, and name it `Locking`.
  4. Double-click `Locking`, set the numeric value to 1, and click OK.
Once the task creation and registry locking are done, restart the BDRSuite machine and ensure the `.bat` file is triggered and the NFS drive is mounted automatically.
Step 4: Add the Shared Drive in the BDRSuite Application
1. Log in to the BDRSuite console.
2. In the Backup Server menu, go to Block Storage and click Create New Block Storage Repository.
3. Click Add Network Drive and enter the shared path.
Step 5: Create a Storage Pool for Backups
1. After saving the shared drive, select the newly added network drive.
2. Create a storage pool to configure backups.