Subject: Using RAIDframe disk in xenu
To: None <port-xen@NetBSD.org>
From: Yoshito Komatsu <ykomatsu@akaumigame.org>
List: port-xen
Date: 05/08/2005 23:54:36
Hello,
I use NetBSD 3.0 BETA and Xen 2.0.5.
I get a kernel panic in Domain-0 when I run netbsd-xenu using
RAIDframe disk.
Is it possible to use RAIDframe disk in xenu?
XEN0: NetBSD 3.0 BETA(2005/05/08)
XENU: NetBSD 3.0 BETA(2005/05/08)
panic: pool_get: rf_rad_pl: must have NOWAIT
Stopped at netbsd:cpu_Debugger+0x4 leave
cpu_Debugger(2ff,c9f31,2fe,401,c0657c4c) at netbsd:cpu_Debugger+0x4
panic(c05bb5c0,c0569d73,c0720d50,c04cc336,c09a6700) at netbsd:panic+0x121
pool_get(c0657c4c,2,c0e26000,10000,0) at netbsd:pool_get+0xf9
rf_AllocRaidAccDesc(c0aa2000,72,401,0,1) at netbsd:rf_AllocRaidAccDesc+0x30
rf_DoAccess(c0aa200,72,1,401,0) at netbsd:rf_DoAccess+0x40
raidstart(c0aa2000,c0b07000,0,0,1) at netbsd:raidstart+0x28f
raidstrategy(c0b07000,1,c0a4c118,c0acc800,c09d1084) at
netbsd:raidstrategy+0x136
ccdstart(c0a6d000,c09cd000,0,c0a4c118,c0a4c118) at netbsd:ccdstart+0x137
ccdstrategy(c09cd000,1,1,c09cd07c,0) at netbsd:ccdstrategy+0x142
xbdback_do_io(c09cd000,c09cd000,c0720dc0,c0212b42,c0a4c118) at
netbsd:xbdback_do_io+0x78
xbdback_io(c0e73400,cb41b080,c0720000,c03d0b3c,8) at netbsd:xbdback_io+0x17a
xbdback_evthandler(c0e73400,c0720e4c,c0720e14,c0720e20,989680) at
netbsd:xbdback_evthandler+0xa2
entchn_do_event(10,c0720e4c,0,3b9a0000,c072ca00) at
netbsd:evtchn_do_event+0xbc
do_hypervisor_callback(c0720e4c,0,3b9a0011,31,11) at
netbsd:do_hypervisor_callback+0xb8
hypervisor_callback(c0666340,0,ffffffff,c031d2f9,c0666500) at
netbsd:hypervisor_callback+0x64
cpu_switch(c0666500,0,fe,c0720f58,0) at netbsd:cpu_switch+0x107
ltsleep(c0666340,4,c059410f,0,0) at netbsd:ltsleep+0x3fb
uvm_scheduler(c0666320,0,c066a65c,c0573969,1) at netbsd:uvm_scheduler+0x10f
main(0,0,0,0,0) at netbsd:main+0x739
ds 0x11
es 0x11
fs 0x31
gs 0x11
edi 0x1
esi 0x100
ebp 0xc0720b40 pci_bus_attached+0xb1da0
ebx 0x1
edx 0x1
ecx 0xffffffe0
eax 0x217b
eip 0xc03c177c cpu_Debugger+0x4
cs 0x9
eflags 0x1202
esp 0xc0720b40 pci_bus_attached+0xb1da0
ss 0x11
netbsd:cpu_Debugger+0x4: leave
Stopped at netbsd:cpu_Debugger+0x4: leave
db>
# disklabel wd0
# /dev/rwd0d:
type: ESDI
disk: Maxtor 6Y080P0
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 158816
total sectors: 160086528
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 6144000 63 4.2BSD 2048 16384 24824 # (Cyl.
0*- 6095*)
b: 2048000 6144063 swap # (Cyl.
6095*- 8127*)
c: 160086465 63 unused 0 0 # (Cyl. 0*-
158815)
d: 160086528 0 unused 0 0 # (Cyl. 0 -
158815)
e: 8191008 8193024 RAID # (Cyl. 8128 -
16253)
f: 8191008 16384032 RAID # (Cyl. 16254 -
24379)
# disklabel raid0
# /dev/rraid0d:
type: RAID
disk: raid
label: fictitious
flags:
bytes/sector: 512
sectors/track: 128
tracks/cylinder: 8
sectors/cylinder: 1024
cylinders: 7998
total sectors: 8190848
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
4 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 8189824 1024 ccd # (Cyl. 1
- 7998*)
d: 8190848 0 unused 0 0 # (Cyl. 0
- 7998*)
# ccdconfig -v -g
# ccd ileave flags compnent devices
ccd0 0 0 /dev/raid0a
# disklabel ccd0
disklabel: Invalid signature in mbr record 0
# /dev/rccd0d:
type: ccd
disk: ccd
label: fictitious
flags:
bytes/sector: 512
sectors/track: 2048
tracks/cylinder: 1
sectors/cylinder: 2048
cylinders: 3998
total sectors: 8189824
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
4 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 8189824 0 4.2BSD 0 0 0 # (Cyl. 0
- 3998*)
d: 8189824 0 unused 0 0 # (Cyl. 0
- 3998*)
disklabel: boot block size 0
disklabel: super block size 0
# cat /etc/xen/conf/sv3.conf
name = 'sv3'
kernel = '/etc/xen/kern/netbsd-sv3'
memory = 128
disk = ['phy:/dev/ccd0d,wd0d,w']
#
Regards,
--
Yoshito Komatsu