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.
- Open Server Manager, and navigate to the Dashboard.
- Select Add Roles and Features.
- Click Next on the 'Before you begin' window.
- In Select installation type screen, make sure the option 'Role-based or feature-based installation' is selected, then click Next.
- On Select destination server screen, make sure the option 'Select server from the server pool' is selected, and click Next.
- In Select server roles screen, click Next.
- In Select features screen, select 'Client for NFS', then click Next.
- In Confirm installation selections, click Install.
- In Installation progress screen, wait for the installation to complete, and click Close.
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
- Create a batch file and put it in C:\mount.bat.
- 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:
mount -o fileaccess=777 10.0.10.230:/sessions-storage S:
mount -o fileaccess=777 10.0.10.230:/manager-storage S:
- 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.
- Open the Task Scheduler application and select Create Basic Task in the right panel.
- In Create a Basic Task screen, enter a name for our task, e.g. "Mount shared storage to S drive", then click Next.
- In Task Trigger screen, select option 'When the computer starts', then click Next.
- In Action screen, select the option Start a program and click Next.
- In Start a Program screen, enter 'C:\mount.bat' to Program/script field then click Next.
- In Summary screen, click Finish.
Edit the Task Properties
- From Task Scheduler, select Task Scheduler Library folder in the left panel.
- Look for your newly created task in the middle panel, and right click on it.
- Select Properties in the popup menu.
- In the Properties window, perform following actions:
- Check the checkbox 'Run with highest privileges'
- Click on 'Change User or Group...'
- 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