xfs
[Top] [All Lists]

RE: how to defragment xfs?

To: "Lonni J Friedman" <netllama@xxxxxxxxxxxxx>, "David Chinner" <dgc@xxxxxxx>
Subject: RE: how to defragment xfs?
From: "Allan Haywood" <allanh@xxxxxxxxxxxxxx>
Date: Wed, 31 Aug 2005 18:08:16 -0400
Cc: "xfs" <linux-xfs@xxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
Thread-index: AcWudsuAZntAmY43RryX2MKkBTIKSwAATlqw
Thread-topic: how to defragment xfs?
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.

----------------------------

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>