linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: Aaron Greenspan <aarong@thinkcomputer.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: mdadm --grow Hard Drive Size Puzzle
Date: Mon, 1 Oct 2012 12:55:10 +1000	[thread overview]
Message-ID: <20121001125510.6cc0c2be@notabene.brown> (raw)
In-Reply-To: <67FBE301-6EF3-4B0D-87FC-8A3C66473416@thinkcomputer.com>

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

On Sat, 29 Sep 2012 19:19:34 -0700 Aaron Greenspan <aarong@thinkcomputer.com>
wrote:

> Hi Neil,
> 
> I found your personal web site by doing a Google search on mdadm, so I'm not sure if you are the right person to ask this of, or if it's a dumb question in the first place, but here's what I'm running into.

Yes, this is the right place to ask.
No, this is not a dumb question.


> 
> I had a RAID 1 array on CentOS 6 (which comes with mdadm 3.2.3) of two 250GB SATA Western Digital hard drives. It was finally time to upgrade their capacity, so I purchased two 2TB SATA Seagate hard drives. I replaced them one at a time, first by removing old drive B (slot 1), then copying over the partitions from old drive A (slot 0) to new drive C (slot 1), and then swapping the drives so that I could copy the partitions from new drive C (slot 0) to drive D (slot 1).
> 
> This generally worked fine, with one exception. As I said, the drives are 2TB each. Somehow I'm only being given 1TB to work with. Here's what mdadm reports for the first new drive:

Should work.... what kernel are you running?  There was a bug between 2.6.30
and 2.6.37 which would have the effect.
A quick good search suggest that Centos 6 uses 2.6.32, which would be
affected until 2.6.32.27 which contains the fix.

If you reboot (or just stop the array and re-assemble it), md should get
itself sorted out and the --grow will work.

The commit that fixes the bug is  c26a44ed1e552aaa1d4ceb7

NeilBrown


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

  parent reply	other threads:[~2012-10-01  2:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-30  2:19 mdadm --grow Hard Drive Size Puzzle Aaron Greenspan
2012-09-30  2:48 ` Chris Murphy
2012-10-01  2:55 ` NeilBrown [this message]
2012-10-01  4:55   ` Aaron Greenspan
2012-10-01  5:40     ` NeilBrown
2012-10-01  5:12   ` Aaron Greenspan
2012-10-01  5:56     ` Chris Murphy
2012-10-26 16:53   ` Emmanuel Noobadmin

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=20121001125510.6cc0c2be@notabene.brown \
    --to=neilb@suse.de \
    --cc=aarong@thinkcomputer.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).