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 15:13:55 +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="===============0030706095==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Todd Deshane Cc: Ian Campbell , Xen Devel , Andrei Warkentin , Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org --===============0030706095== Content-Type: multipart/alternative; boundary=0015175cda8cae61fb04a387a1e8 --0015175cda8cae61fb04a387a1e8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 2011/5/18 Todd Deshane > On Tue, May 17, 2011 at 12:43 PM, Bei Guan wrote: > > > >> > You appear to be getting dumped into a debug shell within th= e > >> > 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 comman= d > >> > 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? > > When you get dropped into the minimal (initramfs) prompt it gives you > some good suggestions. > > For example. You can do "ls /dev" and "cat /proc/modules" and you can > probably even try to run a mount command maybe. You can also > double-check things like "cat /proc/cmdline", etc. > > See if you can determine what devices in /dev are actually available, > such as your sda, hda, or xvda devices. > Some boot information got from initramfs is list below. It seems that the /dev/sda9 is available, but there no drivers module in /proc/modules. I als= o can't mount /dev/sda9 to other directory. So, what's the problem with it? And if a device that need to be mount can't be found in the /dev, what should I do to make it available? (initramfs) cat /proc/cmdline nopat root=3D/dev/sda9 ro console=3Dtty0 console=3DttyS0,115200n8 console= =3Dhvc0 earlyprintk=3Dxen nomodeset initcall_debug debug loglevel=3D10 (initramfs) ls /dev console ttyS1 hvc6 tty41 null ttyS2 hvc7 tty44 pts ttyS3 ptmx tty43 loop0 rtc0 tty bsg block rtc tty0 sg1 loop1 hidraw0 tty1 tty46 loop3 ttyS0 tty10 tty45 loop4 cpu tty11 tty47 loop5 sda tty12 tty48 loop2 disk tty13 tty49 loop7 full tty14 tty5 ram10 kmem tty15 tty50 ram7 kmsg tty16 tty51 loop6 mem tty17 tty52 ram1 oldmem tty18 tty53 ram0 port tty19 tty54 ram13 random tty2 tty55 ram11 urandom tty20 tty56 ram3 zero tty21 tty57 ram12 autofs tty22 tty58 ram15 blktap-control tty23 tty59 ram14 cpu_dma_latency tty24 tty6 ram9 mapper tty26 tty60 ram2 mcelog tty27 tty62 ram5 hpet tty28 tty61 ram4 network_latency tty29 tty7 ram8 network_throughput tty3 tty63 ram6 rfkill tty30 tty9 input snapshot tty32 tty8 char net tty31 vcs usbmon3 vga_arbiter tty25 usbmon0 bus watchdog sr0 vcsa adsp nvram scd0 vcs1 audio xen tty35 vcsa1 dsp sequencer tty36 sda8 snd sequencer2 tty34 sda2 mixer hvc0 tty37 sda7 usbmon1 hvc1 tty33 sda5 usbmon4 hvc2 tty39 sda6 usbmon5 hidraw1 tty38 sda9 usbmon6 hvc3 tty4 sda1 usbmon7 hvc4 tty42 usbmon2 hvc5 tty40 (initramfs) cat /proc/modules (initramfs) (initramfs) mount -o /dev/sda9 /root mount: cannot read /etc/fstab: No such file or directory (initramfs) ls /etc modprobe.d default lvm console-setup udev (initramfs) fstype /dev/sda=089 FSTYPE=3Dext4dev FSSIZE=3D33738981376 (initramfs) ls / dev lib64 var init conf scripts proc root lib bin etc sbin sys tmp Thanks Bei Guan > > Hope that helps. > > Thanks, > Todd > > > (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=3D755 0 0 > > none /dev/pts devpts rw,nosuid,noexec,relatime,gid=3D5,mode=3D620 0 0 > > (initramfs) > > > > Thanks, > > Bei Guan > > > >> > >> Ian. > >> > > >> > > >> > > >> > > >> > Ian. > >> > > >> > > >> > > >> > >> > > > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel > > > > > > > > -- > Todd Deshane > http://www.linkedin.com/in/deshantm > http://www.xen.org/products/cloudxen.html > http://runningxen.com/ > --0015175cda8cae61fb04a387a1e8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

2011/5/18 Todd Deshane <todd.deshane@xen.org>
On Tue, May 17, 2011 at 12:43 PM, Bei Guan <gbtju85@gmail.com> wrote:
>
>> > =A0 =A0 =A0 =A0 You appear to be getting dumped into a debug = shell within the
>> > =A0 =A0 =A0 =A0 initramfs
>> > =A0 =A0 =A0 =A0 so you can quite easily have a poke around an= d see what'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
>> > or what others? Many thanks.
>>
>> It's a minimal Linux environment, you should have e.g. "l= s" 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 o= ther work
> can I do?

When you get dropped into the minimal (initramfs) prompt it gives you=
some good suggestions.

For example. You can do =A0"ls /dev" and "cat /proc/modules&= quot; and you can
probably even try to run a mount command maybe. You can also
double-check things like "cat /proc/cmdline", etc.

See if you can determine what devices in /dev are actually available,
such as your sda, hda, or xvda devices.

Some boot information got from initramfs is list below. It seems that the = /dev/sda9 is available, but there no drivers module in /proc/modules. I als= o can't mount /dev/sda9 to other directory. So, what's the problem = with it? And if a device that need to be mount can't be found in the /d= ev, what should I do to make it available?


(initramfs) cat /proc/cmdline
=
nopat root=3D/dev/sda9 ro console=3Dtty0 console=3DttyS0,115200n8 cons= ole=3Dhvc0 earlyprintk=3Dxen nomodeset initcall_debug debug loglevel=3D10

(initramfs) ls /dev
console =A0 =A0 =A0 =A0 =A0 = =A0 =A0ttyS1 =A0 =A0 =A0 =A0 =A0 =A0 =A0 hvc6 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0tty41
null =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0ttyS2 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 hvc7 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0tty44
pts =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0ttyS3 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 ptmx =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0tty43
loop0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 rtc0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 tty =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 bsg
block =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 rtc =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 tty0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0sg1
loop1 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = hidraw0 =A0 =A0 =A0 =A0 =A0 tty1 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0tty46
loop3 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ttyS0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 tty10 =A0 =A0 =A0 =A0 =A0 =A0 =A0 tty45
loop4 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 cpu =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 tty11 =A0 =A0 =A0 =A0 = =A0 =A0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0 =A0 =A0 tty56
ram3 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 zero =A0 =A0 =A0 =A0 =A0 =A0 = =A0 tty21 =A0 =A0 =A0 =A0 =A0 =A0 =A0 tty57
ram12 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 autofs =A0 =A0 =A0 =A0 =A0 =A0 tty22 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 tty58
ram15 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 blktap-contro= l =A0tty23 =A0 =A0 =A0 =A0 =A0 =A0 =A0 tty59
ram14 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 cpu_dma_latency =A0 =A0 tty24 = =A0 =A0 =A0 tty6
ram9 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0mapper = =A0 =A0 =A0 =A0 =A0 =A0tty26 =A0 =A0 =A0 =A0 =A0 =A0 =A0 tty60
ra= m2 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0mcelog =A0 =A0 =A0 =A0 =A0 =A0 tty27 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 tty62
ram5 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0hpet =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 tty28 =A0 =A0 =A0 =A0 =A0 =A0 =A0 tty61
ram4 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0network_latency =A0 =A0 =A0 =A0tty29 =A0 =A0 =A0 tty= 7
ram8 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0network_throughput =A0 = tty3 =A0 =A0 =A0 =A0 tty63
ram6 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0rfkill =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0tty30 =A0 =A0 =A0 =A0 =A0 =A0 =A0 tty9
input =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0snapshot =A0 =A0 =A0 =A0 =A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A0 =A0 hvc2 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0tty39 =A0 =A0 =A0 =A0 =A0 =A0 =A0 sda6
usbmon5 =A0 =A0 =A0 =A0 =A0 =A0 hidraw1 =A0 =A0 =A0 =A0 =A0 =A0 =A0tty= 38 =A0 =A0 =A0 =A0 =A0 =A0 =A0 sda9
usbmon6 =A0 =A0 =A0 =A0 =A0 = =A0 hvc3 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0tty4 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 sda1
usbmon7 =A0 =A0 =A0 =A0 =A0 =A0 hvc4 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0tty42
usbmon2 =A0 =A0 =A0 =A0 =A0 =A0 hvc5 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0tty40
(initramfs) cat /proc/modules
(initramfs)=A0

<= /div>
(initramfs) mount -o /dev/sda9 /root
mount: cannot read= /etc/fstab: No such file or directory
(initramfs) ls /etc
modprobe.d =A0 =A0 default =A0 =A0 =A0 =A0lvm =A0 =A0 =A0 =A0 =A0 =A0c= onsole-setup =A0udev
(initramfs) fstype /dev/sda=089
FSTYPE=3Dext4dev
FSSIZE=3D33738981376

(initramfs) ls /
dev =A0 =A0 =A0lib64 =A0 =A0var =A0 =A0 =A0init =A0 =A0 conf =A0 =A0 s= cripts =A0proc
root =A0 =A0 lib =A0 =A0 =A0bin =A0 =A0 =A0etc =A0= =A0 =A0sbin =A0 =A0 sys =A0 =A0 =A0tmp


Thanks
Bei Guan
=A0

Hope that helps.

Thanks,
Todd

> (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=3D755 0 0
> none /dev/pts devpts rw,nosuid,noexec,relatime,gid=3D5,mode=3D620 0 0<= br> > (initramfs)
>
> Thanks,
> Bei Guan
>
>>
>> Ian.
>> >
>> >
>> >
>> >
>> > =A0 =A0 =A0 =A0 Ian.
>> >
>> >
>> >
>>
>>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xenso= urce.com
> htt= p://lists.xensource.com/xen-devel
>
>



--
Todd Deshane
http://ww= w.linkedin.com/in/deshantm
htt= p://www.xen.org/products/cloudxen.html
http://runningxen.com/=

--0015175cda8cae61fb04a387a1e8-- --===============0030706095== 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 --===============0030706095==--