Is xfs defrag *reliably* aligned to stripes?

Dave Chinner david at fromorbit.com
Mon Nov 22 17:07:28 CST 2010


On Mon, Nov 22, 2010 at 08:18:27PM +0100, Spelic wrote:
> Hello xfs people,
> 
> does the xfs defrag (xfs_fsr, I think) reliably aligns files to stripes?

No, the allocator does best effort attempts only.

> Does it do that? Will it do that in the future?

If the filesystem has large enough contiguous free space extents, it
will align the initial allocation to stripe unit, but once you age
the filesystem there is no guarantee this will be possible. use
"xfs_bmap -vvp" to look at the alignment of files.

Of course, this all only works if you mkfs your filesystem with
sunit/swidth or su/sw parameters....

Cheers,

Dave.
-- 
Dave Chinner
david at fromorbit.com




More information about the xfs mailing list