Skip to contentSkip to conversation

Linux IDE & RAID Rebuid Issue

DISCUSSION Venkat 2 participants 2 messages Jun 19, 2003

lore
Share & tools
lore

Venkat

author
#0 lore raw

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?

If anyone needs more info please feel free to contact me.
Thanks
Venkatesh
PS:
Please CC me on replies as i am not subsribed to the list.

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

#1 lore raw
Quoted 30 lines · Venkat

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.

Quoted 7 lines

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

Signature · 4 lines
There is no such thing as obsolete hardware.
Merely hardware that other people don't want.
(The Second Rule of Hardware Acquisition)
Sam Flory  <[email protected]>