Setting up NFS client on Ubuntu | NFSometer Ubuntu Installation

What is NFSometer?

NFSometer is a performance measurement framework for running workloads and reporting results across NFS protocol versions, NFS options and Linux NFS client implementations.
NFSometer is not designed to replace existing filesystem benchmarks. Instead, it is designed to automate the running of existing filesystem benchmarks, gather NFS specific statistics and generate reports that make benchmark output more understandable.

Uses

  • Automate the time consuming process of running a variety of workloads looking for performance regressions between kernel versions, NFS protocol versions and NFS options.
  • Generate reports that allows the user to understand the performance characteristics of workloads and easily compare performance characteristics of different configurations.
  • Provide a simple way to define workloads. This allows users to evaluate NFS deployment scenarios with workloads representative of their unique needs.

How to SET UP NFS CLIENT

      Run the following commands in terminal (ctrl+alt+T)
      $ sudo apt-get update
      $ sudo apt install nfs-kernel-server
      Install NFS Kernel Server

      $ sudo mkdir -p /mnt/sharedfolder
      Here you can also replace *sharedfolder* with the directory that you want to share with your client system commonly know as export directory.
      Create the Export Directory

      After that add the following commands
      $ sudo chown nobody:nogroup /mnt/sharedfolder
      $ sudo chmod 777 /mnt/sharedfolder
      Create shared folder
      After creating the export directory you need to provide permission to the client to access host server . You can do this via nano editor using following commands:

       $ sudo nano /etc/exports
      1.   /mnt/sharedfolder clientIP(rw,sync,no_subtree_check)
        2.   /mnt/sharedfolder client1IP(rw,sync,no_subtree_check)     

        :-)YOU NEED TO SELECT 1 FOR SINGLE CLIENT AND 2 FOR MULTIPLE CLIENTS

        FOR A MULTIPLE CLIENT BY SPECIFYING A ENTIRE CLIENT THAT BELONG SUB NET TO USE THIS LINE

        /mnt/sharedfolder subnetIP/24(rw,sync,no_subtree_check)
        For example, we are specifying an entire subnet of all the clients we want to grant access to our export folder (sharedfolder):
        NFS Exports
        Add the required line(s) to your exports file and then save it by hitting Ctrl+X, entering Y, and then hitting Enter.
        The permissions “rw,sync,no_subtree_check” permissions defined in this file mean that the client(s) can perform:
        • rw: read and write operations
        • sync: write any change to the disc before applying it
        • no_subtree_check: prevent subtree checking
        After that add the following commands to export shared directory
        $ sudo exportfs -a
        After that restart KFS kernel by
        $sudo systemctl restart nfs-kernel-server
        After doing so you need to verify client with firewell by
        $ sudo ufw allow from [clientIP or clientSubnetIP] to any port nfs

        For example, we are giving access to an entire subnet of clients machines through the following command:
        $ sudo ufw allow from 192.168.100/24 to any port nfs
        Open NFS ports in UFW Firewall

        After that you need to check ubuntu firewell status as allowed via this command
        $ sudo ufw status
        UFW Firewall Status

        Your host server is now ready to export the shared folder to the specified client(s) through the NFS Kernel Server.


        Setting up NFS client on Ubuntu | NFSometer Ubuntu Installation Setting up NFS client on Ubuntu | NFSometer Ubuntu Installation Reviewed by Sumit Bishnoi on November 28, 2019 Rating: 5

        No comments:

        Powered by Blogger.