[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] xen on suse 9.3 and software raid



Gerd Knorr wrote:
Any chance the initrd attempts to load the raid6 module?
If so, can you try to prevent it from doing that?  I'm not
sure how the initrd decides which raid modules it should
pick, maybe it's simply listed in /etc/sysconfig/kernel,
in the INITRD_MODULES variable.

I have
  INITRD_MODULE="piix jdb ext3 raid1 dm_mod"

I am using your patched mkinitrd which correctly builds
the initrd. I have reproduced the serial console output
below. That shows modules ide_cd, dm_snapshot, md
and ide_core also present.
raid6 is absent.


Note for the boot messages below, I am using raid1
but I only have one disk attached! The other disk of the
pair has data on it that I don't want to wipe. I believe
using just the one disk did not affect the outcome. The
system behaved the same as in an earlier test where I
had both disks present. And of course the system boots
fine with a non-xen kernel.

Also note that near the end, the init script helpfully
dumps you into a shell, so I ran a few commands.

PS I should also add that the ide drive for /dev/hda
is working OK because I was able to mount /dev/hda1
(the /boot filesystem) onto /mnt. It just struck me that
that would be an easy root to smuggle in some debugging
tools!

-------------%<--%<--------------------
 __  __            ____    ___
 \ \/ /___ _ __   |___ \  / _ \
  \  // _ \ '_ \    __) || | | |
  /  \  __/ | | |  / __/ | |_| |
 /_/\_\___|_| |_| |_____(_)___/

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

Xen version 2.0 (abuild@xxxxxxx) (gcc version 3.3.5 20050117 (prerelease) (SUSE Linux)) Wed Mar 23 23:11:00 UTC 2005
 Latest ChangeSet: information unavailable

(XEN) Physical RAM map:
(XEN)  0000000000000000 - 00000000000a0000 (usable)
(XEN)  00000000000f0000 - 0000000000100000 (reserved)
(XEN)  0000000000100000 - 0000000014000000 (usable)
(XEN)  00000000ffff0000 - 0000000100000000 (reserved)
(XEN) System RAM: 319MB (327296kB)
(XEN) Xen heap: 10MB (10744kB)
(XEN) CPU0: Before vendor init, caps: 0383f9ff 00000000 00000000, vendor = 0
(XEN) CPU caps: 0383f9ff 00000000 00000000 00000000
(XEN) ACPI: Unable to locate RSDP
(XEN) Using scheduler: Borrowed Virtual Time (bvt)
(XEN) Initializing CPU#0
(XEN) Detected 735.016 MHz processor.
(XEN) Local APIC disabled by BIOS -- reenabling.
(XEN) Found and enabled local APIC!
(XEN) CPU0: Before vendor init, caps: 0383fbff 00000000 00000000, vendor = 0
(XEN) CPU caps: 0383fbff 00000000 00000000 00000000
(XEN) CPU0 booted
(XEN) SMP motherboard not detected.
(XEN) enabled ExtINT on CPU#0
(XEN) ESR value before enabling vector: 00000000
(XEN) ESR value after enabling vector: 00000000
(XEN) Using local APIC timer interrupts.
(XEN) Calibrating APIC timer for CPU0...
(XEN) ..... CPU speed is 735.0015 MHz.
(XEN) ..... Bus speed is 66.8182 MHz.
(XEN) ..... bus_scale = 0x0000446D
(XEN) Time init:
(XEN) .... System Time: 20001153ns
(XEN) .... cpu_freq:    00000000:2BCF77B0
(XEN) .... scale:       00000001:5C4A9401
(XEN) .... Wall Clock:  1115925102s 60000us
(XEN) PCI: PCI BIOS revision 2.10 entry at 0xfa780, last bus=1
(XEN) PCI: Using configuration type 1
(XEN) PCI: Probing PCI hardware
(XEN) PCI: Probing PCI hardware (bus 00)
(XEN) PCI: Using IRQ router default [8086/7110] at 00:07.0
(XEN) mtrr: v2.0 (20020519)
(XEN) *** LOADING DOMAIN 0 ***
(XEN) Xen-ELF header found: 'GUEST_OS=linux,GUEST_VER=2.6,XEN_VER=2.0,VIRT_BASE=0xC0000000,LOADER=generic,PT_MODE_WRITABLE'
(XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN)  Kernel image:  00c00000->00e8b448
(XEN)  Initrd image:  00e8c000->01217e00
(XEN)  Dom0 alloc.:   01400000->11400000
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN)  Loaded kernel: c0100000->c03daafc
(XEN)  Init. ramdisk: c03db000->c0766e00
(XEN)  Phys-Mach map: c0767000->c07a7000
(XEN)  Page tables:   c07a7000->c07ab000
(XEN)  Start info:    c07ab000->c07ac000
(XEN)  Boot stack:    c07ac000->c07ad000
(XEN)  TOTAL:         c0000000->c0c00000
(XEN)  ENTRY ADDRESS: c0100000
(XEN) Scrubbing DOM0 RAM: ...done.
(XEN) Initrd len 0x38be00, start at 0xc03db000
(XEN) Scrubbing Free RAM: ....done.
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen). Linux version 2.6.11.4-20a-xen (geeko@buildhost) (gcc version 3.3.5 20050117 (prerelease) (SUSE Linux)) #1 Wed Mar 23 21:52:37 UTC 2005
BIOS-provided physical RAM map:
 Xen: 0000000000000000 - 0000000010000000 (usable)
0MB HIGHMEM available.
256MB LOWMEM available.
DMI not present.
IRQ lockup detection disabled
Allocating PCI resources starting at 10000000 (gap: 10000000:f0000000)
Built 1 zonelists
Kernel command line: root=/dev/system/dom0_root selinux=0 splash=silent console=ttyS0 showopts
Initializing CPU#0
PID hash table entries: 2048 (order: 11, 32768 bytes)
Xen reported: 735.016 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 252288k/262144k available (1876k kernel code, 9564k reserved, 558k data, 128k init, 0k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok.
Security Framework v1.0.0 initialized
SELinux:  Disabled at boot.
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 128K
CPU: Intel Celeron (Coppermine) stepping 0a
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... disabled
checking if image is initramfs... it is
Freeing initrd memory: 3631k freed
NET: Registered protocol family 16
PCI: Using configuration type Xen
Linux Plug and Play Support v0.97 (c) Adam Belay
xen_mem: Initialising balloon driver.
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Probing PCI hardware (bus 01)
PCI: Probing PCI hardware
TC classifier action (bugs to netdev@xxxxxxxxxxx cc hadi@xxxxxxxxxx)
audit: initializing netlink socket (disabled)
audit(1115925107.320:0): initialized
Total HugeTLB memory allocated, 0
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Initializing Cryptographic API
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
PNP: No PS/2 controller found. Probing ports directly.
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 64000K size 1024 blocksize
loop: loaded (max 8 devices)
Xen virtual console successfully installed as ttyS
Event-channel device installed.
Initialising Xen netif backend
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
NET: Registered protocol family 1
NET: Registered protocol family 8
NET: Registered protocol family 20
Freeing unused kernel memory: 128k freed
Starting udev
Creating devices
input: AT Translated Set 2 keyboard on isa0060/serio0
Loading kernel/drivers/ide/ide-core.ko
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Loading kernel/drivers/ide/pci/piix.ko
PIIX4: IDE controller at PCI slot 0000: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:DMA, hdb:DMA
    ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:pio, hdd:pio
hda: ST3120022A, ATA DISK drive
hdb: DM-2000TE, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Loading kernel/drivers/md/md.ko
md: md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27
Loading kernel/drivers/md/raid1.ko
md: raid1 personality registered as nr 3
Loading kernel/drivers/md/dm-mod.ko
device-mapper: 4.4.0-ioctl (2005-01-12) initialised: dm-devel@xxxxxxxxxx
Loading kernel/drivers/md/dm-snapshot.ko
Loading kernel/drivers/ide/ide-disk.ko
hda: max request size: 1024KiB
hda: 234441648 sectors (120034 MB) w/2048KiB Cache, CHS=16383/255/63, UDMA(33)
hda: cache flushes supported
 hda: hda1 hda2 hda3
Loading kernel/drivers/cdrom/cdrom.ko
Loading kernel/drivers/ide/ide-cd.ko
hdb: ATAPI 50X DVD-ROM drive, 256kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
Waiting for /dev/mapper/control to appear:  ok
Loading kernel/fs/jbd/jbd.ko
Loading kernel/fs/ext3/ext3.ko
raidautorun ...
done...
Waiting for device /dev/system/dom0_root to appear: . Unable to find volume group "system"
.  Unable to find volume group "system"
.  Unable to find volume group "system"
.  Unable to find volume group "system"
.  Unable to find volume group "system"
  Reading all physical volumes.  This may take a while...
  No volume groups found
  Unable to find volume group "system"
not found -- exiting to /bin/sh
sh: can't access tty; job control turned off
$ cat /proc/modules
ext3 138248 0 - Live 0xd08be000
jbd 63652 1 ext3, Live 0xd085c000
ide_cd 39940 0 - Live 0xd088a000
cdrom 38688 1 ide_cd, Live 0xd087f000
ide_disk 18304 0 - Live 0xd0829000
dm_snapshot 18204 0 - Live 0xd0823000
dm_mod 59772 1 dm_snapshot, Live 0xd086f000
raid1 17408 0 - Live 0xd081d000
md 45136 1 raid1, Live 0xd084f000
piix 10372 0 [permanent], Live 0xd0812000
ide_core 123520 3 ide_cd,ide_disk,piix, Live 0xd082f000
$ ls /lib/modules
2.6.11.4-20a-xen
$ ls /lib/modules/2.6.11.4-20a-xen/kernel/drivers/md
dm-mod.ko  dm-snapshot.ko  md.ko  raid1.ko
$ ls /sys/block
hda    loop1  loop4  loop7  ram1   ram12  ram15  ram4  ram7
hdb    loop2  loop5  md0    ram10  ram13  ram2   ram5  ram8
loop0  loop3  loop6  ram0   ram11  ram14  ram3   ram6  ram9
$ ls /sys/block/md0
dev  range  removable  size  stat
$ cat /block/md0/dev
/block/md0/dev: No such file or directory
$ cat /block/sy
/block/sy: No such file or directory
$ cat /sys/block/md0/dev
9:0
$ cat /sys/block/md0/size
0
$ cat /proc/mdstat
Personalities : [raid1]
unused devices: <none>
$ exit
error: not found
[: open: unexpected operator
Mounting root /dev/system/dom0_root
Usage: mount [-r] [-w] [-o options] [-t type] device directory
Kernel panic - not syncing: Attempted to kill init!
 <0>Rebooting in 1 seconds..

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.