Unix Technical Forum

Why won't the file system unmount ??

This is a discussion on Why won't the file system unmount ?? within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> Hi, I'm trying to unmount a file system, but it keeps saying its busy. sparrow / # umount /downloads ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2008, 06:29 AM
Dr. David Kirkby
 
Posts: n/a
Default Why won't the file system unmount ??

Hi,
I'm trying to unmount a file system, but it keeps saying its busy.

sparrow / # umount /downloads
umount: /downloads busy

but I've tried looking with fuser and lsof to find an open file, but
can't find one.

sparrow / # umount /downloads
umount: /downloads busy
sparrow / # fuser /downloads
/downloads:
sparrow / # lsof +d /downloads
sparrow / # umount /downloads
umount: /downloads busy

In the end I forced the unmount with the -f argument to umount, but
I'd like to know why it was happening in the first place.



--
Dr. David Kirkby,
Senior Research Fellow,
Department of Medical Physics,
University College London,
11-20 Capper St, London, WC1E 6JA.
Website: http://www.medphys.ucl.ac.uk/~davek
Author of 'atlc' http://atlc.sourceforge.net/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-12-2008, 06:29 AM
Tony Curtis
 
Posts: n/a
Default Re: Why won't the file system unmount ??

>> On Tue, 09 Sep 2003 19:11:45 +0100,
>> "Dr. David Kirkby" <drkirkby@ntlworld.com> said:


> Hi, I'm trying to unmount a file system, but it keeps
> saying its busy.


> sparrow / # umount /downloads umount: /downloads busy


> but I've tried looking with fuser and lsof to find an
> open file, but can't find one.


> sparrow / # umount /downloads umount: /downloads busy
> sparrow / # fuser /downloads /downloads: sparrow / #
> lsof +d /downloads sparrow / # umount /downloads umount:
> /downloads busy


> In the end I forced the unmount with the -f argument to
> umount, but I'd like to know why it was happening in the
> first place.


is it exported through NFS?

Maybe

# share

shows it exported?

hth
t
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-12-2008, 06:29 AM
Dr. David Kirkby
 
Posts: n/a
Default Re: Why won't the file system unmount ??

Tony Curtis wrote:
>
> >> On Tue, 09 Sep 2003 19:11:45 +0100,
> >> "Dr. David Kirkby" <drkirkby@ntlworld.com> said:

>
> > Hi, I'm trying to unmount a file system, but it keeps
> > saying its busy.

>
> > sparrow / # umount /downloads umount: /downloads busy

>
> > but I've tried looking with fuser and lsof to find an
> > open file, but can't find one.

>
> > sparrow / # umount /downloads umount: /downloads busy
> > sparrow / # fuser /downloads /downloads: sparrow / #
> > lsof +d /downloads sparrow / # umount /downloads umount:
> > /downloads busy

>
> > In the end I forced the unmount with the -f argument to
> > umount, but I'd like to know why it was happening in the
> > first place.

>
> is it exported through NFS?
>
> Maybe
>
> # share
>
> shows it exported?
>
> hth
> t



Thanks, that was the reason. I'm surprised I did not think of it. None
of the machines which mount the file system were on, so I don't think I
would have done any harm forcing the unmount.


--
David Kirkby Ph.D
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-12-2008, 06:29 AM
Beardy
 
Posts: n/a
Default Re: Why won't the file system unmount ??

Dr. David Kirkby wrote:

> Thanks, that was the reason. I'm surprised I did not think of it. None
> of the machines which mount the file system were on, so I don't think I
> would have done any harm forcing the unmount.
>


NFS can be a strange one at times... I remember once having a filesystem
that would not umount. I eventually traced it down to being held by a
<defunct> process that used to be an nfsd. Unfortunately it was on
Solaris 8, so I didn't have the luxury of preap ( Solaris 9 Rocks!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-12-2008, 06:29 AM
Beardy
 
Posts: n/a
Default Re: Why won't the file system unmount ??

Ian Fitchet wrote:
> Beardy <beardy@beardy.net> writes:
>
>
>>Dr. David Kirkby wrote:
>>
>>
>>>Thanks, that was the reason. I'm surprised I did not think of it. None
>>>of the machines which mount the file system were on, so I don't think I
>>>would have done any harm forcing the unmount.

>>
>>NFS can be a strange one at times... I remember once having a
>>filesystem that would not umount. I eventually traced it down to being
>>held by a <defunct> process that used to be an nfsd. Unfortunately it
>>was on Solaris 8, so I didn't have the luxury of preap ( Solaris 9
>>Rocks!

>
>
> Funnily, I think it was on Solaris 8 there was a neat side effect of
> the /usr/proc/bin commands. I had a similar problem with strangely
> defunct processes (though nothing so annoying as holding a filesystem
> up) and discovered that pmap would cause a defunct process, parented
> by init, to finally exit.


Cool :-)

> Of course, the first time it happened: "bugger, fancy init reaping
> the process just then, I was trying to debug it."
>
> Cheers,
>
> Ian


Warmer ;-}

I had a nasty attack of newbie-ism once, wherein I couldn't mount a
filesystem manually, but if I rmdir'd the mountpoint, and mkdir'd it
with the same name, the filesystem would mount fine.

Took me a while to figure out that it was bcoz the mountpoint was NFS
shared (even though it was empty), and thus I couldn't mount a
filesystem on top of it.

DOH!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:21 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com