[Linux] How to add a NFS storage unit?

For steps 1 and 2, please see this page

3. Setting up the NFS Client machine

Before integrating NFS storage with MetaDefender Storage Security, a mount needs to be created from the NFS Client machine to the NFS Server. Follow these steps on the NFS Client machine:

  1. Install NFS:

    • For Debian-based distributions, install nfs-common.
    • For Fedora-based distributions, install nfs-utils.
    • Our product is not bound to a specific NFS version. It should work as expected with the version provided by the above package.
  2. Prepare the Mount Directory:

    • The default directory for all mounts is /mnt/mdss/nfs. Within this directory, create a new folder, for example, company-files, where the NFS mount will be performed.
    • All new files and folders created by MetaDefender Storage Security (during Sanitization, Remediations) will adopt the same read, write and execute permissions as the parent directory. This means you need to set the appropriate permissions to the company-files folder in order new items to be accessible for the desired audience.
  3. Perform the NFS Mount:

    • Execute the following command:sudo mount {nfs_server_ip}:/srv/company-shared-files /mnt/mdss/nfs/company-files
    • This command mounts the shared files from the NFS Server to the company-files directory on the NFS Client.
    • It is required the mountcommand to have the nolock flag as some older NFS servers are locking the file when opened by another application. Apart from nolock , we do not require any specific flags. As long as the mount command is working as expected and we have read and write permissions to the mount directory, should be enough.
  4. Ensure Persistent Mounting:

    • To maintain the mount across reboots, add the following entry to the /etc/fstab file: {nfs_server_ip}:/srv/company-shared-files /mnt/mdss/nfs/company-files nfs rw,hard,intr,nolock 0 0
    • Without this step, the mount will be lost when the NFS Client machine is restarted.

4. Adding an NFS storage in MDSS

In order to integrate NFS with MetaDefender Storage Security, please follow these steps:

  1. From the left side menu, navigate to Storage units and from the Network-Attached Storage tab, choose Add NFS Storage:
  1. Assign a meaningful name to your NFS storage for easy identification later.
  2. Input the mount directory where your NFS shared files are mounted on the MetaDefender Storage Security machine. For instance, if your files are mounted at /mnt/mdss/nfs/company-files, simply enter company-files in the text box.
  3. Click Add in order to finish the process.

5. Additional NFS Configuration

NFS offers a wide range of configurations to suit different needs. For more detailed information on NFS configurations, please refer to the following resources based on your operating system:

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard