umount fails with device is busy
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, itxfs_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
Quoted 9 lines
I'm trying to run
xfs_repairon my filesystem:
Firstly to unmount the fsQuote:
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
Quoted 12 lines · stress_buster
I'm trying to run
xfs_repairon my filesystem:
Firstly to unmount the fsQuote:
umount /myfs
umount: /myfs: device is busy
umount: /myfs: device is busyQuote:
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_repairQuote:
xfs_repair-n/dev/sda, itxfs_repair:/dev/sdacontains a mounted and writable filesystemfatal 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
Quoted 2 lines · stress_buster
I'm trying to run
xfs_repairon 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
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_repairon 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