From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bei Guan Subject: Re: pvops Domain 0 Creased when boot Xen-unstable on Ubuntu10.04 Date: Wed, 18 May 2011 00:43:36 +0800 Message-ID: References: <20110516175320.GA5722@dumpdata.com> <20110517144421.GA7597@dumpdata.com> <1305646477.20907.63.camel@zakaz.uk.xensource.com> <1305647376.20907.69.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0199452377==" Return-path: In-Reply-To: <1305647376.20907.69.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: Xen Devel , Andrei Warkentin , Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org --===============0199452377== Content-Type: multipart/alternative; boundary=000325558c362fdb3504a37b79b4 --000325558c362fdb3504a37b79b4 Content-Type: text/plain; charset=ISO-8859-1 2011/5/17 Ian Campbell > On Tue, 2011-05-17 at 16:48 +0100, Bei Guan wrote: > > > > > > 2011/5/17 Ian Campbell > > > > On Tue, 2011-05-17 at 16:27 +0100, Bei Guan wrote: > > > > > > > > > 2011/5/17 Konrad Rzeszutek Wilk > > > > menuentry "Ubuntu_Xen 4.2 (2.6.32.28)" { > > > > recordfail > > > > insmod ext2 > > > > set root='(hd0,9)' > > > > search --no-floppy --fs-uuid --set > > > 59c64afa-47a8-4a5f-a4cf-dbe3be20cc15 > > > > multiboot /boot/xen.gz dom0_mem=1024M > > loglvl=all > > > guest_loglvl=all > > > > sync_console console_to_ring com1=115200,8n1 > > console=com1 > > > lapic=debug > > > > apic_verbosity=debug apic=debug iommu=off > > > > module /boot/vmlinuz-2.6.32.28 nopat > > > > root=UUID=59c64afa-47a8-4a5f-a4cf-dbe3be20cc15 ro > > > console=tty0 > > > > console=ttyS0,115200n8 console=hvc0 > > earlyprintk=xen > > > nomodeset initcall_debug > > > > debug loglevel=10 > > > > module /boot/initrd.img-2.6.32.28 > > > > } > > > > > > > > In the debug, there is message like this: > > > > > > > > Loading, please wait... > > > > mount: mounting none on /dev failed: No such > > device > > > > > > > > > > > > So your /dev/sda is being seen. Not sure why the > > UUID hasn't > > > been read, but > > > you could do 'root=/dev/sdaX' where X is the correct > > root > > > partition. > > > > > > This would replace the 'UUID=59...'. > > > > > > I just tried this. Because the /dev/sda9 is the root fs, so > > I used > > > 'root=/dev/sda9' to replace the original one. But it also > > the same > > > error as the following. Detailed is also attached. > > > > > > > > > Loading, please wait... > > > mount: mounting none on /dev failed: No such device > > > > > > This is trying to mount something on /dev, presumably a TMPFS > > or > > DEVTMPFS or similar, this fails which apparently cascades into > > not > > finding the disk. > > > > I suggest you have a dig into your initramfs and try and > > figure out what > > specifically it is trying to do and what requirements your > > distro has > > put on the kernel configuration. > > > > You appear to be getting dumped into a debug shell within the > > initramfs > > so you can quite easily have a poke around and see what's > > going on I > > think. > > > > > > Sorry, can you give me more detail about how to do this? What command > > or what others? Many thanks. > > It's a minimal Linux environment, you should have e.g. "ls" and "cat". > Try and find the mount command which is failing. > I did the following command to find the failed mount command. But, it seems can't find that. So, is there any problem with my steps and what other work can I do? (initramfs) dmeg | grep mount (initramfs) (initramfs) cat /proc/mounts rootfs / rootfs rw 0 0 none /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0 none /proc proc rw,nosuid,nodev,noexec,relatime 0 0 none /dev tmpfs rw,relatime,mode=755 0 0 none /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0 (initramfs) Thanks, Bei Guan > > Ian. > > > > > > > > > > Ian. > > > > > > > > > --000325558c362fdb3504a37b79b4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

