Ubuntu HPC NFS server setup on master node

From Notes_Wiki
Revision as of 04:09, 23 February 2023 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > Ubuntu > HPC setup with openpbs and openmpi > NFS server setup on master node

Create ext4 lvm partition with required space to be shared with clients. Mount created lvm partition on /export via UUID using /etc/fstab

  1. Create home folder under /export
    mkdir -p /export/home
  2. Install NFS packages
    apt install -y nfs-kernel-server
  3. Enter the mount point in /etc/exports file and insert
    /export <private-subnet>(rw,sync,no_subtree_check)
    For example
    /export 172.16.1.0/24(rw,sync,no_subtree_check)
    Note that we are exporting entire /export from master and not just /export/home. Later we can create /export/apps for apps and other sub-folders for other purposes.
    In case of infiniband use <infiniband-subnet> to export NFS instead of <private-subnet>
  4. Export the new path
    exportfs -a
  5. Restart NFS server
    systemctl restart nfs-kernel-server



Home > Ubuntu > HPC setup with openpbs and openmpi > NFS server setup on master node