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 19:42:03 -0400
Cc: Lonni J Friedman <netllama@xxxxxxxxxxxxx>, David Chinner <dgc@xxxxxxx>, xfs <linux-xfs@xxxxxxxxxxx>
In-reply-to: <14BC3454F4B4614FBC4F3FB19A84C3720D466B@FPNYEXCBE01.opus-i.corp>
Organization: no-dole-available
References: <14BC3454F4B4614FBC4F3FB19A84C3720D466B@FPNYEXCBE01.opus-i.corp>
Reply-to: mingz@xxxxxxxxxxx
Sender: linux-xfs-bounce@xxxxxxxxxxx
On Wed, 2005-08-31 at 18:38 -0400, Allan Haywood wrote:
> thanks!
> 
> 
> how to defragment the whole FS?
> 
> 
> this is only to check fragment right?
> 
> ----------------------
> 
> Correct, it only checks, it doesn't make any changes to fragmentation at
> all.
> 

ic. so check if need to do before actually to do it.

i guess this is what u mean.


ming

> 
> > ----------------------------
> > 
> > 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>