xfs
[Top] [All Lists]

Re: defrag xfs

To: "Wilkins, Vern" <vwilkins@xxxxxxxxxxx>
Subject: Re: defrag xfs
From: Steve Lord <lord@xxxxxxx>
Date: Thu, 20 Jan 2005 21:01:03 -0600
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <F62740B0EFCFC74AA6DCF52CD746242D010337F6@iu-mssg-mbx05.exchange.iu.edu>
References: <F62740B0EFCFC74AA6DCF52CD746242D010337F6@iu-mssg-mbx05.exchange.iu.edu>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0RC1 (X11/20041201)
Wilkins, Vern wrote:
root@vw-linux /data # df -h /dev/sdb4
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb4              40G   22G   19G  55% /data
root@vw-linux /data # xfs_db -r /dev/sdb4
xfs_db> frag
actual 62504, ideal 440, fragmentation factor 99.30%
xfs_db>


Are there any recent efforts to have a defrag utility for XFS on Linux? I've seen a few discussions about this, but it appears there isn't much demand for a defrag utility for any journaling filesystems on Linux.

This partition has been in use only about a year, and is only moderately used 
for editing mp3's and large mpg's.  I'll admit I haven't seen anything this bad 
on other partitions such as / or /usr, but I've encountered situations like 
this enough, with all journaling filesystems, that it really gets frustrating 
not being able to defrag.

Vern



You mean like this:

                                                         xfs_fsr(8)

NAME
       xfs_fsr - filesystem reorganizer for XFS

SYNOPSIS
       xfs_fsr [-v] [-t seconds] [-f leftoff] [-m mtab]
       xfs_fsr [-v] [xfsdev | file] ...

DESCRIPTION
xfs_fsr is applicable only to XFS filesystems.

xfs_fsr improves the organization of mounted filesystems. The reorga-
nization algorithm operates on one file at a time, compacting or oth-
erwise improving the layout of the file extents (contiguous blocks of
file data).

Steve


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