xfs
[Top] [All Lists]

RE: how to defragment xfs?

To: Allan Haywood <allanh@xxxxxxxxxxxxxx>
Subject: RE: how to defragment xfs?
From: Ming Zhang <mingz@xxxxxxxxxxx>
Date: Wed, 31 Aug 2005 18:17:55 -0400
Cc: Lonni J Friedman <netllama@xxxxxxxxxxxxx>, David Chinner <dgc@xxxxxxx>, xfs <linux-xfs@xxxxxxxxxxx>
In-reply-to: <14BC3454F4B4614FBC4F3FB19A84C3720D4666@xxxxxxxxxxxxxxxxxxxxxxx>
Organization: no-dole-available
References: <14BC3454F4B4614FBC4F3FB19A84C3720D4666@xxxxxxxxxxxxxxxxxxxxxxx>
Reply-to: mingz@xxxxxxxxxxx
Sender: linux-xfs-bounce@xxxxxxxxxxx
On Wed, 2005-08-31 at 18:08 -0400, Allan Haywood wrote:
> On Thu, 1 Sep 2005, David Chinner wrote:
> > On Wed, Aug 31, 2005 at 04:52:23PM -0400, Ming Zhang wrote:
> > > Hi folks
> > >
> > > I wonder how I can defragment the xfs?
> >
> > Ob-FAQ: Google is your friend:
> >
> > http://www.google.com/search?q=how+to+defragment+XFS
> >
> > xfs_fsr(8) is what you want - it's in the xfsdump package IIRC...
> 
> And that assumes that you need to defragment your fs in the first place.
> 

thanks!


how to defragment the whole FS?


this is only to check fragment right?
> ----------------------------
> 
> You can use the following command to check fragmentation:
> 
> xfs_db -c frag -r /dev/md0
> 
> replace /dev/md0 with the name of the device you want to check.
> 
> This is what the output will look like:
> 
> actual 184, ideal 176, fragmentation factor 4.35%
> 
> 
> Allan Haywood
> Data Warehouse Systems Specialist
> DATAllegro
> 65 Enterprise
> Aliso Viejo, CA 92656
> 949.330.7633 direct
> 949.330.7691 fax
> E-mail: allanh@xxxxxxxxxxxxxx
> Web: www.Datallegro.com
> 
> 
> 
> 


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