Configure NFS Server

As a first step in deploying IntelliService, start with configuring the NFS server in the VM. To configure the NFS server, follow the steps below:

  1. Open the Linux terminal and run the following commands.
    apt update
    apt install nfs-kernel-server
    mkdir -p /mnt/nfs_share
    mkdir adminui cognitivesearch ctrainer postgres postgresim producttriage share1 share2 share3 share4 share5 share6 txtai licenseserver redis backupservice
    chown -R nobody:nogroup /mnt/nfs_share
    chmod 777 /mnt/nfs_share/
  2. Open the /etc/exports files in VI editor, and include the below commands.
    /mnt/nfs_share 10.14.108.0/23(rw,sync,no_subtree_check,no_root_squash,insecure) //Note: Here the 10.14.108.0/23 is VLAN range.
    /mnt/nfs_share/adminui 10.14.108.0/23(rw,sync,no_subtree_check,no_root_squash,insecure)
    /mnt/nfs_share/backupservice 10.14.108.0/23(rw,sync,no_subtree_check,no_root_squash,insecure)
    /mnt/nfs_share/cognitivesearch 10.14.108.0/23(rw,sync,no_subtree_check,no_root_squash,insecure)
    /mnt/nfs_share/ctrainer 10.14.108.0/23(rw,sync,no_subtree_check,no_root_squash,insecure)
    /mnt/nf s_share/postgres 10.14.108.0/23(rw,sync,no_subtree_check,no_root_squash,insecure)
    /mnt/nfs_share/postgresim 10.14.108.0/23(rw,sync,no_subtree_check,no_root_squash,insecure)
    /mnt/nfs_share/producttriage 10.14.108.0/23(rw,sync,no_subtree_check,no_root_squash,insecure)
    /mnt/nfs_share/redis 10.14.108.0/23(rw,sync,no_subtree_check,no_root_squash,insecure)
    /mnt/nfs_share/share1 10.14.108.0/23(rw,sync,no_subtree_check,no_root_squash,insecure)
    /mnt/nfs_share/share2 10.14.108.0/23(rw,sync,no_subtree_check,no_root_squash,insecure)
    /mnt/nfs_share/share3 10.14.108.0/23(rw,sync,no_subtree_check,no_root_squash,insecure)
    /mnt/nfs_share/share4 10.14.108.0/23(rw,sync,no_subtree_check,no_root_squash,insecure)
    /mnt/nfs_share/share5 10.14.108.0/23(rw,sync,no_subtree_check,no_root_squash,insecure)
    /mnt/nfs_share/share6 10.14.108.0/23(rw,sync,no_subtree_check,no_root_squash,insecure)
    /mnt/nfs_share/txtai 10.14.108.0/23(rw,sync,no_subtree_check,no_root_squash,insecure)
    /mnt/nfs_share/licenseserver 10.14.108.0/23(rw,sync,no_subtree_check,no_root_squash,insecure)
    Note: For any errors on above commands debug reach out to intelliservice DevOps team.
  3. Run below commands in the shell prompt to start the NFS server.
    exportfs -a
    ufw allow from 10.14.108.0/23 to any port nfs
    ufw enable
    systemctl restart nfs-kernel-server
    ufw status
    systemctl stop nfs-kernel-server
    systemctl start nfs-kernel-server
    systemctl status nfs-kernel-server
    showmount -e 
    Note: All the IP addresses within the 10.14.108.0/23 subnet range allows access to the NFS server.