From: Greg Freemyer <greg.freemyer@gmail.com>
To: "Kristleifur Daðason" <kristleifur@gmail.com>
Cc: linux-raid <linux-raid@vger.kernel.org>
Subject: Re: RAID partition starting sector (... 63?)
Date: Wed, 17 Feb 2010 10:25:06 -0500 [thread overview]
Message-ID: <87f94c371002170725w93f42aamec1d64749eeb8be6@mail.gmail.com> (raw)
In-Reply-To: <73e903671002170713g397742b8l109773b4c20825ce@mail.gmail.com>
On Wed, Feb 17, 2010 at 10:13 AM, Kristleifur Daðason
<kristleifur@gmail.com> wrote:
> Hi,
>
> I remember seeing some discussion on what sector a partition starts
> on. Many programs create partitions that start on sector 63, which
> doesn't really make any intuitive sense to me. I just lost a disk from
> of a RAID10 array and was thinking I'd try to understand this issue as
> I have to do some disk/block/partition wrangling anyway.
>
> From a discussion from linux-raid titled "Raid 10 LVM JFS Seeking
> performance help", I found the following:
>
> On Mon, Dec 21, 2009 at 12:56 PM, Goswin von Brederlow
> <goswin-v-b@web.de> wrote:
>>
>> Also, on a lower level, make sure your raid does not start on a
>> partition starting at sector 63 (which is still the default in many
>> partitioning progs). That easily results in bad alignment causing 4k
>> chunks to land on 2 sectors. But you need to test that with your
>> specific drive to see if it really is a problem.
>>
>
> Hmm ... In short: Do I want to have a partition start on any
> particular sector? Especially in the case where I want to ...
> - build a RAID10 with partitions (i.e. not with raw devices)
> - using ~256K chunks
> - and have a nice JFS filesystem on top of it.
>
> Starting on sector 64 feels conceptually "prettier" than Sector 63,
> but I can't picture the case where it behaves any different. Except
> perhaps when GRUB expects stuff to begin at sector 63, making a mess
> if we're starting at sector 64. Though it *should* work OK, of course.
>
> Anyways ... Any tips on a subtle matter most well appreciated.
> Especially tell me if I'm overthinking, please. Thanks.
>
> -- Kristleifur
I believe a better choice is to start at 1 MB regardless of sector
size. This was initiated by Vista moving to that a few years ago so
you will almost always find hardware, etc. That assumes your sector
size is still based on a power of two.
If you do get a 4K sector drive be sure it is 1MB aligned (ie. Vista mode).
The only shipping drives I know of are the WD ones and they have a
jumper for sector 63 aligned and 1MB aligned. In a raid using sector
63 alignment would really make it hard to keep track of things.
There are rumors the future drives may come from the factory
pre-configured for one or the other, so if that turns into reality be
sure to buy the 1MB aligned drives.
Greg
--
Greg Freemyer
Head of EDD Tape Extraction and Processing team
Litigation Triage Solutions Specialist
http://www.linkedin.com/in/gregfreemyer
Preservation and Forensic processing of Exchange Repositories White Paper -
<http://www.norcrossgroup.com/forms/whitepapers/tng_whitepaper_fpe.html>
The Norcross Group
The Intersection of Evidence & Technology
http://www.norcrossgroup.com
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2010-02-17 15:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-17 15:13 RAID partition starting sector (... 63?) Kristleifur Daðason
2010-02-17 15:18 ` Mikael Abrahamsson
2010-02-17 15:23 ` Martin K. Petersen
2010-02-17 16:15 ` Goswin von Brederlow
2010-02-17 16:24 ` Martin K. Petersen
2010-02-17 18:13 ` Greg Freemyer
2010-02-17 18:42 ` Martin K. Petersen
2010-02-17 15:25 ` Greg Freemyer [this message]
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=87f94c371002170725w93f42aamec1d64749eeb8be6@mail.gmail.com \
--to=greg.freemyer@gmail.com \
--cc=kristleifur@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).