Menu

Install NFS Client for Windows

Overview

The NFS Client should be installed on any server that is sending qTest data to a Shared Directory. If you are using a distributed server deployment model or if using the load balancing model you will need to install the NFS client BEFORE you install an application node.

You will use the NFS Client to mount to the shared folder, which you have set up in your Shared Server, to a local drive. The local drive will be used to configure qTest Manager/Sessions when you install.

A Shared Directory is used anytime you are deploying qTest applications on more than one server where you have files that may need to be shared among services. These files can be supported by a distributed file system like NFS or SMB. The instructions below include setting up a NFS Client.

Install NFS Client

First, login to the Windows Server where you are going to install either qTest Manager or Sessions.

  1. Open Server Manager, and navigate to the Dashboard.
  2.  Select Add Roles and Features.
    NFS-Client-01.png
  3. Click Next on the 'Before you begin' window.
    NFS-Client-02.png
  4. In Select installation type screen, make sure the option 'Role-based or feature-based installation' is selected, then click Next.
    NFS-Client-03.png
  5. On Select destination server screen, make sure the option 'Select server from the server pool' is selected, and click Next.
    NFS-Client-04.png
  6. In Select server roles screen, click Next.
    NFS-Client-05.png
  7. In Select features screen, select 'Client for NFS', then click Next.
    NFS-Client-Select-Features-06.png
  8. In Confirm installation selections, click Install.
    NFS-Client-Install-07.png
  9. In Installation progress screen, wait for the installation to complete, and click Close.
    NFS-Client-Complete-08.png

 

Automatically Mount Local Drive to the Shared Server Folder upon System Startup

The next step is to automatically mount the shared folder in the Shared Server to your local drive upon system startup.

Create a Script

  1. Create a batch file and put it in C:\mount.bat.
  2. Open the file in a text editor and enter the following command(s) that mounts the sessions-storage or manager-storage folder in the shared server, whose IP address is 10.0.10.230, This folder is configured when setting up your Shared Server Directory to a local drive name S:
    Examples:
    mount -o fileaccess=777 10.0.10.230:/sessions-storage S:
    mount -o fileaccess=777 10.0.10.230:/manager-storage S:
  3. Save and close the file when you are done.

Create a Task to Execute the Batch File at System Startup

Next, you will create a task from the Task Scheduler that will execute your batch file at system startup.

  1. Open the Task Scheduler application and select Create Basic Task in the right panel.
    Mount-01.png
  2. In Create a Basic Task screen, enter a name for our task, e.g. "Mount shared storage to S drive", then click Next.
    Mount-02.png
  3. In Task Trigger screen, select option 'When the computer starts', then click Next.
    Mount-03.png
  4. In Action screen, select the option Start a program and click Next.
    Mount-04.png
  5. In Start a Program screen, enter 'C:\mount.bat' to Program/script field then click Next.
    Mount-05.png
  6. In Summary screen, click Finish.
    Mount-06.png

Edit the Task Properties

  1. From Task Scheduler, select Task Scheduler Library folder in the left panel.
  2. Look for your newly created task in the middle panel, and right click on it.
  3. Select Properties in the popup menu.
    Mount-07.png
  4. In the Properties window, perform following actions:
    • Check the checkbox 'Run with highest privileges'
    • Click on 'Change User or Group...'
      Mount-08.png
  5. In the Select User or Group window, do the following:
    • Enter 'system' to the field Enter the object to select
    • Select Check Names
    • Select OK 
      Mount-09.png
  6. The property window now will look like below. Click OK to finish setting up the task property.
    Mount-10.png
Powered by Zendesk