public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* umount fails with device is busy
@ 2011-03-21 10:53 stress_buster
  2011-03-21 11:29 ` Roger Willcocks
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: stress_buster @ 2011-03-21 10:53 UTC (permalink / raw)
  To: linux-xfs


I'm trying to run xfs_repair on my filesystem:
Firstly to unmount the fs

Quote:
umount /myfs
umount: /myfs: device is busy
umount: /myfs: device is busy  

Quote:
lsof /dev/sda  

-show none ie nothing seems to be 'touching' the disk.
confused why its still showing device is busy

i did a force unmount then 

Quote:
#umount -l /dev/sda  

but then when I try to run xfs_repair

Quote:
xfs_repair -n /dev/sda, it 
xfs_repair: /dev/sda contains a mounted and writable filesystem

fatal error -- couldn't initialize XFS library  

lsof /dev/sda
shows nothing ie nothing seems to be 'touching' the disk.
makes me wonder whether this is a xfs issue now??


Any thoughts???

Thanks 
David 

-- 
View this message in context: http://old.nabble.com/umount-fails-with-device-is-busy-tp31199414p31199414.html
Sent from the linux-xfs mailing list archive at Nabble.com.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* umount fails with device is busy
@ 2011-03-21 10:54 stress_buster
  0 siblings, 0 replies; 6+ messages in thread
From: stress_buster @ 2011-03-21 10:54 UTC (permalink / raw)
  To: linux-xfs


I'm trying to run xfs_repair on my filesystem:
Firstly to unmount the fs

umount /myfs
umount: /myfs: device is busy
umount: /myfs: device is busy  

lsof /dev/sda  

-show none ie nothing seems to be 'touching' the disk.
confused why its still showing device is busy

i did a force unmount then 

#umount -l /dev/sda  

but then when I try to run xfs_repair

xfs_repair -n /dev/sda, it 
xfs_repair: /dev/sda contains a mounted and writable filesystem

fatal error -- couldn't initialize XFS library  

lsof /dev/sda
shows nothing ie nothing seems to be 'touching' the disk.
makes me wonder whether this is a xfs issue now??


Any thoughts???

Thanks 
David 

-- 
View this message in context: http://old.nabble.com/umount-fails-with-device-is-busy-tp31199421p31199421.html
Sent from the linux-xfs mailing list archive at Nabble.com.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: umount fails with device is busy
  2011-03-21 10:53 stress_buster
@ 2011-03-21 11:29 ` Roger Willcocks
  2011-03-21 15:45 ` Eric Sandeen
  2011-03-22  5:13 ` Dave Chinner
  2 siblings, 0 replies; 6+ messages in thread
From: Roger Willcocks @ 2011-03-21 11:29 UTC (permalink / raw)
  To: stress_buster; +Cc: linux-xfs

> 
> I'm trying to run xfs_repair on my filesystem:
> Firstly to unmount the fs
> 
> Quote:
> umount /myfs
> umount: /myfs: device is busy
> umount: /myfs: device is busy  
> 
> Quote:
> lsof /dev/sda  
> 
> -show none ie nothing seems to be 'touching' the disk.
> confused why its still showing device is busy

