Is this available for Linux? I was aware of it on Irix, but I've never seen it
included with the xfs utilities I use on Linux. Maybe some source code that I
can compile for Linux?
Thanks,
Vern
/bin
/bin/xfs_copy
/bin/xfs_db
/bin/xfs_admin
/bin/xfs_check
/bin/xfs_ncheck
/bin/xfs_growfs
/bin/xfs_info
/bin/xfs_io
/bin/xfs_bmap
/bin/xfs_freeze
/bin/xfs_logprint
/bin/xfs_mkfile
/bin/xfs_rtcp
/sbin
/sbin/fsck.xfs
/sbin/mkfs.xfs
/sbin/xfs_repair
-----Original Message-----
From: Steve Lord [mailto:lord@xxxxxxx]
Sent: Thu 1/20/2005 10:01 PM
To: Wilkins, Vern
Cc: linux-xfs@xxxxxxxxxxx
Subject: Re: defrag xfs
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
|