Configure NFS in linux

Configure NFS in linux

What is NFS?

Network File System (NFS) is a networking protocol for distributed file sharing. A file system defines the way data in the form of files is stored and retrieved from storage devices, such as hard disk drives, solid-state drives and tape drives. NFS is a network file sharing protocol that defines the way files are stored and retrieved from storage devices across networks.

Network File System (NFS) is used by UNIX/LINUX clients for file access. NFS uses port 2049.

How to Configure NFS?

In Master Node

  1. yum install nfs-utils
  2. systemctl start nfs-server rpcbind
  3. systemctl enable nfs-server rpcbind
  4. mkdir /mnt/sharedoc
  5. chmod 777 /mnt/sharedoc/
  6. vim /etc/exports
    1. /mnt/sharedoc 192.168.0.0/16(rw,sync,no_root_squash)    # shown in fig 2
  7. exportfs -r
  8. firewall-cmd --permanent --add-service=mountd
  9. firewall-cmd --permanent --add-service=rpc-bind
  10. firewall-cmd --permanent --add-service=nfs
  11. firewall-cmd --reload




In Client Node

  1. yum install nfs-utils


  1. showmount -e 192.168.76.xxx  #it will show mount location, change xxx with your master's ip address
  2. mkdir /mnt/nfsdrive
  3. mount 192.168.76.xxx:/mnt/sharedoc /mnt/nfsdrive/
  4. df -h


    • Related Articles

    • What is Boot Process in Linux OS.

      Boot Process in Linux OS. Have you ever wondered what happens behind the scenes from the time you press the power button until the Linux login prompt appears? Press the power button on your system, and after few moments you see the Linux login ...
    • Setup FTP access to rocky linux 9.5 server using vsftpd

      Install vsftpd sudo dnf install vsftpd -y Enable and Start the vsftpd Service sudo systemctl enable vsftpd --now Verify the status: sudo systemctl status vsftpd Adjust Firewall Rules By default, the Rocky Linux firewall blocks FTP traffic. Allow it: ...
    • How to Partition, Format, and Mount Secondary Drives in Linux - Manual Drive Configuration (MDC)

      Introduction This guide provides detailed instructions on how to manually configure secondary drives in a Linux system, including partitioning, formatting, and mounting the drives. Warning Performing these steps on an existing primary drive or a ...
    • Backup, Snapshot, and Restore Linux installations using Timeshift

      If you mess up (or are going to mess up) some config files or drivers, it is always good to have a fallback point. The de-facto standard for doing this on Linux is Timeshift. Timeshift for Linux is an application that provides functionality similar ...
    • Linux Software RAID Failure Alert - Troubleshooting Guide

      Purpose This document provides a standardized approach for handling and troubleshooting the Linux Software RAID Failure alert, enabling L1 and L2 engineers to respond quickly, minimize risk, and maintain system stability. Alert Name Linux Software ...
    • Popular Articles

    • CP Plus Camera and NVR Configuration

      NVR Configuration The CP Plus Pro Series of NVRs have been meticulously designed for providing you with upgraded performance and higher recording quality in your IP video surveillance solution. The robust processor that has been inculcated in this ...
    • Kerberos Authentication – Overview

      What is Kerberos? Kerberos is a secure authentication method used in our Active Directory (AD) environment (mbuzztech.com). It allows users to: Access multiple systems without re-entering passwords (Single Sign-On – SSO) Log in once Where We Use It ...
    • How to Remove and Reinstall NVIDIA Drivers on Ubuntu

      This article provides step by step guide to completely remove existing NVIDIA drivers and reinstall specific version of the NVIDIA driver on the Ubuntu system Prerequisites Administrative (sudo) access to the Ubuntu system. Internet access to ...
    • Personal Computers and Servers - Classification and Point of Contact

      We can classify the computers that MBUZZ handles based on their form-factor as below: Tower Workstations, Desktops, Gaming PCs and SFF (Small form factor) PCs fall under this category. These are computers people would use on a desk and rarely move. ...
    • M.2 SSD Tier List

      The sequential read and write speeds, which are usually the most advertised number, are not a proper benchmark of real-world performance or the quality of an SSD. This article categorizes and tiers SSDs based on factors like the type of NAND flash, ...