You can use the exportfs -ua command to unexport all file system paths without removing their corresponding entries from the /etc/exports file.
Before you begin
Note: Be aware that running this command unmounts all file system paths, disconnecting all NFS clients from the storage system.
Step
- Enter the following command: exportfs -ua
-u specifies to unexport file system paths.
-a specifies all file system paths.