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 11-27-2013, 06:08 PM   #1
MikeDacre
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
Umount drive shared over NFS


Hey Folks,

I have an NFS server. I am using it to share an ext4 lvm device over nfs3 to 22 machines. I can't shut down this server as it is also a torque server and is quite active.

I unmounted the drive in question from every client machine, I then removed the entry from /etc/exports, then I restarted nfs and confirmed that the drive was not being shared anymore. I checked with lsof, lsof +D, and fuser to see if any processes were accessing the drive. Everything looked clear. I tried to umount, it won't work, I get the 'device is busy' error.

I tried lazily unmounting it with 'umount -l', that worked... but then 'lvchange -an' failed with a 'filesystem in use error'.

I know from previous experience that simply disconnecting and reconnecting the drives does not work at this point, that just sets the kernel spewing out IO errors that won't go away until reboot.

I am out of options. I need to do an online filesystem expansion, but I can unmount the drive.

Any ideas?

Thanks!
 
Old 11-27-2013, 06:41 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Yeap. Schedule an outage and reboot it.

I've run into this a bunch and since you restarted NFS and lsof/fuser show nothing, I don't have any more ideas. Also, since you umount -l'd it it 's probably too late.

(this is also a tag in case someone has a better idea)
 
Old 12-01-2013, 08:17 PM   #3
padan
LQ Newbie
 
Registered: Dec 2013
Posts: 4

Rep: Reputation: Disabled
lvchange has a force parameter, that may help you force deactivate it.

But it seems like you just want to expand the FS. Why can't you do that online?
 
  


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
[SOLVED] Simple way to umount NFS mount in linux blainemiller Linux - Newbie 2 10-25-2010 06:00 PM
Strange NFS mount / umount problem .. ..or Bug? PeteRossi Slackware 3 03-07-2006 10:25 PM
cant umount /cdrom which is linked to an NFS server Frustin AIX 7 12-10-2004 07:51 AM
can't umount nfs volume GŠutama Linux - Networking 0 07-10-2003 09:20 AM
Unable to nfs umount:Device or resource busy nabil Linux - General 3 05-05-2002 08:52 PM

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

All times are GMT -5. The time now is 02:01 AM.

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