On Thu, Jun 09, 2011 at 11:29:07AM +1000, Dave Chinner wrote:
> Those mount options are ignored if the filesystem doesn't have the
> superblock feature bit set for aligned allocations. A filesystem
> with 0/0 for sunit/swidth does not have the superblock bit set....
Oh man! I thought I saw some improvement with iometer benchmarks before
and after the mount options, but I dont see any significant difference
while timing the untar and rm -rf I've been doing.
All the documentation I came across including the man page and XFS faq
entry imply that the mount options can be used to perform alignment..
"XFS allows to optimize for a given RAID stripe unit (stripe size) and
stripe width (number of data disks) via mount options."
"While the stripe unit and stripe width cannot be changed after an XFS
file system has been created, they can be overridden at mount time with
the sunit/swidth options, similar to ones used by mkfs.xfs."
In these kinds of cases maybe there should be an error logged instead of
just silently ignoring them?
Is there any way to change the superblock? Eg. soething like the ext*
tune2fs -E stride=n,stripe-width=m /dev/xxx