6.9.18.1. Instalace na ataraid PDC20267 s mirroringem

Zdroje a odkazy:

V připreveném jádře musíme mít zapnuty tyto volby

CONFIG_BLK_DEV_HPT366         HPT366 chipset support.
CONFIG_BLK_DEV-PDC202X        PROMISE PDC202 {46|62|65|67|68} support
CONFIG_PDC202XX_FORCE         Special FastTrack Feature
CONFIG_BLK_DEV_ATARAID        Support for IDE Raid Controllers
CONFIG_BLK_DEV_ATARAID_PDC    Support Promise software RAID (Fasttrak(tm))
CONFIG_BLK_DEV_ATARAID_HPT    Highpoint 370 software RAID

/IDE, ATA and ATAPI Block devices
        <*> HPT36X/37X chipset support
        <*> PROMISE PDC202{46|62|65|67} support
        [*]  Special UDMA Feature
        <*> Support for IDE Raid controllers (EXPERIMENTAL)
        <*>   Support Promise software RAID (Fasttrak(tm)) (EXPERIMENTAL)
        <*>   Highpoint 370 software RAID (EXPERIMENTAL)

Při bootu by se mělo ukázet něco takového

Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller at PCI slot 00:07.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:pio, hdd:pio
PDC20267: IDE controller at PCI slot 00:08.0
PCI: Found IRQ 10 for device 00:08.0
PDC20267: chipset revision 2
PDC20267: not 100% native mode: will probe irqs later
PDC20267: ROM enabled at 0xe4000000
PDC20267: (U)DMA Burst Bit ENABLED Primary PCI Mode Secondary PCI Mode.
    ide2: BM-DMA at 0xe400-0xe407, BIOS settings: hde:DMA, hdf:DMA
    ide3: BM-DMA at 0xe408-0xe40f, BIOS settings: hdg:DMA, hdh:DMA
hda: ST38410A, ATA DISK drive
blk: queue c02b9140, I/O limit 4095Mb (mask 0xffffffff)
hdc: IBM-DTLA-307045, ATA DISK drive
blk: queue c02b9594, I/O limit 4095Mb (mask 0xffffffff)
hde: ST380023A, ATA DISK drive
hdf: ST380021A, ATA DISK drive
blk: queue c02b99e8, I/O limit 4095Mb (mask 0xffffffff)
blk: queue c02b9b24, I/O limit 4095Mb (mask 0xffffffff)
hdg: IC35L040AVER07-0, ATA DISK drive
hdh: ST340810A, ATA DISK drive
blk: queue c02b9e3c, I/O limit 4095Mb (mask 0xffffffff)
blk: queue c02b9f78, I/O limit 4095Mb (mask 0xffffffff)
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
ide2 at 0xd400-0xd407,0xd802 on irq 10
ide3 at 0xdc00-0xdc07,0xe002 on irq 10
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 16841664 sectors (8623 MB) w/512KiB Cache, CHS=8354/32/63, UDMA(33)
hdc: attached ide-disk driver.
hdc: host protected area => 1
hdc: 90069840 sectors (46116 MB) w/1916KiB Cache, CHS=89355/16/63, UDMA(33)
hde: attached ide-disk driver.
hde: host protected area => 1
hde: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=155061/16/63, UDMA(100)
hdf: attached ide-disk driver.
hdf: host protected area => 1
hdf: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=155061/16/63, UDMA(100)
hdg: attached ide-disk driver.
hdg: host protected area => 1
hdg: 80418240 sectors (41174 MB) w/1916KiB Cache, CHS=79780/16/63, UDMA(100)
hdh: attached ide-disk driver.
hdh: host protected area => 1
hdh: 78165360 sectors (40021 MB) w/2048KiB Cache, CHS=77545/16/63, UDMA(100)
Partition check:
 /dev/ide/host0/bus0/target0/lun0: p1 p2 p3 p4
 /dev/ide/host0/bus1/target0/lun0: [PTBL] [5606/255/63] p1
 /dev/ide/host2/bus0/target0/lun0: p1
 /dev/ide/host2/bus0/target1/lun0: p1
 /dev/ide/host2/bus1/target0/lun0: [PTBL] [5005/255/63] p1
 /dev/ide/host2/bus1/target1/lun0: [PTBL] [4865/255/63] p1

PDC20267: IDE controller at PCI slot 02:0e.0
PCI: Found IRQ 9 for device 02:0e.0
PDC20267: chipset revision 2
PDC20267: not 100% native mode: will probe irqs later
PDC20267: (U)DMA Burst Bit ENABLED Primary MASTER Mode Secondary MASTER Mode.
    ide1: BM-DMA at 0xdf00-0xdf07, BIOS settings: hdc:pio, hdd:pio
    ide2: BM-DMA at 0xdf08-0xdf0f, BIOS settings: hde:pio, hdf:pio
hda: TEAC CD-552E, ATAPI CD/DVD-ROM drive
hdc: WDC WD1200JB-00EVA0, ATA DISK drive
blk: queue c031eb0c, I/O limit 4095Mb (mask 0xffffffff)
hde: WDC WD1200JB-00EVA0, ATA DISK drive
blk: queue c031ef78, I/O limit 4095Mb (mask 0xffffffff)
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0xdff0-0xdff7,0xdfe6 on irq 9
ide2 at 0xdfa8-0xdfaf,0xdfe2 on irq 9
hdc: host protected area => 1
hdc: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=14593/255/63, UDMA(100)
hde: host protected area => 1
hde: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=14593/255/63, UDMA(100)
hda: ATAPI 52X CD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
Partition check:

# cat /proc/ide/pdc202xx

PROMISE Ultra series driver Ver 1.20.0.7 2002-05-23 Adapter: Ultra100
--------------- Primary Channel ---------------- Secondary Channel
-------------
                enabled                          enabled
66 Clocking     disabled                         disabled
Mode            MASTER                           MASTER
--------------- drive0 --------- drive1 -------- drive0 ----------
drive1 ------
DMA enabled:    yes              yes             yes               yes
UDMA Mode:      5                5               5                 5
PIO Mode:       4                4               4                 4

Un fitxer amb permís d'execució que anomenarem 'makedev' (preferiblement en minúscules per distingir-lo del que es pot trobar a http://people.redhat.com/arjanv/pdcraid/ataraidhowto.html amb el següent contingut: /floppy/makedev

#!/bin/sh
    mkdir -p /target/dev/ataraid



    cd /target/dev/ataraid
    mknod d0 block 114 0
    mknod d0p1 block 114 1
    mknod d0p2 block 114 2
    mknod d0p3 block 114 3
    mknod d0p4 block 114 4
    mknod d0p5 block 114 5
    mknod d0p6 block 114 6
    mknod d0p7 block 114 7
    mknod d0p8 block 114 8
    mknod d0p9 block 114 9
    mknod d0p10 block 114 10
    mknod d0p11 block 114 11
    mknod d0p12 block 114 12
    mknod d0p13 block 114 13
    mknod d0p14 block 114 14
    mknod d0p15 block 114 15

As far as I know most distributions today (and definitely Debian Woody) use a utility called mdadm to administer SoftwareRaid devices on a Linux system. mdadm can be obtained from

One major issue for me is that you can use, and mount both the dev/ataraid/d0 devices, and the /dev/hd devices. This makes for lots of fun in the Red Hat installer, and Cerberus.

Stupidity management for the superuser is a user space issue in Unix systems. If the RH installer does let you do stupid things, please bugzilla it.

ICH2: IDE controller at PCI slot 00:1f.1
ICH2: chipset revision 5
ICH2: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:pio
PDC20267: IDE controller at PCI slot 02:0e.0
PCI: Found IRQ 9 for device 02:0e.0
PDC20267: chipset revision 2
PDC20267: not 100% native mode: will probe irqs later
PDC20267: (U)DMA Burst Bit ENABLED Primary MASTER Mode Secondary MASTER Mode.
    ide1: BM-DMA at 0xdf00-0xdf07, BIOS settings: hdc:pio, hdd:pio
    ide2: BM-DMA at 0xdf08-0xdf0f, BIOS settings: hde:pio, hdf:pio
hda: TEAC CD-552E, ATAPI CD/DVD-ROM drive
hdc: WDC WD1200JB-00EVA0, ATA DISK drive
blk: queue c031eb0c, I/O limit 4095Mb (mask 0xffffffff)
hde: WDC WD1200JB-00EVA0, ATA DISK drive
blk: queue c031ef78, I/O limit 4095Mb (mask 0xffffffff)
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0xdff0-0xdff7,0xdfe6 on irq 9
ide2 at 0xdfa8-0xdfaf,0xdfe2 on irq 9
hdc: host protected area => 1
hdc: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=14593/255/63, UDMA(100)
hde: host protected area => 1
hde: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=14593/255/63, UDMA(100)
hda: ATAPI 52X CD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
Partition check:
 hdc: hdc1 hdc2 hdc3 hdc4 < hdc5 >
 hde: hde1 hde2 hde3 hde4 < hde5 >
