http://oss.sgi.com/bugzilla/show_bug.cgi?id=793
------- Additional Comments From peter@xxxxxxxxx 2008-10-01 13:52 CST -------
(In reply to comment #4)
> Created an attachment (id=246)
--> (http://oss.sgi.com/bugzilla/attachment.cgi?id=246&action=view) [edit]
> potential patch
>
> Maybe like this ...
Where previously mkfs.xfs would have refused to create the FS, this creates
filesystems that don't mount. (i.e. with -d su=64k,sw=6,agcount=8. No other
options seem to matter for this.)
mkfs.xfs version 2.10.1 (+ this patch) compiled on Ubuntu Hardy (gcc 4.2,
Ubuntu's Linux 2.6.24-21 server.)
sudo umount /data; sudo
/opt/perun/src/debian/xfsprogs/xfsprogs-2.10.1/mkfs/mkfs.xfs -f -L data -d
su=64k,sw=6,agcount=8 /dev/sdb2 && sudo mount /dev/sdb2 /data && echo success
agsize rounded to 70172672, swidth = 96
meta-data=/dev/sdb2 isize=256 agcount=8, agsize=70172672 blks
= sectsz=512 attr=2
data = bsize=4096 blocks=561381403, imaxpct=5
= sunit=16 swidth=96 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal log bsize=4096 blocks=32768, version=2
= sectsz=512 sunit=16 blks, lazy-count=0
realtime =none extsz=4096 blocks=0, rtextents=0
mount: Structure needs cleaning
[53220.208292] XFS: SB sanity check 2 failed
[53220.208297] XFS: SB validate failed
Maybe the Linux kernel something else is checking alignments. At least it's
handy for getting an agsize that I can pass to mkfs.xfs; that still works fine.
sudo umount /data; sudo
/opt/perun/src/debian/xfsprogs/xfsprogs-2.10.1/mkfs/mkfs.xfs -f -L data -d
su=64k,sw=6,agsize=$((70172672*4096)) /dev/sdb2 && sudo mount /dev/sdb2 /data
&& echo success
umount: /data: not mounted
meta-data=/dev/sdb2 isize=256 agcount=8, agsize=70172672 blks
= sectsz=512 attr=2
data = bsize=4096 blocks=561381376, imaxpct=5
= sunit=16 swidth=96 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal log bsize=4096 blocks=32768, version=2
= sectsz=512 sunit=16 blks, lazy-count=0
realtime =none extsz=4096 blocks=0, rtextents=0
success
[53380.401312] XFS mounting filesystem sdb2
[53380.409735] Ending clean XFS mount for filesystem: sdb2
(BTW, I did try patching the 2.9.8 Debian source, with the same results.)
You should be able to test this on any machine, unless the problem was specific
to my 2.2TiB block device. Just specify su=64k,sw=6.
--
Configure bugmail: http://oss.sgi.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
|