Linux RAID subsystem development
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: "RANSOM, Tony" <tony.ransom@baesystems.com>
Cc: "'linux-raid@vger.kernel.org'" <linux-raid@vger.kernel.org>
Subject: Re: Problem rebuild raid 1 replacement disk
Date: Mon, 20 Feb 2012 16:29:15 +1100	[thread overview]
Message-ID: <20120220162915.43b4f451@notabene.brown> (raw)
In-Reply-To: <807765805CA0DF48898D4C016E982BFC065A67CE25@MWLSVEXM002.au.baesystems.com>

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

On Mon, 20 Feb 2012 14:41:04 +1030 "RANSOM, Tony"
<tony.ransom@baesystems.com> wrote:

> Hi,
> 
> I'm having problems getting a replacement drive to rebuild after a disk failure. 
> 
> I'm running a 10.04 server using two 2TB WD caviar drives in a linux s/w raid 1 configuration.
> 
> The two drives were set up during Ubuntu install.
> 
> They contain three partitions, as follows:

.....


> The array goes into degraded mode. It starts to incorrectly rebuild the array as shown below. It ignores md0, and tries to rebuild the md1 array to sdb, not sdb3.

What is the output of each of
  mdadm -E /dev/sdb
  mdadm -E /dev/sdb3

??

What version of mdadm do you have?

What is the starting sector of /dev/sdb3?  In particular, is it a multiple of
64K?

NeilBrown


> 
> ----------------------------------
> 
> Quote:
> root@server2:~# cat /proc/mdstat
> Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
> md1 : active raid1 sdb[2] sda3[1]
> 1953027008 blocks [2/1] [_U]
> [=>...................] recovery = 9.0% (177317632/1953027008) finish=453.9min speed=65198K/sec
> 
> md0 : active raid1 sda2[1]
> 292800 blocks [2/1] [_U]
> 
> -------------------------------
> 
> When I check the sdb disk partition table, it is corrupted ....
> 
> Quote:
> root@server2:~# gdisk /dev/sdb
> GPT fdisk (gdisk) version 0.8.2
> 
> Caution: invalid main GPT header, but valid backup; regenerating main header
> from backup!
> 
> Caution! After loading partitions, the CRC doesn't check out!
> Warning! Main partition table CRC mismatch! Loaded backup partition table
> instead of main partition table!
> 
> Warning! One or more CRCs don't match. You should repair the disk!
> 
> Partition table scan:
> MBR: not present
> BSD: not present
> APM: not present
> GPT: damaged
> 
> Found invalid MBR and corrupt GPT. What do you want to do? (Using the
> GPT MAY permit recovery of GPT data.)
> 1 - Use current GPT
> 2 - Create blank GPT
> 
> --------------------------------
> 
> I've checked the new disk with WD's diagnostic software. It passes the extended test.
> 
> I'm presently trying for the third time to get this to work. I'm not confident as I'm not really doing anything differently from the first two efforts.
> 
> Note: I've also posted this on the Ubuntu server forum, to date without success. http://ubuntuforums.org/showthread.php?t=1927909 
> 
> Hopefully, the people who are familiar with the workings of the software will know what the problem might be.
> 
> Any assistance is greatly appreciated.
> 
> Thanks,
> Tony
> "Warning:
> The information contained in this email and any attached files is
> confidential to BAE Systems Australia. If you are not the intended
> recipient, any use, disclosure or copying of this email or any
> attachments is expressly prohibited.  If you have received this email
> in error, please notify us immediately. VIRUS: Every care has been
> taken to ensure this email and its attachments are virus free,
> however, any loss or damage incurred in using this email is not the
> sender's responsibility.  It is your responsibility to ensure virus
> checks are completed before installing any data sent in this email to
> your computer."
> 
> 
> --
> 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


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

  reply	other threads:[~2012-02-20  5:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-20  4:11 Problem rebuild raid 1 replacement disk RANSOM, Tony
2012-02-20  5:29 ` NeilBrown [this message]
2012-02-20  8:28   ` RANSOM, Tony
2012-02-20  9:11     ` NeilBrown
2012-02-20  9:15       ` RANSOM, Tony
2012-02-20 10:51         ` NeilBrown
2012-02-20 12:18           ` RANSOM, Tony
2012-02-21 10:09           ` RANSOM, Tony

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=20120220162915.43b4f451@notabene.brown \
    --to=neilb@suse.de \
    --cc=linux-raid@vger.kernel.org \
    --cc=tony.ransom@baesystems.com \
    /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