Promise Fasttrak(tm) Softwareraid driver 0.03beta: No raid array found
Highpoint HPT370 Softwareraid driver for linux version 0.01
No raid array found
SCSI subsystem driver Revision: 1.00
/dev/ataraid/dX
/dev/ataraid/dXpY
lilo.conf:
boot=/dev/ataraid/d0p3
root=/dev/ataraid/d0p3

default=Linux
disk=/dev/ataraid/d0
	bios=0x80
#
image=/boot/vmlinuz
	label=Linux
 	read-only

Při bootu z bf2.4 diskety se objeví

PDC20267: IDE controller at PCI slot 02:0e.0
PCI: Found IRQ 9 for device 02:0e.0
PDC20267: chipset revision 2
PDC20267: not 100% native mode: will probe irqs later
PDC20267: (U)DMA Burst Bit ENABLED Primary MASTER Mode Secondary MASTER Mode.
    ide1: BM-DMA at 0xdf00-0xdf07, BIOS settings: hdc:pio, hdd:pio
    ide2: BM-DMA at 0xdf08-0xdf0f, BIOS settings: hde:pio, hdf:pio
hda: TEAC CD-552E, ATAPI CD/DVD-ROM drive
hdc: WDC WD1200JB-00EVA0, ATA DISK drive
blk: queue c031eb0c, I/O limit 4095Mb (mask 0xffffffff)
hde: WDC WD1200JB-00EVA0, ATA DISK drive
blk: queue c031ef78, I/O limit 4095Mb (mask 0xffffffff)
Uniform CD-ROM driver Revision: 3.12
Partition check:
 hdc: hdc1 hdc2 hdc3 hdc4 < hdc5 >
 hde: hde1 hde2 hde3 hde4 < hde5 >
...
PDC20627: IDE controller at PCI slot 02:0e.0
PDC20627: chipset revision 2
PDC20627: not 100% native mode: will probe irqs later
PDC20627: (U)DMA Burst Bit ENABLED Primary MASTER Mode Secondary MASTER Mode.
    ide2: BM-DMA at 0xdf00-0xdf07, BIOS settings: hdc:pio, hdd:pio
    ide2: BM-DMA at 0xdf08-0xdf0f, BIOS settings: hde:pio, hdf:pio
hda: TEAC CD-552E, ATAPI CD/DVD-ROM drive
hde: WDC WD1200JB-00EVA0, ATA DISK drive
blk: queue c03426d8, I/O limit 4095Mb (mask 0xffffffff)
hdg: WDC WD1200JB-00EVA0, ATA DISK drive
blk: queue c0342b44, I/O limit 4095Mb (mask 0xffffffff)
ide0: at 0x1f0-0x1f7,0x3f6 on irq 14
ide2: at 0xdff0-0xdff7,0xdfe6 on irq22
ide3: at 0xdfa8-0xdfaf,0xdfe2 on irq22
hde: attached ide-disk driver.
hde: 234441648 sectors (120034MB) w/8192KiB Cache, CHS=14593/255/63, UDMA(100)
hdg: attached ide-disk driver.
hdg: 234441648 sectors (120034MB) w/8192KiB Cache, CHS=14593/255/63, UDMA(100)
hda: attached ide-cdrom driver.
hda: ATAPI 52X CD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
Partition check:
 hde: hde1 hde2 hde3 hde4 < hde5 >
 hdg: hdg1 hdg2 hdg3 hdg4 < hdg5 >
 ataraid/d0: ataraid/d0p1 ataraid/d0p2 ataraid/d0p3 ataraid/d0p4 < ataraid/d0p5 >
Drive 0 is 114473 Mb (33 / 0)
Drive 1 is 114473 Mb (34 / 0)
Raid1 array consists of 2 drives.
Promise Fasttrack(tm) Softwareraid driver for linux version 0.03beta
...
VFS: Cannot open root device "" or 03:02
Please append a correct "root=" boot option

V GRUBu zadám

grub> root (hd0,1)
grub> kernel (hd0,1)/boot/vmlinuz-2.4.25-ariane root=/dev/ataraid/d0p2
grub> boot