WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] debian lenny -> squeeze domU migration /dev/sdaX not found

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] debian lenny -> squeeze domU migration /dev/sdaX not found
From: Cameron Camp <cameron@xxxxxxxxxxxxx>
Date: Fri, 22 Apr 2011 10:55:24 -0700
Delivery-date: Fri, 22 Apr 2011 10:56:46 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
I'm migrating a Lenny/2.6.26-1 kernel non-lvm file based DomU to a new
Squeeze Dom0 server (non-lvm hardware RAID1 sdX) running kernel
2.6.32-5-xen-amd64, xen-hypervisor-4.0-amd64, xen-tools 4.2-1. When I do

xm create whatever.domain.com.cfg

it starts, but then when I login with xm console I get:

Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin:
Running /scripts/local-top ... done.
Begin: Waiting for root file system ... done.
Gave up waiting for root device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
   - Check root= (did the system wait for the right device?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  /dev/sda2 does not exist.  Dropping to a shell!
BusyBox v1.17.1 (Debian 1:1.17.1-8) built-in shell (ash)
Enter 'help' for a list of built-in commands.
/bin/sh: can't access tty; job control turned off
(initramfs)

apparently it can't find /dev/sda2, which is specified in
whatever.domain.cfg as:

root        = '/dev/sda2 ro'
disk        = [

'file:/home/xen/domains/whatever.domain.com/swap.img,sda1,w',
'file:/home/xen/domains/whatever.domain.com/disk.img,sda2,w',
              ]

along with updated kernel entries like:

kernel      = '/boot/vmlinuz-2.6.32-5-xen-amd64'
ramdisk     = '/boot/initrd.img-2.6.32-5-xen-amd64'
#kernel      = '/boot/vmlinuz-2.6.26-1-xen-amd64'
#ramdisk     = '/boot/initrd.img-2.6.26-1-xen-amd64'

also, 

/home/xen/domains/whatever.domain.com/disk.img and swap.img

exist and have the same ownership/permissions as a newly created
(successful) DomU on this same box using Debian Squeeze xen-tools, which
is working fine.

why can't the old DomU see /dev/sda2
as /home/xen/domains/whatever.domain.com/disk.img ? Is there something I
can edit at xm console inside DomU to make it see those .img's? I've
tried mount, but don't see the fs, and fdisk -l doesn't work.

thx,
Cam



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

<Prev in Thread] Current Thread [Next in Thread>