Messages in this thread | | | Date | Thu, 19 Jun 2003 14:01:38 -0700 | From | Samuel Flory <> | Subject | Re: Linux IDE & RAID Rebuid Issue |
| |
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>
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |