linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* md autodetection
@ 2005-03-21  8:06 Nils-Henner Krueger
  2005-03-21 19:01 ` Luca Berra
  0 siblings, 1 reply; 2+ messages in thread
From: Nils-Henner Krueger @ 2005-03-21  8:06 UTC (permalink / raw)
  To: linux-raid

I've got a few questions about raid autodetection at boot time.

To use a mirrored boot device, I have to use raid autodetection
to have the md devices running early enough?

To have autodection recognise a disk device, it has to run after
the appropriate device driver, right?

In my current setup, running RHEL3 with kernel 2.4.21, I have
the system installed on a scsi disk. The scsi driver ist loaded
as module and added to the initrd.
Currently raid autodection takes place long before the scsi
device driver is loaded:

[...]
ICH5: IDE controller at PCI slot 00:1f.1
ICH5: chipset revision 2
ICH5: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0x1460-0x1467, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0x1468-0x146f, BIOS settings: hdc:pio, hdd:pio
hdc: DV-28E-C, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
ide-floppy driver 0.99.newide
ide-floppy driver 0.99.newide
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP: routing cache hash table of 65536 buckets, 512Kbytes
TCP: Hash tables configured (established 524288 bind 65536)
Linux IP multicast router 0.06 plus PIM-SM
Initializing IPsec netlink socket
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 610k freed
VFS: Mounted root (ext2 filesystem).
SCSI subsystem driver Revision: 1.00
libata version 1.02 loaded.
ata_piix version 1.02
PCI: Setting latency timer of device 00:1f.2 to 64
ata1: SATA max UDMA/133 cmd 0x1490 ctl 0x1486 bmdma 0x1470 irq 18
ata2: SATA max UDMA/133 cmd 0x1488 ctl 0x1482 bmdma 0x1478 irq 18
ata1: dev 0 cfg 49:2f00 82:74eb 83:7f63 84:4003 85:74e9 86:3c43 87:4003
88:407f
ata1: dev 0 ATA, max UDMA/133, 145226112 sectors: lba48
ata1: dev 0 configured for UDMA/133
ata2: dev 0 cfg 49:2f00 82:74eb 83:7f63 84:4003 85:74e9 86:3c43 87:4003
88:407f
ata2: dev 0 ATA, max UDMA/133, 145226112 sectors: lba48
ata2: dev 0 configured for UDMA/133
scsi0 : ata_piix
scsi1 : ata_piix
  Vendor: ATA       Model: WDC WD740GD-00FL  Rev: 27.0
  Type:   Direct-Access                      ANSI SCSI revision: 05
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 145226112 512-byte hdwr sectors (74356 MB)
Partition check:
 sda: sda1 sda2 sda3 sda4 < sda5 sda6 >
  Vendor: ATA       Model: WDC WD740GD-00FL  Rev: 27.0
  Type:   Direct-Access                      ANSI SCSI revision: 05
Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0
SCSI device sdb: 145226112 512-byte hdwr sectors (74356 MB)
 sdb:
[...]

Is there a way to run raid autodection (again?) later in the
boot sequence to detect not only IDE devices but other things
like scsi, too?

Last question:  :-)
Is it possible to make a distinction between some md-devices which
should be detected and started by raid autodetection and others which
should be left untouched?


Thanks for help!

nils-henner

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: md autodetection
  2005-03-21  8:06 md autodetection Nils-Henner Krueger
@ 2005-03-21 19:01 ` Luca Berra
  0 siblings, 0 replies; 2+ messages in thread
From: Luca Berra @ 2005-03-21 19:01 UTC (permalink / raw)
  To: linux-raid

On Mon, Mar 21, 2005 at 09:06:44AM +0100, Nils-Henner Krueger wrote:
>I've got a few questions about raid autodetection at boot time.

i usually have a single answer, don't use it.
but i see you are struck with rh, so...


>To use a mirrored boot device, I have to use raid autodetection
>to have the md devices running early enough?
yes

>To have autodection recognise a disk device, it has to run after
>the appropriate device driver, right?
yes

>In my current setup, running RHEL3 with kernel 2.4.21, I have
>the system installed on a scsi disk. The scsi driver ist loaded
was that an _is_ or an _isn't_ ???

>as module and added to the initrd.
>Currently raid autodection takes place long before the scsi
>device driver is loaded:
redhats' mkinitrd reruns autodetection after module loading.
....

>Is there a way to run raid autodection (again?) later in the
>boot sequence to detect not only IDE devices but other things
>like scsi, too?

you better use mdadm instead.
i even wrote a tool, mdassemble which is shipped with mdadm and is
suited for replacing autodetection in initrds.

>Last question:  :-)
>Is it possible to make a distinction between some md-devices which
>should be detected and started by raid autodetection and others which
>should be left untouched?
autodetection only considers type fd partition, mdadm and raidstart
don't actually care.



-- 
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-21 19:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-21  8:06 md autodetection Nils-Henner Krueger
2005-03-21 19:01 ` Luca Berra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).