public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Samuel Flory <sflory@rackable.com>
To: Venkat <rpraneshnews@yahoo.com>
Cc: linux-kernel@vger.kernel.org, srikumarss@yahoo.com
Subject: Re: Linux IDE & RAID Rebuid Issue
Date: Thu, 19 Jun 2003 14:01:38 -0700	[thread overview]
Message-ID: <3EF224B2.1010909@rackable.com> (raw)
In-Reply-To: <20030619204308.39271.qmail@web14802.mail.yahoo.com>

Venkat wrote:

>Hi all,
>I have two IDE controllers in my mother board 
>(Serverworks and Silicon Image CMD 680) . I have two
>Maxtor IDE Drives(same model, same capacity) connected
>to the IDE controllers (One drive per controller). 
>Linux detects the drives but the number of heads
>reported by the controller/BIOS/Linux is different.
>For one drive linux reports 64 heads and for the other
>drive it reports 255 heads. This is causing a problem
>with RAID rebuilding. The below text explains the
>problem in detail.
>
>I create a RAID drive across both the drives.I want to
>create a 512 MB partition on both the drives, but
>Redhat installatiion program creates 512MB partition
>on one drive and 520MB partition on the other drive. I
>assume that this discrepanies is due to different Head
>count.
>
>This is OK when the RAID drives are created, because
>the RAID drive takes the smallest size(512MB)
>
>But the problem happens when the one of the drives is
>pulled out and a new partition of same size is created
>and the RAID drives are rebuilt. When i create the
>same size partition on the new drive using FDISK, it
>is not exactly the size i want (512MB). It creates a
>509 MB Partition on the new drive. This causes the MD
>RAID driver to fail the rebuild.
>The new drive is also of the same type and same model
>as the drive pulled out.
>
>So i assume that if Linux reports the same head count
>for the both the drives, the problem should be solved.
>I am not an expert on Linux IDE subtree. Can anyone
>explain or give a fix?
>
>  
>

  Try the below.  (This will not work if you have extented partitions on 
the drive.)

dd if=/dev/gooddisk of=/dev/newdisk  count=2048

echo "w" |fdisk /dev/newdisk

fdisk -l /dev/newdisk /dev/goodisk

-- 
There is no such thing as obsolete hardware.
Merely hardware that other people don't want.
(The Second Rule of Hardware Acquisition)
Sam Flory  <sflory@rackable.com>



      reply	other threads:[~2003-06-19 20:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-19 20:43 Linux IDE & RAID Rebuid Issue Venkat
2003-06-19 21:01 ` Samuel Flory [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=3EF224B2.1010909@rackable.com \
    --to=sflory@rackable.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rpraneshnews@yahoo.com \
    --cc=srikumarss@yahoo.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