Operating System - Linux
1830939 Members
1655 Online
110017 Solutions
New Discussion

Re: DISMOUNTING AN NFS-MOUNTED FILESYSTEM

 
frederick hannah
Super Advisor

DISMOUNTING AN NFS-MOUNTED FILESYSTEM

I want to dismount a filesystem placed on server B, remotely, by NFS from server A. On server A, do I delete the remote server from the /etc/exports file or is there more to do?
2 REPLIES 2
Mark Grant
Honored Contributor

Re: DISMOUNTING AN NFS-MOUNTED FILESYSTEM

You can't do this from server A. Also, if you suddenly deny server B access (which you can do with "exportfs -u client:path") when server B has the filesystem mounted, anything that tries to access it will hang.

The only way you can do it remotely from server A is to rexec or ssh and do a umount on server B.

However, if you know server B has the mount unmounted you can safely do the exporfs command above.
Never preceed any demonstration with anything more predictive than "watch this"
frederick hannah
Super Advisor

Re: DISMOUNTING AN NFS-MOUNTED FILESYSTEM

Thanks. I will start by umounting the filesystem on the client first