Are you swapping to it ?
# cat /proc/ swaps

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: umount fails with device is busy
  2011-03-21 10:53 stress_buster
  2011-03-21 11:29 ` Roger Willcocks
@ 2011-03-21 15:45 ` Eric Sandeen
  2011-03-22  5:13 ` Dave Chinner
  2 siblings, 0 replies; 6+ messages in thread
From: Eric Sandeen @ 2011-03-21 15:45 UTC (permalink / raw)
  To: stress_buster; +Cc: linux-xfs

On 3/21/11 5:53 AM, stress_buster wrote:
> 
> I'm trying to run xfs_repair on my filesystem:
> Firstly to unmount the fs
> 
> Quote:
> umount /myfs
> umount: /myfs: device is busy
> umount: /myfs: device is busy  
> 
> Quote:
> lsof /dev/sda  
> 
> -show none ie nothing seems to be 'touching' the disk.
> confused why its still showing device is busy
> 
> i did a force unmount then 
> 
> Quote:
> #umount -l /dev/sda  

that's not really enough.

Checking swap is a good idea, as is looking for loopback mounted
files on the fs...

-Eric

> but then when I try to run xfs_repair
> 
> Quote:
> xfs_repair -n /dev/sda, it 
> xfs_repair: /dev/sda contains a mounted and writable filesystem
> 
> fatal error -- couldn't initialize XFS library  
> 
> lsof /dev/sda
> shows nothing ie nothing seems to be 'touching' the disk.
> makes me wonder whether this is a xfs issue now??
> 
> 
> Any thoughts???
> 
> Thanks 
> David 
> 

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: umount fails with device is busy
  2011-03-21 10:53 stress_buster
  2011-03-21 11:29 ` Roger Willcocks
  2011-03-21 15:45 ` Eric Sandeen
@ 2011-03-22  5:13 ` Dave Chinner
  2011-04-07 14:45   ` Leo Davis
  2 siblings, 1 reply; 6+ messages in thread
From: Dave Chinner @ 2011-03-22  5:13 UTC (permalink / raw)
  To: stress_buster; +Cc: linux-xfs

On Mon, Mar 21, 2011 at 03:53:04AM -0700, stress_buster wrote:
> 
> I'm trying to run xfs_repair on my filesystem:

Why do you need to do this?

> Firstly to unmount the fs
> 
> Quote:
> umount /myfs
> umount: /myfs: device is busy
> umount: /myfs: device is busy  
> 
> Quote:
> lsof /dev/sda  
> 
> -show none ie nothing seems to be 'touching' the disk.
> confused why its still showing device is busy

Did you have an oops or a filesystem shutdown? i.e. anything in
syslog of note?

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: umount fails with device is busy
  2011-03-22  5:13 ` Dave Chinner
@ 2011-04-07 14:45   ` Leo Davis
  0 siblings, 0 replies; 6+ messages in thread
From: Leo Davis @ 2011-04-07 14:45 UTC (permalink / raw)
  To: Dave Chinner; +Cc: linux-xfs


[-- Attachment #1.1: Type: text/plain, Size: 1410 bytes --]

missed your reply on this one.... I'd almost given up on this one.....

>Why do you need to do this?
I have an app which occassionally throws errors suggesting the fs is at fault. 
But in most cases, I'm not sure whether it's the fs or the raid underneath thats 
causing it.
So I usually run xfs_repair with the -n switch.

Did you have an oops or a filesystem shutdown? i.e. anything in
syslog of note?

not recently, but in the past had some unclean shutdowns and on one instance I 
did a umount -l on the raid set when it refused to unmount gracefully.
But I had re-raided the server since.



________________________________
From: Dave Chinner <david@fromorbit.com>
To: stress_buster <leo1783@yahoo.com>
Cc: linux-xfs@oss.sgi.com
Sent: Tue, March 22, 2011 10:43:53 AM
Subject: Re: umount fails with device is busy

On Mon, Mar 21, 2011 at 03:53:04AM -0700, stress_buster wrote:
> 
> I'm trying to run xfs_repair on my filesystem:

Why do you need to do this?

> Firstly to unmount the fs
> 
> Quote:
> umount /myfs
> umount: /myfs: device is busy
> umount: /myfs: device is busy  
> 
> Quote:
> lsof /dev/sda  
> 
> -show none ie nothing seems to be 'touching' the disk.
> confused why its still showing device is busy

Did you have an oops or a filesystem shutdown? i.e. anything in
syslog of note?

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

[-- Attachment #1.2: Type: text/html, Size: 2317 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-04-07 14:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-21 10:54 umount fails with device is busy stress_buster
  -- strict thread matches above, loose matches on Subject: below --
2011-03-21 10:53 stress_buster
2011-03-21 11:29 ` Roger Willcocks
2011-03-21 15:45 ` Eric Sandeen
2011-03-22  5:13 ` Dave Chinner
2011-04-07 14:45   ` Leo Davis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox