Hi David,

On Thu, 28 Jun 2001, David Nedved wrote:
> I have two identical IDE hard drives in my system that I am in the process of
> building a RAID1 on, and for some reason they have different CHS... I built
> the RAID1 on hdc, with hda as a failed-drive, and I would like to make the
> same partitions on hda then hotadd them, but with the different geometries I
> can't get the partions exactly the right size.  This is an Asus TX97 board, 
> and these drives are each master on their IDE bus with no other drives.

I have encountered this problem a number of times before. I think someone
once explained why this happens (even with identical drives), but I'm
afraid I've forgotten it.

I do, however, have a couple of possible solutions:

> hda: 58633344 sectors (30020 MB) w/2048KiB Cache, CHS=3649/255/63
> hdc: 58633344 sectors (30020 MB) w/2048KiB Cache, CHS=58168/16/63

First, let's pick one of the geometries... take the first one.

> I'm hoping that there's something I can do in LILO involving either the
> linear command or something else that I only partly understand that can
> cause them to be recognized the same.

After using Linux for near on five years, I have finally discovered the
bootparam(7) man page. I previously thought that all that lilo/kernel
command line stuff was undocumented voodoo, and it was surprising to find
most of it is actually documented.

Anyway, if you add to the append line/kernel command line "hda=3649,255,63
hdc=3649,255,63" then they will both be beaten into submission to share
geometries.

IIRC you may also be able to just set the geometry on hdc to the same as
hda when you partition it in fdisk (see the eXpert menu), and then the
kernel picks it up automatically from the partition table, but YMMV.

Hope this helps,

Corin

/------------------------+-------------------------------------\
| Corin Hartland-Swann   |    Tel: +44 (0) 20 7491 2000        |
| Commerce Internet Ltd  |    Fax: +44 (0) 20 7491 2010        |
| 22 Cavendish Buildings | Mobile: +44 (0) 79 5854 0027        | 
| Gilbert Street         |                                     |
| Mayfair                |    Web: http://www.commerce.uk.net/ |
| London W1K 5HJ         | E-Mail: [EMAIL PROTECTED]        |
\------------------------+-------------------------------------/

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to [EMAIL PROTECTED]

Reply via email to