xfs
[Top] [All Lists]

Re: XFS defragmentation issue

To: xfs@xxxxxxxxxxx
Subject: Re: XFS defragmentation issue
From: John Lister <john.lister@xxxxxxxxxxxxx>
Date: Sat, 11 Sep 2010 07:55:32 +0100
In-reply-to: <4C8A4395.5070702@xxxxxxxxxxxxx>
References: <4C8A4395.5070702@xxxxxxxxxxxxx>
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2
 Stan Hoeppner wrote on 9/10/2010 14:00
>>On 10/09/2010 15:41, John Lister wrote:
>> Hi, using ubuntu 9.04, kernel version 2.6.28-18 and xfsprog v2.10.2-1 I'm trying to defragment a drive. If I use xfs_db to check for fragmentation it shows for >>example that a file has 20k+ fragments:
>>inode 578505506 actual 23240 ideal 1
>>
>>mapping the inode to the file and running xfs_frs states that the file is fully defragmented.
>>
>>Also running xfs_frs says the drive is defragmented while xfs_db for example reports 300k fragments.
>>
>>Which is right? and is it possible to defragment the file assuming it is fragmented so badly, if so how?

>Try unmounting and remounting the filesystem, and see if the various
>tools all report the same thing afterwards. This solved the exact same
>problem for me very recently, though I'm on kernel 2.6.34.1 and xfsprogs
>2.9.8.

Cheers, that got rid of most of it, there is still a slight discrepency (50 extra fragments) which I can live with.

John

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