Difference between revisions of "Ubuntu HPC NFS server setup on master node"

From Notes_Wiki
m
m
Line 13: Line 13:
#Enter the mount point in <tt>/etc/exports</tt> file and insert
#Enter the mount point in <tt>/etc/exports</tt> file and insert
#:<pre>
#:<pre>
#:: /export/home  <private-subnet>(rw,sync,no_subtree_check)
#:: /export <private-subnet>(rw,sync,no_subtree_check)
#:</pre>
#:</pre>
#: For example
#: For example
#::<pre>
#::<pre>
#::: /export/home 172.16.1.0/24(rw,sync,no_subtree_check)
#::: /export  172.16.1.0/24(rw,sync,no_subtree_check)
#::</pre>
#::</pre>
#: 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.
#Export the new path
#Export the new path
#:<pre>
#:<pre>

Revision as of 04:07, 23 February 2023

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.
  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