From: Eric Sandeen <sandeen@sandeen.net>
To: "Jochen K." <jochen.f.k@googlemail.com>
Cc: xfs@oss.sgi.com
Subject: Re: Cant find sunit and swidth on luks encrypted raid6 device
Date: Wed, 19 Sep 2007 14:42:54 -0500 [thread overview]
Message-ID: <46F17BBE.7060304@sandeen.net> (raw)
In-Reply-To: <728b8e3b0709191129j27b7c319h2efd51ffc9cb64f3@mail.gmail.com>
Jochen K. wrote:
> [output with encryption]
>
> mkfs.xfs -f /dev/mapper/raid6
>
> meta-data=/dev/mapper/raid6 isize=256 agcount=32, agsize=53412581
> blks
> = sectsz=512 attr=0
> data = bsize=4096 blocks=1709202592, imaxpct=25
> = sunit=0 swidth=0 blks, unwritten=1
> naming =version 2 bsize=4096
> log =internal log bsize=4096 blocks=32768, version=1
> = sectsz=512 sunit=0 blks, lazy-count=0
> realtime =none extsz=4096 blocks=0, rtextents=0
> b7f57ad0: Badness in key lookup (length)
> bp=(bno 13673620728, len 131072 bytes) key=(bno 13673620728, len 4096 bytes)
What generates the last two lines in the above message, and do you know
what it indicates?
For one thing, I notice your filesystem comes out as different sizes,
1709202880 without encryption, 1709202592 with encryption (i.e.,
smaller) (these are 4k block units)
I assume the error message is trying to read or write 131072 bytes from
the offset 13673620728 * 512, or:
7000893812736 -> 7000893943807
The filesystem claims to end at:
1709202592 * 4096 = 7000893816832
which appears to be in the middle of the above range.
131072 is the amount that mkfs.xfs tries to zero at the end of a block
device. (you could confirm that it's this write by stracing mkfs,
perhaps?) It looks like somebody has the size wrong...
What does "blockdev --getsize64" and "blockdev --getsize" and/or
/proc/partitions say about how big /dev/mapper/raid6 is?
Can you use dd to write to the last 128k of the device, as reported by
blockdev --getsize64?
-Eric
next prev parent reply other threads:[~2007-09-19 19:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-19 18:29 Cant find sunit and swidth on luks encrypted raid6 device Jochen K.
2007-09-19 19:40 ` Bhagi rathi
2007-09-19 19:42 ` Eric Sandeen [this message]
2007-09-19 22:33 ` Eric Sandeen
2007-09-19 22:39 ` nscott
2007-09-19 22:47 ` Eric Sandeen
2007-09-19 22:50 ` Jochen K.
2007-09-19 22:56 ` Eric Sandeen
2007-09-20 0:54 ` Barry Naujok
2007-09-20 2:36 ` Barry Naujok
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46F17BBE.7060304@sandeen.net \
--to=sandeen@sandeen.net \
--cc=jochen.f.k@googlemail.com \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox