[ltp] raid1 on thinkpad A31

Andy Firman linux-thinkpad@linux-thinkpad.org
Tue, 17 Feb 2004 12:55:02 -0500


On Tue, Feb 17, 2004 at 12:31:19PM -0500, Reed Gregory wrote:
> On Tuesday 17 February 2004 11:55 am, Andy Firman wrote:
> >
> > Are hda, hdb, and hdc all on the same controller?
> 
> You can check you dmesg for this information.  look for ide0 and ide1.  
> Here is the information on my T23.  Notice that hda and hdc are on 
> different controllers (ide0 and ide1).
> 
> ICH3M: not 100% native mode: will probe irqs later
>     ide0: BM-DMA at 0x1860-0x1867, BIOS settings: hda:DMA, hdb:pio
>     ide1: BM-DMA at 0x1868-0x186f, BIOS settings: hdc:DMA, hdd:pio

Thanks.  Now I understand.  Looks like we have the same thing:

---------------------------------------------------------------
ICH3M: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0x1860-0x1867, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0x1868-0x186f, BIOS settings: hdc:DMA, hdd:pio
hda: IC25N040ATCS04-0, ATA DISK drive
hdb: MATSHITADVD-ROM SR-8176, ATAPI CD/DVD-ROM drive
blk: queue c035fc20, I/O limit 4095Mb (mask 0xffffffff)
hdc: IC25N040ATCS04-0, ATA DISK drive
blk: queue c0360074, I/O limit 4095Mb (mask 0xffffffff)
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: 78140160 sectors (40008 MB) w/1768KiB Cache, CHS=5168/240/63, UDMA(33)
hdc: attached ide-disk driver.
hdc: 78140160 sectors (40008 MB) w/1768KiB Cache, CHS=77520/16/63, UDMA(100)
hdb: attached ide-cdrom driver.
hdb: ATAPI 24X DVD-ROM drive, 256kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
Partition check:
 hda: hda1 hda2 hda3 hda4 < hda5 hda6 hda7 >
 hdc: [PTBL] [5168/240/63] hdc1
------------------------------------------------------------------------

Interesting how CHS is reporting differently for the 2 EXACT drives huh?
Also UDMA is different.  Anyone know why?

PTBL means "partition table" right?  So the bios reports one thing, 
but Linux (according to man fdisk) NEVER uses CHS so it is saying
"yes...hdc really has 5168/240/63".  Is that a good way to describe it?

> > Any other comments on my Thinkpad RAID1 project are welcome.
> 
> So what are you gonna do if you want to use the cdrom.  run without raid 
> for a while, then rebuild the mirror once you are done with using the 
> cdrom?

The cdrom has always been in the right bay (hdc).

I have 2 bay's and I moved the cdrom to the left bay (hdb)
and the extra 40GB drive to the right bay (hdc).

I then made a new soflink
trout:~# ln -s hdb /dev/cdrom
and it works perfectly.

Andy