public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mike Diehl <mdiehl@diehlnet.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Recovering RAID1 after disk failure
Date: Thu, 16 Jun 2011 21:00:17 -0600	[thread overview]
Message-ID: <201106162100.18030.mdiehl@diehlnet.com> (raw)

Hi all,

I've got a sw RAID1 that just had a failed drive replaced with an identical 
drive.

However, the good drive started on sector 63 and the new drive want's to start 
on sector 2048.  Fdisk won't let me create the partition table on the new 
drive as it is on the old drive.

This is the good drive in the RAID:
===============================================
Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xfc32270f

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              63      224909      112423+  fd  Linux raid autodetect
/dev/sdb2          224910    50572619    25173855   82  Linux swap / Solaris
/dev/sdb3        50572620   625137344   287282362+  fd  Linux raid autodetect
===============================================

However, after zero'ing out the new drive, this is what fdisk allows me to do:


===============================================
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF 
disklabel
Building a new DOS disklabel with disk identifier 0xfcd585e4.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4, default 1): 1
First sector (2048-625142447, default 2048):
===============================================

As you can see, I can't mirror the previous partitioning scheme and I will 
probably not have enough space on the new drive to build the RAID!

What can I do?



-- 

Take care and have fun,
Mike Diehl.



             reply	other threads:[~2011-06-17  3:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-17  3:00 Mike Diehl [this message]
2011-06-17  5:14 ` [gentoo-user] Recovering RAID1 after disk failure Paul Hartman
2011-06-17  6:17   ` Mike Diehl
2011-06-17  6:27 ` Andrea Conti
2011-06-17  6:34   ` Mike Diehl

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=201106162100.18030.mdiehl@diehlnet.com \
    --to=mdiehl@diehlnet.com \
    --cc=gentoo-user@lists.gentoo.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