Re: Unable to unmount a filesystem

From: Forkner, Robert (forknerr@ACU.EDU)
Date: Mon Aug 05 2002 - 12:48:53 EDT


I'm not, but that's gotten me before! ;-) However, if I had been in that
directory, the output of lsof would have looked like this:

$ sudo lsof +D /u04 2>/dev/null
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
lsof 62398 root cwd VDIR 10,4 512 4321 /u04
ksh 83726 user01 cwd VDIR 10,4 512 4321 /u04
lsof 104328 root cwd VDIR 10,4 512 4321 /u04

Robert Forkner
Abilene Christian University

-----Original Message-----
From: Michelle DeVault [mailto:adsmigmo@YAHOO.COM]
Sent: Monday, August 05, 2002 11:34 AM
To: aix-l@Princeton.EDU
Subject: Re: Unable to unmount a filesystem

pwd and make sure you are not sitting in the
filesystem you are trying to unmount.
--- "Forkner, Robert" <forknerr@ACU.EDU> wrote:
> $ sudo umount /u04
> umount: 0506-349 Cannot unmount /dev/oralv04: The
> requested resource is
> busy.
>
> But when I use lsof to see what resources might be
> using it, or who might
> have cd'd to it unintentionally ;-)... I get
> nothing:
> $ sudo lsof +d /u04 2>/dev/null
> $
>
>
> As you can see, everything has been moved off of the
> filesystem so that I
> can resize (shrink) it:
>
> $ ls -la /u04
> total 24
> drwxr-xr-x 3 oracle dba 512 Jul 31
> 10:41 .
> drwxr-xr-x 28 bin bin 1536 Aug 04
> 23:03 ..
> drwxrwx--- 2 oracle dba 512 Feb 08
> 18:58 lost+found
>
> $ ls -la /u04/lost+found
> total 16
> drwxrwx--- 2 oracle dba 512 Feb 08
> 18:58 .
> drwxr-xr-x 3 oracle dba 512 Jul 31
> 10:41 ..
>
> So the OS thinks something is using the
> filesystem... if lsof won't identify
> it, what will? I could always bring it down to
> single user mode, but this
> is a production box and I hate to do that just to
> unmount a filesystem...
> unfortunately, I need to reconfigure (shrink)
> filespace and therefore I do
> NEED to unmount it. Any suggestions?
>

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:06 EDT