Menu

Setup a Shared Server using NFS-Linux

Overview

The 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 your NFS server.

Read these instructions on how to set up the NFS Client, which you will need to install on your application node server(s) prior to installing the qtest application(s.)

Setup Shared Server

Access the shared server (whose private IP address is 10.0.10.126) and install the following applications and/or packages.

Install NFS (Network File Systems)

  1. Update the repositories:
    root@ip-[your-ip-address]:/home/ubuntu# sudo apt-get update
  2. Install NFS server package by typing the command:
    root@ip-[your-ip-address]:/home/ubuntu# sudo apt-get install nfs-kernel-server
  3. Make the directory you want to share with the other computer. This is the directory being used to store data created by your qTest Sessions/Manager applications on the other server:
    root@ip-[your-ip-address]:/home/ubuntu# sudo mkdir /shared-sessions-storage
    OR
    root@ip-[your-ip-address]:/home/ubuntu# sudo mkdir /shared-manager-storage
  4. Edit /etc/exports config file. The /etc/exports is the main config file for NFS. See the below examples and add share directories to the config file based on our requirement.
    root@ip-[your-ip-address]:/home/ubuntu# vim /etc/exports
  5. Add a line into /etc/exports file to make the shared-sessions-storage directory or the shared-manager-storage can be accessed across networks.
    ...
    #Share access to all networks
    /shared-sessions-storage        *(rw,sync,no_root_squash)

    ...
    OR
    ...
    #Share access to all networks
    /shared-manager-storage        *(rw,sync,no_root_squash)

    ...
  6. Save and close the file when you are finished.

Start NFS Service

root@ip-[your-ip-address]:/home/ubuntu# sudo systemctl restart nfs-kernel-server

Check Share Status

root@ip-[your-ip-address]:/home/ubuntu# sudo exportfs -u
/shared-sessions-storage <world>
root@ip-[your-ip-address]:/home/ubuntu#
/code>

OR
root@ip-[your-ip-address]:/home/ubuntu# sudo exportfs -u
/shared-manager-storage <world>
root@ip-[your-ip-address]:/home/ubuntu#

Powered by Zendesk