LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-10-2000, 01:49 PM   #1
Larry James
Member
 
Registered: Jun 2000
Location: Buffalo, New York
Distribution: Ubuntu, Raspbian
Posts: 381

Rep: Reputation: 40

Can someone advise me of a way to unmount nfs devices without
rebooting after an nfs server has become unavailable.

Every time one of my nfs servers locks up, the computers the
terminals that had been using the mounts become hung. If I type in df
on one of the other machine, that terminal will hang. If I try to
umount the device it'll give the error:

umount: /mnt: device is busy

It's not possible to unmount the device because something had be
using it. Since the terminals were telnet sessions, I kill all the
login sessions that had had access to the device. It's still not
possible to unmount the device. The only way I can recover the ability
to use the df command (as well as others that might test that mounted
device), the terminal will hang.

Grep'ing ps for "df" shows:

root 22764 0.0 0.3 1052 468 ? D 13:55 0:00 df -v
root 23352 0.0 0.3 1052 468 ? D 14:07 0:00 df -v

An attemp to kill the tasks 22764 and 23352 fails. (using kill -9 tasks)

Thanks in advance for any suggestions or comments.

-- L. James
 
Old 12-10-2000, 09:53 PM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,597

Rep: Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080
umount -f should work.
 
Old 12-10-2000, 11:42 PM   #3
Larry James
Member
 
Registered: Jun 2000
Location: Buffalo, New York
Distribution: Ubuntu, Raspbian
Posts: 381

Original Poster
Rep: Reputation: 40
I should have included that I had already used:

umount -f
umount -r (to change it to read-only which I was hoping would notify the system that everything was flushed and updated then allow the umount to proceed)
umount -aft nfs (to umount everything)

Also, the nfs system that had failed is back up. I would have thought that the nfs becoming available would have wokeup the hung processes.

I keep locking up terminals because I have a habit of typing df -v for no reason and unconscienciously. It's like a fill-in while I'm thinking of another command to type when I'm working.

-- L. James
 
Old 12-11-2000, 11:41 AM   #4
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,597

Rep: Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080
hmm...that's strange. According to the umount man page
Quote:
-f Force unmount (in case of an unreachable NFS system). (Requires kernel 2.1.116 or later.)
Did you trying running this as root?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
umounting NFS jonfa Linux - Networking 9 12-14-2007 03:01 PM
NFS server - client cannot mount remote file system mikemrh9 Linux - Networking 6 10-12-2006 11:05 PM
Umounting NFS shared directory matta Linux - Networking 2 03-09-2004 05:31 AM
Can't unmount NFS. Remote NFS system was down. PeteRossi Linux - Software 3 10-05-2003 02:23 PM
umounting NFS Syncrm Linux - General 4 10-11-2002 07:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration