From: Goswin von Brederlow <goswin-v-b@web.de>
To: Matthias Dahl <ml_linux_raid@mortal-soul.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: partitioned raid 5 and proper partition alignment
Date: Sat, 08 Aug 2009 09:56:59 +0200 [thread overview]
Message-ID: <87skg2vius.fsf@frosties.localdomain> (raw)
In-Reply-To: <200908080812.45509.ml_linux_raid@mortal-soul.de> (Matthias Dahl's message of "Sat, 8 Aug 2009 08:12:45 +0200")
Matthias Dahl <ml_linux_raid@mortal-soul.de> writes:
> Hello everyone.
>
> I've really looked around everywhere but it is hard to find any decent
> information about partitioned software raid 5. If someone could please help me
> out that would be great. Thanks a lot in advance...
>
> I am trying to partition a raid 5 but I cannot figure out the partition
> alignment. My raid has 3 disks and a chunk size of 64kib, thus a total stripe
> width of 192kib (data + parity). I am using sfdisk w/ sector units and I
> currently align everything to the stripe width size:
But each stripe only holds 128k of data. You have to align to that.
> dreamgate ~ # sfdisk -l -uS /dev/md_d0
>
> Disk /dev/md_d0: 485990272 cylinders, 2 heads, 4 sectors/track
> Units = sectors of 512 bytes, counting from 0
>
> Device Boot Start End #sectors Id System
> /dev/md_d0p1 384 314572799 314572416 83 Linux
> /dev/md_d0p2 314572800 629145599 314572800 83 Linux
> /dev/md_d0p3 629145600 3887922175 3258776576 83 Linux
> /dev/md_d0p4 1 383 383 83 Linux
>
> The problem is I cannot figure out how to deal with sector 0 which usually
> contains the mbr and partition table. So does the striping begin w/ sector 0
> or w/ sector 1 because sector 0 is handled specially?
No, nothing special about sector 0. And the actual MBR would go to the
component devices of your raid. Depending on the metadata version you
use that could overwrite your metadata.
> If sector 0 is not handled specially and striping starts there, my partitions
> above are properly aligned otherwise they are off exactly 512 byte.
>
> Like I said, if someone could give me a hint, I'd really appreciate it.
>
> Thanks a lot in advance,
> matthew.
MfG
Goswin
next prev parent reply other threads:[~2009-08-08 7:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-08 6:12 partitioned raid 5 and proper partition alignment Matthias Dahl
2009-08-08 7:56 ` Goswin von Brederlow [this message]
2009-08-08 11:09 ` Matthias Dahl
2009-08-08 22:21 ` Goswin von Brederlow
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=87skg2vius.fsf@frosties.localdomain \
--to=goswin-v-b@web.de \
--cc=linux-raid@vger.kernel.org \
--cc=ml_linux_raid@mortal-soul.de \
/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