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
- 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
- To change the UID and GID, a simple modification can be made by following the steps provided below:
- Open `regedit` by typing it in the search box and pressing Enter.
- Browse to `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default`.
- Create new DWORD (32-bit) values named `AnonymousUid` and `AnonymousGid`.
- Assign the UID and GID as needed.
- 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
- Create a `.bat` file with the command:
mount -o anon \\192.168.102.148\mnt\nfs_share X:
- Place the `.bat` file in `C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp`.
2. Create a Scheduled Task
- Open Control Panel and click System and Security.
- In the Administrative Tools section, click Schedule tasks.
- In the Task Scheduler window, choose Actions -> Create Task.
- On the General tab, enter the task name and select Run whether user is logged on or not and Run with the highest privileges.
- On the Triggers tab, click New Trigger. Select At log on from the Begin the task drop-down list and enable it.
- On the Actions tab, click New Action. Select Start a program and specify the path to the `.bat` file.
- On the Conditions tab, in the Network section, select Start only if the following network connection is available and choose Any connection.
- 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.
- Click OK to save the task.
3. Lock the Registry
- Open the Command Prompt and run `regedit`.
- Navigate to `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Users\Default\Mount`.
- Right-click a blank area, choose New > DWORD (32-bit) Value, and name it `Locking`.
- 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.