2011/5/17 Ian Campbell <Ian.Campbell@eu.citrix.c= om>
On Tue, 2011-05-17 at 16:48 +0100, Bei Gu= an wrote:
>
>
> 2011/5/17 Ian Campbell <= Ian.Campbell@citrix.com>
>
> =A0 =A0 =A0 =A0 On Tue, 2011-05-17 at 16:27 +0100, Bei Guan wrote:
> =A0 =A0 =A0 =A0 >
> =A0 =A0 =A0 =A0 >
> =A0 =A0 =A0 =A0 > 2011/5/17 Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > menuentry "Ubuntu_Xen 4= .2 (2.6.32.28)" {
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > recordfail
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > insmod ext2
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > set root=3D'(hd0,9)'=
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > search --no-floppy --fs-uuid= --set
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 59c64afa-47a8-4a5f-a4cf-dbe3be20c= c15
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 multiboot /b= oot/xen.gz dom0_mem=3D1024M
> =A0 =A0 =A0 =A0 loglvl=3Dall
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 guest_loglvl=3Dall
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > sync_console console_to_ring= com1=3D115200,8n1
> =A0 =A0 =A0 =A0 console=3Dcom1
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 lapic=3Ddebug
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > apic_verbosity=3Ddebug apic= =3Ddebug iommu=3Doff
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > module /boot/vmlinuz-2.6.32.= 28 nopat
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > root=3DUUID=3D59c64afa-47a8-= 4a5f-a4cf-dbe3be20cc15 ro
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 console=3Dtty0
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > console=3DttyS0,115200n8 con= sole=3Dhvc0
> =A0 =A0 =A0 =A0 earlyprintk=3Dxen
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 nomodeset initcall_debug
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > debug loglevel=3D10
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > module /boot/initrd.img-2.6.= 32.28
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > }
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 >
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > In the debug, there is messa= ge like this:
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 >
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > Loading, please wait...
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > mount: mounting none on /dev= failed: No such
> =A0 =A0 =A0 =A0 device
> =A0 =A0 =A0 =A0 >
> =A0 =A0 =A0 =A0 >
> =A0 =A0 =A0 =A0 >
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 So your /dev/sda is being seen. N= ot sure why the
> =A0 =A0 =A0 =A0 UUID hasn't
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 been read, but
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 you could do 'root=3D/dev/sda= X' where X is the correct
> =A0 =A0 =A0 =A0 root
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 partition.
> =A0 =A0 =A0 =A0 >
> =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 This would replace the 'UUID= =3D59...'.
> =A0 =A0 =A0 =A0 >
> =A0 =A0 =A0 =A0 > I just tried this. Because the /dev/sda9 is the r= oot fs, so
> =A0 =A0 =A0 =A0 I used
> =A0 =A0 =A0 =A0 > 'root=3D/dev/sda9' to replace the origina= l one. But it also
> =A0 =A0 =A0 =A0 the same
> =A0 =A0 =A0 =A0 > error as the following. Detailed is also attached= .
> =A0 =A0 =A0 =A0 >
> =A0 =A0 =A0 =A0 >
> =A0 =A0 =A0 =A0 > Loading, please wait...
> =A0 =A0 =A0 =A0 > mount: mounting none on /dev failed: No such devi= ce
>
>
> =A0 =A0 =A0 =A0 This is trying to mount something on /dev, presumably = a TMPFS
> =A0 =A0 =A0 =A0 or
> =A0 =A0 =A0 =A0 DEVTMPFS or similar, this fails which apparently casca= des into
> =A0 =A0 =A0 =A0 not
> =A0 =A0 =A0 =A0 finding the disk.
>
> =A0 =A0 =A0 =A0 I suggest you have a dig into your initramfs and try a= nd
> =A0 =A0 =A0 =A0 figure out what
> =A0 =A0 =A0 =A0 specifically it is trying to do and what requirements = your
> =A0 =A0 =A0 =A0 distro has
> =A0 =A0 =A0 =A0 put on the kernel configuration.
>
> =A0 =A0 =A0 =A0 You appear to be getting dumped into a debug shell wit= hin the
> =A0 =A0 =A0 =A0 initramfs
> =A0 =A0 =A0 =A0 so you can quite easily have a poke around and see wha= t's
> =A0 =A0 =A0 =A0 going on I
> =A0 =A0 =A0 =A0 think.
>
>
> Sorry, can you give me more detail about how to do this? What command<= br> > or what others? Many thanks.

It's a minimal Linux environment, you should have e.g. &quo= t;ls" and "cat".
Try and find the mount command which is failing.

<= /div>
I did the following command to find the failed mount command. But= , it seems can't find that. So, is there any problem with my steps and = what other work can I do?=A0

(initramfs) dmeg | grep mount
(initramfs= )=A0

(initramfs) cat /proc/mounts
rootfs= / rootfs rw 0 0
none /sys sysfs rw,nosuid,nodev,noexec,relatime = 0 0
none /proc proc rw,nosuid,nodev,noexec,relatime 0 0
none /de= v tmpfs rw,relatime,mode=3D755 0 0
none /dev/pts devpts rw,nosuid= ,noexec,relatime,gid=3D5,mode=3D620 0 0
(initramfs)=A0


Thanks,
Bei Guan
=A0

Ian.
>
>
>
>
> =A0 =A0 =A0 =A0 Ian.
>
>
>



--000325558c362fdb3504a37b79b4-- --===============0199452377== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0199452377==--