Skip to contentSkip to conversation

umount fails with device is busy

DISCUSSION stress_buster 4 participants 5 messages Mar 21, 2011 – Apr 7, 2011

lore
Share & tools
lore
#0 lore raw

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

Signature · 7 lines
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
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
#1 lore raw
Quoted 9 lines

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

Quoted 5 lines

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
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#2 lore raw
In reply to stress_buster
Quoted 12 lines · stress_buster

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

Quoted 7 lines

-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

Quoted 13 lines

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??

Quoted 5 lines

Any thoughts???

Thanks
David

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#3 lore raw
In reply to stress_buster
Quoted 2 lines · stress_buster

I'm trying to run xfs_repair on my filesystem:

Why do you need to do this?

Quoted 7 lines

Firstly to unmount the fs

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

Quoted 5 lines

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.

Signature · 7 lines
Dave Chinner
[email protected]

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
author
#4 lore raw

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

Quoted 1 line

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 <[email protected]>
To: stress_buster <[email protected]>
Cc: [email protected]
Sent: Tue, March 22, 2011 10:43:53 AM
Subject: Re: umount fails with device is busy

Quoted 2 lines · stress_buster

I'm trying to run xfs_repair on my filesystem:

Why do you need to do this?

Quoted 7 lines

Firstly to unmount the fs

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

Quoted 5 lines

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.

Signature · 2 lines
Dave Chinner
[email protected]

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs