LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-21-2011, 02:08 PM   #1
baltazar3
LQ Newbie
 
Registered: Nov 2009
Posts: 13

Rep: Reputation: 0
NFS refuses to unmount


I have a drive on a server that is shared via nfs to a client. This works as expected. Then I want to unmount the drive from the server. I first unmount the drive from the client:
umount /local/path

Then I comment out the drive in /etc/exports on the server and run:
sudo exportfs -a

Then I try to unmount it on the server, but it is busy. lsof and fuser shows nothing. I have even tried stopping nfsd and rpd. One process always remains that cant be killed, it is called nfsiod. If i restart the server the drive can be mounted and unmounted as usual, until a client mounts it. After this it is always locked, even if the client unmounts. What is going on?
 
Old 02-21-2011, 02:19 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
Try
Code:
sudo exportfs -rf
 
1 members found this post helpful.
Old 02-21-2011, 02:43 PM   #3
baltazar3
LQ Newbie
 
Registered: Nov 2009
Posts: 13

Original Poster
Rep: Reputation: 0
It worked, thanks! I spent like 2 hours trying to make that work without success.
 
  


Reply

Tags
lock, mount, nfs



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
Cannot unmount NFS if filesystem. jizlobber Red Hat 2 04-19-2006 11:07 AM
Slackware does not unmount NFS before going singleuser Yalla-One Slackware 5 12-11-2005 10:19 AM
Can't unmount NFS. Remote NFS system was down. PeteRossi Linux - Software 3 10-05-2003 02:23 PM
command 'unmount' not found - how can i unmount??? GloVe Linux - General 1 10-04-2003 06:33 AM
nfs unmount error mathfeel Linux - General 7 12-13-2002 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:23 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