Solved

can't umount nfs share after server goes offline...

Posted on 2016-08-16
4
93 Views
Last Modified: 2016-08-20
df will not run.... I can't umount the share.  Do I have to either bring the server side up to get this fixed?  What if I couldn't bring the server side up?  Would I have to reboot client to get the mount unmounted and df working?
0
Comment
Question by:Xetroximyn
4 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 251 total points
ID: 41758163
Did you try

umount -l /mount/point

or

umount -f /mount/point

?

If you did and it wasn't successful and if you really can't bring up the server then I fear rebooting the client is your only option to get rid of the stale mount.
0
 
LVL 34

Assisted Solution

by:Dan Craciun
Dan Craciun earned 83 total points
ID: 41758428
Right now, reboot is your only option.

If you don't want to get in the same situation again, you could either use autofs or a soft mount.

HTH,
Dan
0
 
LVL 9

Assisted Solution

by:Carlos Ijalba
Carlos Ijalba earned 83 total points
ID: 41761121
Try restarting the NFS client:

rcnfsserver restart 

Open in new window

(this is for Suse, but you can search the command for your particular distro)

If it is a NFSv4 mount, try with:

umount.nfs4 /mountpoint -l

Open in new window


If that doesn't unmount it, try to find if there are any open files on the mountpoint with fuser, or just plan a system reboot out of hours to correct it.
0
 
LVL 16

Assisted Solution

by:Hanno P.S.
Hanno P.S. earned 83 total points
ID: 41762267
The standard hard mount is designed to wait for the server to come back up again.
If you use soft mounts it will possible to unmount.
Sometimes you can forceably unmount (umount -f ...) or try to restart the NFS client on your machine. Be aware that this can hang forever while trying to unmount (do it in an extra window or in background).
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to mount nfs share on this CentOS server? 6 43
parallel rsync issues with Ubuntu 1 30
Solaris acount issues 44 29
Redhat upgrade 1 27
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Outsource Your Fax Infrastructure to the Cloud (And come out looking like an IT Hero!) Relative to the many demands on today’s IT teams, spending capital, time and resources to maintain physical fax servers and infrastructure is not a high priority.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question