From: Janek Kozicki <janek_listy@wp.pl>
Cc: linux-raid@vger.kernel.org
Subject: Re: stride / stripe alignment on LVM ?
Date: Fri, 2 Nov 2007 23:16:05 +0100 [thread overview]
Message-ID: <20071102231605.7add5154@absurd> (raw)
In-Reply-To: <472B1F91.8000208@tmr.com>
Bill Davidsen said: (by the date of Fri, 02 Nov 2007 09:01:05 -0400)
> So I would expect this to make a very large performance difference, so
> even if it work it would do so slowly.
I was trying to find out the stripe layout for few hours, using
hexedit and dd. And I'm baffled:
md1 : active raid5 hda3[0] sda3[1]
969907968 blocks super 1.1 level 5, 128k chunk, algorithm 2 [3/2] [UU_]
bitmap: 8/8 pages [32KB], 32768KB chunk
I fill md1 with random data:
# dd bs=128k count=64 if=/dev/urandom of=/dev/md1
# hexedit /dev/md1
I copy/paste (and remove formmatting) the first 32 bytes of /dev/md1,
now I search for those 32 bytes in /dev/hda3 and in /dev/sda3:
# hexedit /dev/hda3
# hexedit /dev/sda3
And no luck! I'd expect the first bytes of /dev/md1 to be on
beginning of the first drive (hda3).
I pick next 20 bytes from /dev/md1 and I can find them on /dev/hda3
starting just after address 0x10000. The bytes before and after those
20 bytes are similar to those on /dev/md1. So now I hexedit /dev/md1
and write by hand 32 bytes of 0xAA. Then I look at address 0x10000
on /dev/hda3 - and there is no 0xAA at all.
Well.. it's not critical for me, so you can just ignore my mumbling,
I was just wondering what obvious did I miss. There seems to be more
XORing (or sth. else) involved than I expected.
Maybe the disc did not flush writes, and what I see on /dev/md1 is
not yet present on /dev/hda3 (how's that possible?)
Nevertheless, I think that I will resign from LVM, and just put ext3
on /dev/md1, to avoid this stripe misalignment. I wanted LVM here
only because I might wanted to use lvm-snapshot, but I can live
without that. I can already grow /dev/md1 without LVM, but using
mdadm grow.
best regards
--
Janek Kozicki |
next prev parent reply other threads:[~2007-11-02 22:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-01 9:10 stride / stripe alignment on LVM ? Janek Kozicki
2007-11-01 23:27 ` Neil Brown
2007-11-02 13:01 ` Bill Davidsen
2007-11-02 22:16 ` Janek Kozicki [this message]
2007-11-03 18:40 ` Doug Ledford
2007-11-03 20:21 ` Janek Kozicki
2007-11-04 1:02 ` Doug Ledford
2007-11-07 9:00 ` Goswin von Brederlow
2007-11-11 23:53 ` Alasdair G Kergon
2007-11-07 9:04 ` Goswin von Brederlow
2007-11-02 12:10 ` Michal Soltys
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=20071102231605.7add5154@absurd \
--to=janek_listy@wp.pl \
--cc=linux-raid@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.