All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Childs <Stephen.Childs@cs.tcd.ie>
To: xen-devel@lists.sourceforge.net
Subject: Problems with virtual disks in DomU
Date: Wed, 25 Aug 2004 12:49:29 +0100	[thread overview]
Message-ID: <412C7CC9.3020207@cs.tcd.ie> (raw)

[-- Attachment #1: Type: text/plain, Size: 1298 bytes --]

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

[-- Attachment #2: bootlog_with_partitions --]
[-- Type: text/plain, Size: 3635 bytes --]

Linux version 2.4.27-xenU (childss@frascati.cs.tcd.ie) (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@monad.swb.de).
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): 


[-- Attachment #3: bootlog_with_wholedisk --]
[-- Type: text/plain, Size: 2204 bytes --]

Linux version 2.4.27-xenU (childss@frascati.cs.tcd.ie) (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@monad.swb.de).
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.


[-- Attachment #4: xen2_domain_config --]
[-- Type: text/plain, Size: 399 bytes --]

# 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"


             reply	other threads:[~2004-08-25 11:49 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-25 11:49 Stephen Childs [this message]
2004-08-25 12:35 ` Problems with virtual disks in DomU Ian Pratt
2004-08-25 14:28   ` Stephen Childs
2004-08-25 14:55     ` Ian Pratt
2004-08-25 16:57       ` Mark Williamson
2004-08-25 17:03         ` Stephen Childs
2004-08-25 17:31           ` Mark Williamson
2004-08-26 14:24             ` Stephen Childs
2004-08-26 14:35               ` Ian Pratt
2004-08-26 14:45               ` Mark Williamson
2004-08-26 14:56                 ` Stephen Childs
2004-08-26 15:06                   ` Ian Pratt
2004-08-26 16:49                     ` Stephen Childs
2004-08-26 17:30                       ` Keir Fraser
2004-08-26 22:36                       ` Ian Pratt
2004-08-25 16:35     ` Mark Williamson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=412C7CC9.3020207@cs.tcd.ie \
    --to=stephen.childs@cs.tcd.ie \
    --cc=xen-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.