Solved

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

Posted on 2016-08-16
4
67 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 Schröder
Hanno Schröder 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
With the withdrawal of support for Windows Server 2003 this summer, many clients face the issue of moving away from their 2003 installs. There are a few options out there that many people/companies are selling. But the clients I have, haven't wanted…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now