linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Roman Mamedov <rm@romanrm.ru>
To: NeilBrown <neilb@suse.de>
Cc: CoolCold <coolthecold@gmail.com>,
	David Brown <david.brown@hesbynett.no>,
	linux-raid@vger.kernel.org
Subject: Re: Any pros or cons of using full disk versus partitons?
Date: Thu, 14 Apr 2011 14:30:07 +0600	[thread overview]
Message-ID: <20110414143007.477e6dcd@natsu> (raw)
In-Reply-To: <20110414181159.48a2086e@notabene.brown>

[-- Attachment #1: Type: text/plain, Size: 1656 bytes --]

On Thu, 14 Apr 2011 18:11:59 +1000
NeilBrown <neilb@suse.de> wrote:

> On Thu, 14 Apr 2011 11:57:47 +0400 CoolCold <coolthecold@gmail.com> wrote:
> 
> > Just my 2 cents: I've faced problems when newer disk was smaller than
> > old disk two or three times, so using partitions now with setting some
> > free space at the end - something near 80 or 100 megabytes.

There are also some Gigabyte motherboards which like to cut off a small
portion of a disk at the end via HPA, and writing a backup of their BIOS there.
https://encrypted.google.com/search?q=gigabyte+bios+hpa
If you had your user data or mdadm metadata there, bad luck.

On earlier motherboards this was done automatically to every new disk on
SATA0, on newer ones I think it's optional and can be disabled. But anyway, I
now prefer to leave about 8 MB of space at the end of each drive
unpartitioned, just in case.

And another point, again related to buggy BIOSes: some of them seem to read
first sectors of all attached disks and expect to see an MBR-style partition
table there; and if there's something else instead (e.g. basically random
data, in case of the whole disk used for RAID), they may become confused and
lock-up at boot. I had a couple of such cases where a board would lock-up
at HDD detection with a certain drive attached, and would only boot up
properly after it was zeroed and repartitioned.

> 
> You don't need partitions to do this.  Just use the --size option to mdadm.

But then the 1.x+ metadata is still stored at the very end of the device,
which makes it vulnerable to the HPA problem described above.

-- 
With respect,
Roman

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2011-04-14  8:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <07a801cbfa12$64b8a950$2e29fbf0$@gmail.com>
2011-04-13 20:21 ` Any pros or cons of using full disk versus partitons? David Miller
2011-04-13 20:55   ` David Brown
2011-04-14  7:57     ` CoolCold
2011-04-14  8:11       ` NeilBrown
2011-04-14  8:30         ` Roman Mamedov [this message]
2011-04-14 10:23           ` Mikael Abrahamsson

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=20110414143007.477e6dcd@natsu \
    --to=rm@romanrm.ru \
    --cc=coolthecold@gmail.com \
    --cc=david.brown@hesbynett.no \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.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;
as well as URLs for NNTP newsgroup(s).