[Bugme-new] [Bug 41052] New: Error message when allocation group size too big is misleading
bugzilla-daemon at bugzilla.kernel.org
bugzilla-daemon at bugzilla.kernel.org
Fri Aug 12 15:26:31 PDT 2011
https://bugzilla.kernel.org/show_bug.cgi?id=41052
Summary: Error message when allocation group size too big is
misleading
Product: File System
Version: 2.5
Kernel Version: RHEL version 6.1 (2.6.32-131.0.15.el6.x86_64)
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: low
Priority: P1
Component: XFS
AssignedTo: xfs-masters at oss.sgi.com
ReportedBy: linuxteer at gmail.com
Regression: No
Description of problem:
In my test system I created a FS where the default allocation groups size
happened to be of about 1 GiB:
[root at localhost ~]# mkfs.xfs -L nss6_1 -f -d su=512k,sw=20 -l
sunit=512,size=64m /dev/sdc
meta-data=/dev/sdc isize=256 agcount=37, agsize=268435328 blks
= sectsz=512 attr=2
data = bsize=4096 blocks=9764864000, imaxpct=5
= sunit=128 swidth=2560 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal log bsize=4096 blocks=16384, version=2
= sectsz=512 sunit=64 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
However if I specify less allocation groups then the default, instead of
getting a message complaining of AG size too big I get this error message:
[root at localhost ~]# mkfs.xfs -L nss6_1 -f -d agcount=31,su=512k,sw=20 -l
sunit=512,size=64m ${dev1}
Allocation group size (314995613) is not a multiple of the stripe unit (128)
Version-Release number of selected component (if applicable):
I am using a RHEL 6.1 server with kernel 2.6.32-131.0.15.el6.x86_64 and XFS
packages:
xfsprogs-devel-3.1.1-4.el6.x86_64
xfsprogs-3.1.1-4.el6.x86_64
xfsdump-3.0.4-2.el6.x86_64
xfsprogs-qa-devel-3.1.1-4.el6.x86_64
LANG=en_US.UTF-8
How reproducible:
100%
Steps to Reproduce:
1. Create a XFS FS where allocation groups size is over 1 TiB.
2. Inspect the misleading error message.
3.
Actual results:
"Allocation group size (314995613) is not a multiple of the stripe unit (128)"
Expected results:
"Allocation group size (314995613 blks) is over maximum allocation groups size
of 1 TiB (268435328 blks)"
Or a message related to the AG size being over maximum allowed.
Also a nice improvement is to add the units for values displayed in the message
(blocks in this case).
Note.
I opened also a Red Hat bug:
Bug 730433 - Error message when allocation group size too big is misleading
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Bugme-new
mailing list