[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:
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.
- For Debian-based distributions, install
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.
- The default directory for all mounts is
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.
- Execute the following command:
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 0 0
- Without this step, the mount will be lost when the NFS Client machine is restarted.
- To maintain the mount across reboots, add the following entry to the
4. Adding an NFS storage in MDSS
In order to integrate NFS with MetaDefender Storage Security, please follow these steps:
- From the left side menu, navigate to Storage units and from the Network-Attached Storage tab, choose Add NFS Storage:

- Assign a meaningful name to your NFS storage for easy identification later.
- 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 entercompany-files
in the text box. - 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:
- NFS Server and NFS Client configuration on Fedora
- NFS Server and NFS Client configuration on Ubuntu
Was this page helpful?