Skip to contentSkip to conversation

SCSI disks working?

DISCUSSION Tvrtko A. Uršulin 2 participants 6 messages Feb 10, 2004 – Feb 11, 2004

lore
Share & tools
lore
#0 lore raw

Hello to all!

I was active here few month ago when I was playing with xeno-1.0 and was very happy with it. Now I managed to find some time and one solid machine to try to make some xeno-1.2 production tests.

Server is HP tc2120 with aic7xxx SCSI controller.

I have cloned xeno-1.2, built it and installed it to a working installation. But xenolinux fails to boot ending with:

root_device_name = sda3
kmod: failed to exec .... block-major-8, errno = 2
VFS: Cannot opet root device "sda3" or 08:03 Please append a correct "root=" boot option

However, when booted to standard linux kernel the setup is: (see below)

So, are there any issues with this SCSI controller or disks in general?

xen:~ # cat /boot/grub/menu.lst

title Xen / XenoLinux 2.4.24
kernel (hd0,0)/xen.gz dom0_mem=131072 noht noreboot module (hd0,0)/xenolinux.gz root=/dev/sda3 console=tty0

xen:~ # ls -l /boot/x*

-rw-r--r--    1 root     root       715637 Feb 10 15:58 /boot/xen.gz
-rw-r--r--    1 root     root       645215 Feb 10 16:00 /boot/xenolinux.gz

xen:~ # fdisk -l /dev/sda

Disk /dev/sda: 36.4 GB, 36419584000 bytes
255 heads, 63 sectors/track, 4427 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1   *         1         5     40131   83  Linux
/dev/sda2             6        71    530145   82  Linux swap
/dev/sda3            72       855   6297480   83  Linux
/dev/sda4           856      4427  28692090   83  Linux

xen:~ # cat /etc/fstab

/dev/sda3            /                    ext3       defaults              1 1
/dev/sda1            /boot                ext3       defaults              1 2
/dev/sda4            /data1               auto       noauto,user           0 0
/dev/sda2            swap                 swap       pri=42                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
proc                 /proc                proc       defaults              0 0
usbdevfs             /proc/bus/usb        usbdevfs   noauto                0 0
/dev/cdrom           /media/cdrom         auto       ro,noauto,user,exec   0 0
/dev/fd0             /media/floppy        auto       noauto,user,sync      0 0

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

#1 lore raw
Quoted 4 lines

root_device_name = sda3
kmod: failed to exec .... block-major-8, errno = 2
VFS: Cannot opet root device "sda3" or 08:03 Please append a correct "root=" boot option

Send us your complete output from Xen and Xenolinux, if possible (can you capture it via trhe serial line?).

-- Keir

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

#2 lore raw
Quoted 7 lines · Keir Fraser
Quoted 4 lines

root_device_name = sda3
kmod: failed to exec .... block-major-8, errno = 2
VFS: Cannot opet root device "sda3" or 08:03 Please append a correct "root=" boot option

Send us your complete output from Xen and Xenolinux, if possible (can you capture it via trhe serial line?).

I will try to find null-modem cable but I think we don't have it here. However, if ti means anything, Xen detects SCSI controller and all attached disks correctly.

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

#3 lore raw
In reply to Keir Fraser
Quoted 7 lines · Keir Fraser
Quoted 4 lines

root_device_name = sda3
kmod: failed to exec .... block-major-8, errno = 2
VFS: Cannot opet root device "sda3" or 08:03 Please append a correct "root=" boot option

Send us your complete output from Xen and Xenolinux, if possible (can you capture it via trhe serial line?).

Ok, I found the cable and attached is the boot log:

__ __ _ ____

 \ \/ /___ _ __   / | |___ \
  \  // _ \ '_ \  | |   __) |
  /  \  __/ | | | | |_ / __/
 /_/\_\___|_| |_| |_(_)_____|

http://www.cl.cam.ac.uk/netos/xen
University of Cambridge Computer Laboratory

Xen version 1.2 (root@local) (gcc version 3.3.1 (SuSE Linux)) Tue Feb 10 15:544

Initialised all memory on a 1023MB machine
Reading BIOS drive-info tables at 0xfef6f and 0xfef6f
CPU0: Before vendor init, caps: bfebfbff 00000000 00000000, vendor = 0 CPU caps: afebfbff 00000000 00000000 00000000
found SMP MP-table at 000f07b0
Memory Reservation 0xf07b0, 4096 bytes
Memory Reservation 0xf03a0, 4096 bytes
Intel MultiProcessor Specification v1.4
Virtual Wire compatibility mode.
OEM ID: ASUS Product ID: PROD00000000 APIC at: 0xFEE00000
Processor #0 Pentium 4(tm) XEON(tm) APIC version 20
I/O APIC #4 Version 17 at 0xFEC00000.
I/O APIC #5 Version 17 at 0xFEC01000.
I/O APIC #6 Version 17 at 0xFEC02000.
Enabling APIC mode: Flat.Using 3 I/O APICs
Processors: 1
Initialising domains
Initialising schedulers
Initializing CPU#0
Detected 2665.961 MHz processor.
CPU0: Before vendor init, caps: bfebfbff 00000000 00000000, vendor = 0 CPU caps: afebfbff 00000000 00000000 00000000
CPU0 booted
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Error: only one processor found.
ENABLING IO-APIC IRQs
Setting 4 in the phys_id_present_map
...changing IO-APIC physical APIC ID to 4 ... ok.
Setting 5 in the phys_id_present_map
...changing IO-APIC physical APIC ID to 5 ... ok.
Setting 6 in the phys_id_present_map
...changing IO-APIC physical APIC ID to 6 ... ok.
init IO_APIC IRQs
IO-APIC (apicid-pin) 4-0, 4-3, 4-5, 4-10, 4-12, 5-0, 5-4, 5-6, 5-7, 5-8, 5-9, .
..TIMER: vector=0x41 pin1=2 pin2=0
..MP-BIOS bug: 8254 timer not connected to IO-APIC
...trying to set up timer (IRQ0) through the 8259A ...
..... (found pin 0) ...works.
number of MP IRQ sources: 16.
number of IO-APIC #4 registers: 16.
number of IO-APIC #5 registers: 16.
number of IO-APIC #6 registers: 16.
testing the IO APIC.......................

IO APIC #4......
.... register #00: 04000000
....... : physical APIC id: 04
.... register #01: 000F0011

.......     : max redirection entries: 000F
.......     : PRQ implemented: 0
.......     : IO APIC version: 0011

.... register #02: 04000000
....... : arbitration: 04
.... IRQ redirection table:
NR Log Phy Mask Trig IRR Pol Stat Dest Deli Vect:

 00 001 01  0    0    0   0   0    1    1    41
 01 0FF 0F  0    0    0   0   0    1    1    49
 02 001 01  1    0    0   0   0    0    0    00
 03 000 00  1    0    0   0   0    0    0    00
 04 0FF 0F  0    0    0   0   0    1    1    51
 05 000 00  1    0    0   0   0    0    0    00
 06 0FF 0F  0    0    0   0   0    1    1    59
 07 0FF 0F  0    0    0   0   0    1    1    61
 08 0FF 0F  0    0    0   0   0    1    1    69
 09 0FF 0F  0    0    0   0   0    1    1    71
 0a 000 00  1    0    0   0   0    0    0    00
 0b 0FF 0F  1    1    0   1   0    1    1    79
 0c 000 00  1    0    0   0   0    0    0    00
 0d 0FF 0F  0    0    0   0   0    1    1    81
 0e 0FF 0F  0    0    0   0   0    1    1    89
 0f 0FF 0F  0    0    0   0   0    1    1    91

IO APIC #5......
.... register #00: 05000000
....... : physical APIC id: 05
.... register #01: 000F0011

.......     : max redirection entries: 000F
.......     : PRQ implemented: 0
.......     : IO APIC version: 0011

.... register #02: 05000000
....... : arbitration: 05
.... IRQ redirection table:
NR Log Phy Mask Trig IRR Pol Stat Dest Deli Vect:

 00 000 00  1    0    0   0   0    0    0    00
 01 0FF 0F  1    1    0   1   0    1    1    99
 02 0FF 0F  1    1    0   1   0    1    1    A1
 03 0FF 0F  1    1    0   1   0    1    1    A9
 04 000 00  1    0    0   0   0    0    0    00
 05 0FF 0F  1    1    0   1   0    1    1    B1
 06 000 00  1    0    0   0   0    0    0    00
 07 000 00  1    0    0   0   0    0    0    00
 08 000 00  1    0    0   0   0    0    0    00
 09 000 00  1    0    0   0   0    0    0    00
 0a 000 00  1    0    0   0   0    0    0    00
 0b 000 00  1    0    0   0   0    0    0    00
 0c 000 00  1    0    0   0   0    0    0    00
 0d 000 00  1    0    0   0   0    0    0    00
 0e 000 00  1    0    0   0   0    0    0    00
 0f 000 00  1    0    0   0   0    0    0    00

IO APIC #6......
.... register #00: 06000000
....... : physical APIC id: 06
.... register #01: 000F0011

.......     : max redirection entries: 000F
.......     : PRQ implemented: 0
.......     : IO APIC version: 0011

.... register #02: 06000000
....... : arbitration: 06
.... IRQ redirection table:
NR Log Phy Mask Trig IRR Pol Stat Dest Deli Vect:

 00 000 00  1    0    0   0   0    0    0    00
 01 000 00  1    0    0   0   0    0    0    00
 02 000 00  1    0    0   0   0    0    0    00
 03 000 00  1    0    0   0   0    0    0    00
 04 000 00  1    0    0   0   0    0    0    00
 05 000 00  1    0    0   0   0    0    0    00
 06 000 00  1    0    0   0   0    0    0    00
 07 000 00  1    0    0   0   0    0    0    00
 08 000 00  1    0    0   0   0    0    0    00
 09 000 00  1    0    0   0   0    0    0    00
 0a 000 00  1    0    0   0   0    0    0    00
 0b 000 00  1    0    0   0   0    0    0    00
 0c 000 00  1    0    0   0   0    0    0    00
 0d 000 00  1    0    0   0   0    0    0    00
 0e 000 00  1    0    0   0   0    0    0    00
 0f 000 00  1    0    0   0   0    0    0    00

IRQ to pin mappings:
IRQ0 -> 0:0
IRQ1 -> 0:1
IRQ4 -> 0:4
IRQ6 -> 0:6
IRQ7 -> 0:7
IRQ8 -> 0:8
IRQ9 -> 0:9
IRQ11 -> 0:11
IRQ13 -> 0:13
IRQ14 -> 0:14
IRQ15 -> 0:15
IRQ17 -> 1:1
IRQ18 -> 1:2
IRQ19 -> 1:3
IRQ21 -> 1:5
.................................... done.
Using local APIC timer interrupts.
Calibrating APIC timer for CPU0...
..... CPU speed is 2665.9020 MHz.
..... Bus speed is 133.2949 MHz.
..... bus_scale = 0x0000887F
ACT: Initialising Accurate timers
Time init:
.... System Time: 20000636ns

.... cpu_freq:    00000000:9EE75970
.... scale:       00000001:8019FD56
.... Wall Clock:  1076490669s 0us

Start schedulers
PCI: PCI BIOS revision 2.10 entry at 0xf17b0, last bus=0
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Ignoring BAR0-3 of IDE controller 00:0f.1
PCI: Using IRQ router ServerWorks [1166/0203] at 00:0f.0 PCI->APIC IRQ transform: (B0,I3,P0) -> 18
PCI->APIC IRQ transform: (B0,I4,P0) -> 19
PCI->APIC IRQ transform: (B0,I6,P0) -> 21
PCI->APIC IRQ transform: (B0,I9,P0) -> 17
PCI->APIC IRQ transform: (B0,I15,P0) -> 11
Intel(R) PRO/1000 Network Driver - version 5.2.16
Copyright (c) 1999-2003 Intel Corporation.
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html 00:06.0: 3Com PCI 3c905C Tornado at 0xd400. Vers LK1.1.16 tg3.c:v2.3 (November 5, 2003)
tg3: Could not obtain valid ethernet address, aborting.
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PCI_IDE: unknown IDE controller on PCI bus 00 device 79, VID=1166, DID=0213
PCI_IDE: chipset revision 160
PCI_IDE: not 100% native mode: will probe irqs later

    ide0: BM-DMA at 0xa400-0xa407, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0xa408-0xa40f, BIOS settings: hdc:DMA, hdd:pio

hdc: HL-DT-ST CD-ROM GCR-8482B, ATAPI CD/DVD-ROM drive ide1 at 0x170-0x177,0x376 on irq 15
hdc: ATAPI 48X CD-ROM drive, 128kB Cache
Uniform CD-ROM driver Revision: 3.12
SCSI subsystem driver Revision: 1.00
Red Hat/Adaptec aacraid driver (1.1.2 Feb 10 2004 15:54:21) scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.8
<Adaptec (Compaq OEM) 29160 Ultra160 SCSI adapter>
Vendor: COMPAQ Model: BD03695CC8 Rev: HPB6
Type: Direct-Access ANSI SCSI revision: 03
(scsi0:A:0): 160.000MB/s transfers (80.000MHz DT, offset 127, 16bit)
Vendor: MAXTOR Model: ATLAS10K4_36WLS Rev: DFV0
Type: Direct-Access ANSI SCSI revision: 03
(scsi0:A:1): 160.000MB/s transfers (80.000MHz DT, offset 127, 16bit)
Vendor: MAXTOR Model: ATLAS10K4_36WLS Rev: DFV0
Type: Direct-Access ANSI SCSI revision: 03
(scsi0:A:2): 160.000MB/s transfers (80.000MHz DT, offset 127, 16bit)

scsi0:A:0:0: Tagged Queuing enabled.  Depth 253
scsi0:A:1:0: Tagged Queuing enabled.  Depth 253
scsi0:A:2:0: Tagged Queuing enabled.  Depth 253

Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi disk sdb at scsi0, channel 0, id 1, lun 0
Attached scsi disk sdc at scsi0, channel 0, id 2, lun 0
SCSI device sda: 71132000 512-byte hdwr sectors (36420 MB)
SCSI device sdb: 71833096 512-byte hdwr sectors (36779 MB)
SCSI device sdc: 71833096 512-byte hdwr sectors (36779 MB)
Device eth0 opened and ready for use.
DOM0: Guest OS virtual load address is c0000000
DOM0: xen_console_init
DOM0: Linux version 2.4.24-xeno (root@xen) (gcc version 3.3.1 (SuSE Linux)) #4 4
DOM0: On node 0 totalpages: 32768
DOM0: zone(0): 4096 pages.
DOM0: zone(1): 28672 pages.
DOM0: zone(2): 0 pages.
DOM0: Kernel command line: (hd0,0)/xenolinux.gz root=/dev/sda3 console=tty0 con0
DOM0: Initializing CPU#0
DOM0: Xen reported: 2665.961 MHz processor.
DOM0: Console: colour VGA+ 80x25
DOM0: Linux version 2.4.24-xeno (root@xen) (gcc version 3.3.1 (SuSE Linux)) #4 4
DOM0: On node 0 totalpages: 32768
DOM0: zone(0): 4096 pages.
DOM0: zone(1): 28672 pages.
DOM0: zone(2): 0 pages.
DOM0: Kernel command line: (hd0,0)/xenolinux.gz root=/dev/sda3 console=tty0 con0
DOM0: Initializing CPU#0
DOM0: Xen reported: 2665.961 MHz processor.
DOM0: Console: colour VGA+ 80x25
DOM0: Calibrating delay loop... 30198.98 BogoMIPS
DOM0: Memory: 127784k/131072k available (1157k kernel code, 3288k reserved, 199)
DOM0: Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
DOM0: Inode cache hash table entries: 8192 (order: 4, 65536 bytes)
DOM0: Mount cache hash table entries: 512 (order: 0, 4096 bytes)
DOM0: Buffer cache hash table entries: 8192 (order: 3, 32768 bytes)
DOM0: Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
DOM0: CPU: L1 I cache: 12K, L1 D cache: 8K
DOM0: CPU: L2 cache: 512K
DOM0: CPU: Intel(R) Pentium(R) 4 CPU 2.66GHz stepping 09
DOM0: POSIX conformance testing by UNIFIX
DOM0: Linux NET4.0 for Linux 2.4
DOM0: Based upon Swansea University Computer Society NET3.039
DOM0: Initializing RT netlink socket
DOM0: Starting kswapd
DOM0: Journalled Block Device driver loaded
DOM0: Xeno console successfully installed
DOM0: Successfully installed virtual firewall/router interface
DOM0: Starting Xeno Balloon driver
DOM0: pty: 256 Unix98 ptys configured
DOM0: Real Time Clock Driver v1.10e
DOM0: Could not allocate block update interrupt
DOM0: SCSI subsystem driver Revision: 1.00
DOM0: kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
DOM0: NET4: Linux TCP/IP 1.0 for NET4.0
DOM0: IP Protocols: ICMP, UDP, TCP
DOM0: IP: routing cache hash table of 1024 buckets, 8Kbytes
DOM0: TCP: Hash tables configured (established 8192 bind 16384)
DOM0: NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
DOM0: root_device_name = sda3
DOM0: kmod: failed to exec /sbin/modprobe -s -k block-major-8, errno = 2
DOM0: VFS: Cannot open root device "sda3" or 08:03
DOM0: Please append a correct "root=" boot option
DOM0: Kernel panic: VFS: Unable to mount root fs on 08:03
Domain 0 killed: rebooting machine!
Reboot disabled on cmdline: require manual reset

#4 lore raw
Quoted 10 lines · Keir Fraser
Quoted 7 lines
Quoted 4 lines

root_device_name = sda3
kmod: failed to exec .... block-major-8, errno = 2
VFS: Cannot opet root device "sda3" or 08:03 Please append a correct "root=" boot option

Send us your complete output from Xen and Xenolinux, if possible (can you capture it via trhe serial line?).

Ok, I found the cable and attached is the boot log:

You incorrectly selected "Real-time clock" from the "character devices" menu when configuring Xenolinux. Unless you're really sure what you're doing you should not change any configuration options under that menu (I think all other menus are safe to fiddle with though).

What's happened is that the RTC driver has tried to allocate the 'real' IRQ 8. This doesn't exist in Xenolinux, but it is preventing the block-device driver from allocating virtual IRQ 8 -- so you are not properly installing the virtual block-device driver.

Recompile with the default settings under "character devices".

-- Keir

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

#5 lore raw
Quoted 1 line · Keir Fraser

You incorrectly selected "Real-time clock" from the "character

Thanks! It works now.

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn