Solved

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

Posted on 2016-08-16
4
102 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 35

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

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

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

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

738 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