On Saturday 22 February 2003 22:46, Carlos E. R. wrote:
No, no, you misunderstood me: I can mount my raid, that is no problem :-)
The thing is that I'm curious why the kernel tries to mount it very early on the boot process, but it fails. A bit later, initrd is read, the root partition (reiserfs) is mounted, and then the raid is successfully mounted, maybe after reading /etc/fstab (this last detail I'm not sure).
But this means the system is trying twice; I was trying to optimize the process, and understand why it is happening.
That's why I asked what your RAID1 partition contains (boot, root?).
My boot partition is non-RAID. I was guessing this would be the
difference (it's just guessing).
But now you mention that the system is trying twice: looking carefully
to the output of dmesg, I see the same. Only thing is: the first time
it succeeds, the second time it says "md: array md0 already exists!"
(see below for complete output).
My RAID stuff is all modularized (/usr/src/linux/.config):
#
# Multi-device support (RAID and LVM)
#
CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD_LINEAR=m
CONFIG_MD_RAID0=m
# CONFIG_MD_RAID1 is not set
# CONFIG_MD_RAID5 is not set
# CONFIG_MD_MULTIPATH is not set
CONFIG_BLK_DEV_LVM=m
Hmmm, "all modularized"? Not quite: CONFIG_BLK_DEV_MD can be set to
"m" as well. I wonder what happens if I do that. As soon as I've
done that, I'll let you know.
Paul.
-------------------- Start of dmesg output --------------------
0000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
BIOS-e820: 000000001fff0000 - 000000001fff3000 (ACPI NVS)
BIOS-e820: 000000001fff3000 - 0000000020000000 (ACPI data)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
Scanning bios EBDA for MXT signature
511MB LOWMEM available.
Advanced speculative caching feature not present
On node 0 totalpages: 131056
zone(0): 4096 pages.
zone(1): 126960 pages.
zone(2): 0 pages.
Building zonelist for node : 0
Kernel command line: auto BOOT_IMAGE=linux ro root=900 hdd=ide-scsi
ide_setup: hdd=ide-scsi
Initializing CPU#0
Detected 350.801 MHz processor.
Console: colour VGA+ 132x25
Calibrating delay loop... 699.59 BogoMIPS
Memory: 515240k/524224k available (1214k kernel code, 8596k reserved,
452k data, 144k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: Before vendor init, caps: 0183f9ff 00000000 00000000, vendor = 0
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 512K
CPU: After vendor init, caps: 0183f9ff 00000000 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: 0183f9ff 00000000 00000000 00000000
CPU: Common caps: 0183f9ff 00000000 00000000 00000000
CPU: Intel Pentium II (Deschutes) stepping 02
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfb2f0, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Using IRQ router PIIX [8086/7110] at 00:02.0
Limiting direct PCI/PCI transfers.
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16)
mxt_scan_bios: enter
Starting kswapd
bigpage subsystem: allocated 0 bigpages (=0MB).
kinoded started
aio_setup: num_physpages = 32764
aio_setup: sizeof(struct page) = 44
pty: 256 Unix98 ptys configured
Real Time Clock Driver v1.10e
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with
idebus=xx
PIIX4: IDE controller on PCI bus 00 dev 11
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:DMA
hda: CD-ROM CDU771, ATAPI CD/DVD-ROM drive
hdd: LITE-ON LTR-48246S, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 64000K size 1024 blocksize
loop: loaded (max 16 devices)
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 259k freed
VFS: Mounted root (ext2 filesystem).
PCI: Found IRQ 9 for device 00:0c.0
PCI: Sharing IRQ 9 with 00:0f.0
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.8
<Adaptec aic7880 Ultra SCSI adapter>
aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs
Vendor: SEAGATE Model: ST34520W Rev: 1444
Type: Direct-Access ANSI SCSI revision: 02
Vendor: SEAGATE Model: ST34520W Rev: 1444
Type: Direct-Access ANSI SCSI revision: 02
Vendor: HP Model: HP35470A Rev: T503
Type: Sequential-Access ANSI SCSI revision: 02
Vendor: DEC Model: RZ29B (C) DEC Rev: 0016
Type: Direct-Access ANSI SCSI revision: 02
Vendor: DEC Model: RZ29B (C) DEC Rev: 0016
Type: Direct-Access ANSI SCSI revision: 02
scsi0:A:0:0: Tagged Queuing enabled. Depth 32
scsi0:A:1:0: Tagged Queuing enabled. Depth 32
scsi0:A:8:0: Tagged Queuing enabled. Depth 32
scsi0:A:9:0: Tagged Queuing enabled. Depth 32
sd_init()
sd: allocated major 8
sd_attach()
sd: find_free_slot ...<7>sd: ... found 08:00
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
sd_attach()
sd: find_free_slot ...<7>sd: ... found 08:10
Attached scsi disk sdb at scsi0, channel 0, id 1, lun 0
sd_attach()
sd_attach()
sd: find_free_slot ...<7>sd: ... found 08:20
Attached scsi disk sdc at scsi0, channel 0, id 8, lun 0
sd_attach()
sd: find_free_slot ...<7>sd: ... found 08:30
Attached scsi disk sdd at scsi0, channel 0, id 9, lun 0
sd_finish()
sd_init_onedisk (0,0), sda 08:00
(scsi0:A:0): 40.000MB/s transfers (20.000MHz, offset 8, 16bit)
SCSI device sda: 8888924 512-byte hdwr sectors (4551 MB)
Partition check:
sda: sda1 sda2 sda3 sda4
sd_init_onedisk (0,1), sdb 08:10
(scsi0:A:1): 40.000MB/s transfers (20.000MHz, offset 8, 16bit)
SCSI device sdb: 8888924 512-byte hdwr sectors (4551 MB)
sdb: sdb1 sdb2 sdb3
sd_init_onedisk (0,2), sdc 08:20
(scsi0:A:8): 20.000MB/s transfers (10.000MHz, offset 8, 16bit)
SCSI device sdc: 8380080 512-byte hdwr sectors (4291 MB)
sdc: sdc1 sdc2
sd_init_onedisk (0,3), sdd 08:30
(scsi0:A:9): 20.000MB/s transfers (10.000MHz, offset 8, 16bit)
SCSI device sdd: 8380080 512-byte hdwr sectors (4291 MB)
sdd: sdd1 sdd2
Journalled Block Device driver loaded
md: raid0 personality registered as nr 2
hda: no flushcache support
hdd: no flushcache support
scsi1 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: SONY Model: CD-ROM CDU771 Rev: 1.0m
Type: CD-ROM ANSI SCSI revision: 02
Vendor: LITE-ON Model: LTR-48246S Rev: SS09
Type: CD-ROM ANSI SCSI revision: 02
sd_init()
sd_attach()
sd_attach()
sd_finish()
md: Autodetecting RAID arrays.
[events: 000001a1]
[events: 000001a1]
[events: 000001a1]
[events: 000001a1]
md: autorun ...
md: considering sdd2 ...
md: adding sdd2 ...
md: adding sdc2 ...
md: adding sdb2 ...
md: adding sda2 ...
md: created md0
md: bind