]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
mkfs: warning about misaligned AGs and RAID stripes is not an error xfsprogs-fixes-6.3_2023-05-09
authorDarrick J. Wong <djwong@kernel.org>
Wed, 26 Apr 2023 15:59:21 +0000 (08:59 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 9 May 2023 16:27:36 +0000 (09:27 -0700)
commit73bc41a27a1db76d9271256b9fd1ab0a70f7b068
tree41c2e875ef3e8c2077a2d77dc0d2775c063069b7
parent4f45719497c8c93b1889677e13bb0ed5faa2de17
mkfs: warning about misaligned AGs and RAID stripes is not an error

I've noticed a fair number of fstests failures when we create a scratch
device on a RAID device and the test specifies an explicit AG count or
AG size:

--- /tmp/fstests/tests/xfs/042.out 2022-09-01 15:09:11.484679979 -0700
+++ /var/tmp/fstests/xfs/042.out.bad 2023-04-25 19:59:04.040000000 -0700
@@ -1,5 +1,8 @@
 QA output created by 042
-Make a 96 megabyte filesystem on SCRATCH_DEV and mount... done
+Make a 96 megabyte filesystem on SCRATCH_DEV and mount... Warning: AG size is a multiple of stripe width.  This can cause performance
+problems by aligning all AGs on the same disk.  To avoid this, run mkfs with
+an AG size that is one stripe unit smaller or larger, for example 8160.
+done

Emitting this warning on stderr is silly -- nothing has failed, and we
aren't going to abort the format either.  Send the warning to stdout.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
mkfs/xfs_mkfs.c