xfs
[Top] [All Lists]

Re: umount fails with device is busy

To: stress_buster <leo1783@xxxxxxxxx>
Subject: Re: umount fails with device is busy
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Mon, 21 Mar 2011 10:45:44 -0500
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <31199414.post@xxxxxxxxxxxxxxx>
References: <31199414.post@xxxxxxxxxxxxxxx>
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9
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 
> 

<Prev in Thread] Current Thread [Next in Thread>