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

[Xen-devel] Problems with virtual disks in DomU



Hi,

I am trying to move from Xen 1.2 to the latest revision of Xen and I'm having problems accessing virtual block devices from DomU. The machine is a Dell PowerEdge 1750 (I had to compile Fusion MPT support into Dom0, but it all seems to work fine now).

If I export /dev/sdb to domain U as /dev/sdb read-write (i.e. disk = [ 'phy:sdb,sdb,w' ]), then DomU doesn't seem to see the disk at all; I get the following error:

Initialising Xen virtual block device
Partition check:
 sdb:<6>Timeout connecting block device driver!

If I export the root and swap partitions explicitly (i.e. /dev/sdb1 and /dev/sdb3) then things get a bit further but then fsck of the root filesystem fails. (The filesystem is a RH7.2 image which fscks and mounts fine in Dom0).

I have attached my domain config file and the bootlogs for both cases. I have trawled through the docs and the list archive but can't seem to find anything relevant. It's quite likely that I'm missing something about the transition to Xen 2.0 but I can't quite see what!

Stephen

--
Dr. Stephen Childs,
Researcher, EGEE Project,         phone:                    +353-1-6081720
Computer Architecture Group,      email:       Stephen.Childs at cs.tcd.ie
Trinity College Dublin, Ireland   web: http://www.cs.tcd.ie/Stephen.Childs
Linux version 2.4.27-xenU (childss@xxxxxxxxxxxxxxxxxx) (gcc version 3.3.3 200404
12 (Red Hat Linux 3.3.3-7)) #1 Wed Aug 25 11:13:40 IST 2004
On node 0 totalpages: 16384
zone(0): 4096 pages.
zone(1): 12288 pages.
zone(2): 0 pages.
Kernel command line:  ip=192.168.0.144:1.2.3.4:192.168.0.254:::eth0: root=/dev/s
db1 ro  4
Initializing CPU#0
Xen reported: 2387.144 MHz processor.
Calibrating delay loop... 2510.02 BogoMIPS
Memory: 62840k/65536k available (1304k kernel code, 2696k reserved, 234k data, 5
6k init, 0k highmem)
Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
CPU: L1 I cache: 12K, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: Intel(R) Xeon(TM) CPU 2.40GHz stepping 09
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
Installing knfsd (copyright (C) 1996 okir@xxxxxxxxxxxx).
Event-channel device installed.
Xen virtual console successfully installed as tty
Starting Xen Balloon driver
pty: 256 Unix98 ptys configured
Initialising Xen virtual block device
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
Initialising Xen virtual ethernet frontend driver.
Netfront recovered tx=0 rxfree=0
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192)
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
      device=eth0, addr=192.168.0.144, mask=255.255.255.0, gw=192.168.0.254,
     host=192.168.0.144, domain=, nis-domain=(none),
     bootserver=1.2.3.4, rootserver=1.2.3.4, rootpath=
ip_conntrack version 2.1 (512 buckets, 4096 max) - 288 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 56k freed
modprobe: modprobe: Can't open dependencies file /lib/modules/2.4.27-xenU/module
s.dep (No such file or directory)
INIT: version 2.78 booting
                        Welcome to Red Hat Linux
                Press 'I' to enter interactive startup.
Mounting proc filesystem:  [  OK  ]
Configuring kernel parameters:  [  OK  ]
Setting clock : Wed Aug 25 07:31:19 EDT 2004 [  OK  ]
Activating swap partitions:  [  OK  ]
Setting hostname redhat72.goober.org:  [  OK  ]
modprobe: Can't open dependencies file /lib/modules/2.4.27-xenU/modules.dep (No 
such file or directory)
Checking root filesystem
fsck.ext2/: 
The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>

[/sbin/fsck.ext2 (1) -- /] fsck.ext2 -a / 
: Is a directory while trying to open /
[FAILED]

*** An error occurred during the file system check.
*** Dropping you to a shell; the system will reboot
*** when you leave the shell.
Give root password for maintenance
(or type Control-D for normal startup): 

Linux version 2.4.27-xenU (childss@xxxxxxxxxxxxxxxxxx) (gcc version 3.3.3 200404
12 (Red Hat Linux 3.3.3-7)) #1 Wed Aug 25 11:13:40 IST 2004
On node 0 totalpages: 16384
zone(0): 4096 pages.
zone(1): 12288 pages.
zone(2): 0 pages.
Kernel command line:  ip=192.168.0.144:1.2.3.4:192.168.0.254:::eth0: root=/dev/s
db1 ro  4
Initializing CPU#0
Xen reported: 2387.144 MHz processor.
Calibrating delay loop... 4757.91 BogoMIPS
Memory: 62840k/65536k available (1304k kernel code, 2696k reserved, 234k data, 5
6k init, 0k highmem)
Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
CPU: L1 I cache: 12K, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: Intel(R) Xeon(TM) CPU 2.40GHz stepping 09
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
Installing knfsd (copyright (C) 1996 okir@xxxxxxxxxxxx).
Event-channel device installed.
Xen virtual console successfully installed as tty
Starting Xen Balloon driver
pty: 256 Unix98 ptys configured
Initialising Xen virtual block device
Partition check:
 sdb:<6>Timeout connecting block device driver!
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
Initialising Xen virtual ethernet frontend driver.
[XEN] Failed to connect all virtual interfaces: err=-100
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192)
IP-Config: Device `eth0' not found.
ip_conntrack version 2.1 (512 buckets, 4096 max) - 288 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.

# Kernel image file.
kernel = "/boot/vmlinuz-2.4.27-xenU"

# Initial memory allocation (in megabytes) for the new domain.
memory = 64

dhcp=""
ip="192.168.0.144"
gateway="192.168.0.254"

# A name for your domain. All domains must have different names.
name = "Xen1"

disk = [ 'phy:sdb,sdb,w' ]
#disk = [ 'phy:sdb1,sdb1,w', 'phy:sdb3,sdb3,w' ]

# Set root device.
root = "/dev/sdb1 ro"
extra = " 4"


 


Rackspace

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