* "Invalid block length" warning with small blocksize
@ 2011-04-01 10:13 Pavol Gono
2011-04-01 22:19 ` Dave Chinner
0 siblings, 1 reply; 2+ messages in thread
From: Pavol Gono @ 2011-04-01 10:13 UTC (permalink / raw)
To: xfs
Hi
I am getting this warning in kernel log:
XFS: Invalid block length (0x2000) given for buffer
during mount, and I don't know if this can be safely ignored or not.
It happens only if I formatted XFS with block size smaller than 4k.
And I experienced it only in my virtual machine (using VirtualBox). I
have tested it on two physical servers and it didn't happen.
OS is SLES11 SP1 64-bit.
partbox:~ # uname -a
Linux partbox 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200
x86_64 x86_64 x86_64 GNU/Linux
partbox:~ # fdisk -l
Disk /dev/sda: 34.4 GB, 34359738368 bytes
255 heads, 63 sectors/track, 4177 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00074280
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1305 10482381 83 Linux
/dev/sda2 1306 1435 1044225 83 Linux
/dev/sda3 1436 4177 22025115 f W95 Ext'd (LBA)
/dev/sda5 1436 1467 257008+ 82 Linux swap / Solaris
/dev/sda6 1468 1728 2096451 83 Linux
/dev/sda7 1729 1793 522081 83 Linux
/dev/sda8 1794 4177 19149448+ 83 Linux
partbox:~ # mkfs.xfs -f -b size=4k /dev/sda2
meta-data=/dev/sda2 isize=256 agcount=4, agsize=65264 blks
= sectsz=512 attr=2
data = bsize=4096 blocks=261056, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal log bsize=4096 blocks=1200, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
partbox:~ # mount /dev/sda2 /opt
partbox:~ # dmesg | tail -2
[ 484.331102] XFS mounting filesystem sda2
[ 484.334071] Ending clean XFS mount for filesystem: sda2
partbox:~ # umount /dev/sda2
partbox:~ # mkfs.xfs -f -b size=2k /dev/sda2
meta-data=/dev/sda2 isize=256 agcount=4, agsize=130528 blks
= sectsz=512 attr=2
data = bsize=2048 blocks=522112, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal log bsize=2048 blocks=1728, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
partbox:~ # mount /dev/sda2 /opt
partbox:~ # dmesg | tail -3
[ 560.534120] XFS mounting filesystem sda2
[ 560.537462] XFS: Invalid block length (0x2000) given for buffer
[ 560.542101] Ending clean XFS mount for filesystem: sda2
partbox:~ #
Pavol Gono
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: "Invalid block length" warning with small blocksize
2011-04-01 10:13 "Invalid block length" warning with small blocksize Pavol Gono
@ 2011-04-01 22:19 ` Dave Chinner
0 siblings, 0 replies; 2+ messages in thread
From: Dave Chinner @ 2011-04-01 22:19 UTC (permalink / raw)
To: Pavol Gono; +Cc: xfs
On Fri, Apr 01, 2011 at 12:13:55PM +0200, Pavol Gono wrote:
> Hi
>
> I am getting this warning in kernel log:
> XFS: Invalid block length (0x2000) given for buffer
> during mount, and I don't know if this can be safely ignored or not.
Yes, it can be ignored - it's just a warning that the code fell back
to using a smaller-than-optimal block size for reading the log
during recovery. I see it quite often when running xfstests on 512
byte block sіze filesystems.
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-01 22:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-01 10:13 "Invalid block length" warning with small blocksize Pavol Gono
2011-04-01 22:19 ` Dave Chinner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox