From: "vineet chadha" Subject: Re: [Xen-users] Re: Re: switchroot mount failed Date: Wed, 14 Jun 2006 13:28:24 -0700 Message-ID: <2b50db750606141328k2841d600q7af4f357a182647@mail.gmail.com> References: <2b50db750606130842u1b108870vaab53e05102b320@mail.gmail.com> <2b50db750606131127n2fc4c62ej3ee21b47b2486756@mail.gmail.com> <2b50db750606141238h2a938daft56ac21e3074e1d09@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1408180408==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com, xen-users@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1408180408== Content-Type: multipart/alternative; boundary="----=_Part_9395_13566447.1150316904837" ------=_Part_9395_13566447.1150316904837 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi keir, Normal kernel is booting and detecting SCSI disk fine. When i boot in Xen mode, it gives this problem. If you put search "switchroot mount failed" in Xen user/dev list, u will see this has been a common issuse with no solution posted. Yes, I also believe it is problem with xen kernel not detecting the SCSI drivers or something. which log file u want me to check. Regards, Vineet On 6/14/06, Keir Fraser wrote: > > > Does teh kernel boot output indicate that the SCSI module has loaded > and actually detected any discs (sda in particular)? This doesn't look > like a Xen-specific problem. > > -- Keir > > > On 14 Jun 2006, at 20:38, vineet chadha wrote: > > > Hi, > > > > I am attaching lpci and lsmod for Xen boot problem mentioned below. > > Any clues ? > > > > -Vineet > > > > On 6/13/06, vineet chadha wrote: Hi, > >> > >> Can xen developers kindly post relevant solution to this problem. I > >> have seen many times onxen list- not a simple answer. It has come > >> to the point of frustration. I can provide any information needed. > >> > >> Regards, > >> Vineet > >> > >> ---------- Forwarded message ---------- > >> From: vineet chadha > >> Date: Jun 13, 2006 8:42 AM > >> Subject: switchroot mount failed > >> To: xen-users@lists.xensource.com, xen-devel@lists.xensource.com > >> > >> > >> All, > >> I am running xen3.0.2 and xen unstable on RHEL 4, and get this error > >> when trying to boot Xen kernel(domain0) > >> ...... > >> Creating root device > >> Mounting root filesystem > >> mount: error 6 mounting ext3 > >> mount: error 2 mounting none > >> Switching to new root > >> switchroot: mount failed: 22 > >> umount /initrd/dev failed: 2 > >> Kernel panic - not syncing: Attempting to kill init! > >> Then system reboot.In grub.conf,I have change d the root=LABEL=/ to > >> the actual device > >> (root=/dev/sda 3),and make the same change in /etc/fstab, but I got > >> same error. > >> My system is Intel Xeon, Dual Core Machine, 2.8GHz. 32 bit Linux > >> > >> my installation steps as below, > >> # pwd > >> /home/vineet/xen-3.0.2 > >> # make world > >> # make install > >> > >> # cd /boot > >> # depmod 2.6.16-xen > >> # mkinitrd -f -v initrd-2.6.16-xen.img 2.6.16-xen > >> Creating initramfs > >> Looking for deps of module scsi_mod > >> Looking for deps of module sd_mod scsi_mod > >> Looking for deps of module scsi_mod > >> Looking for deps of module unknown > >> Looking for deps of module mptbase > >> Looking for deps of module mptscsih mptbase scsi_mod > >> Looking for deps of module mptbase > >> Looking for deps of module scsi_mod > >> Looking for deps of module ide-disk > >> Looking for deps of module dm-mod > >> Looking for deps of module ext3 jbd > >> Looking for deps of module jbd > >> Using modules: ./kernel/drivers/scsi/scsi_mod.ko > >> ./kernel/drivers/scsi/sd_mod.ko > >> ./kernel/drivers/message/fusion/mptbase.ko > >> ./kernel/drivers/message/fusion/mptscsih.ko ./kernel/drivers/md/dm- > >> mod.ko ./kernel/fs/jbd/jbd.ko ./kernel/fs/ext3/ext3.ko > >> /sbin/nash -> /tmp/initrd.L28813/bin/nash > >> /sbin/insmod.static -> /tmp/initrd.L28813/bin/insmod > >> /sbin/udev.static -> /tmp/initrd.L28813/sbin/udev > >> /etc/udev/udev.conf -> /tmp/initrd.L28813/etc/udev/udev.conf > >> copy from > >> /lib/modules/2.6.16-xen/./kernel/drivers/scsi/scsi_mod.ko(elf32-i386) > >> to /tmp/initrd.L28813/lib/scsi_mod.ko(elf32-i386) > >> copy from > >> /lib/modules/2.6.16-xen/./kernel/drivers/scsi/sd_mod.ko(elf32-i386) > >> to /tmp/initrd.L28813/lib/sd_mod.ko(elf32-i386) > >> copy from > >> /lib/modules/2.6.16-xen/./kernel/drivers/message/fusion/ > >> mptbase.ko(elf32-i386) to > >> /tmp/initrd.L28813/lib/mptbase.ko(elf32-i386) > >> copy from > >> /lib/modules/2.6.16-xen/./kernel/drivers/message/fusion/ > >> mptscsih.ko(elf32-i386) to > >> /tmp/initrd.L28813/lib/mptscsih.ko(elf32-i386) > >> copy from > >> /lib/modules/2.6.16-xen/./kernel/drivers/md/dm-mod.ko(elf32-i386) to > >> /tmp/initrd.L28813/lib/dm-mod.ko(elf32-i386) > >> copy from /lib/modules/2.6.16-xen/./kernel/fs/jbd/jbd.ko(elf32-i386) > >> to /tmp/initrd.L28813/lib/jbd.ko(elf32-i386) > >> copy from > >> /lib/modules/2.6.16-xen/./kernel/fs/ext3/ext3.ko(elf32-i386) to > >> /tmp/initrd.L28813/lib/ext3.ko(elf32-i386) > >> Loading module scsi_mod > >> Loading module sd_mod > >> Loading module mptbase > >> Loading module mptscsih > >> Loading module dm-mod > >> Loading module jbd > >> Loading module ext3 > >> # > >> My grub.conf file: > >> default=0 > >> timeout=5 > >> splashimage=(hd0,0)/grub/splash.xpm.gz > >> hiddenmenu > >> titleRed Hatenterprise linux(2.6.9-22.ELsmp) > >> root (hd0,0) > >> kernel /vmlinuz-2.6.9-22.ELsmp ro root=LABEL=/ rhgb quiet > >> initrd /initrd-2.6.9-22.ELsmp.img > >> title Red Hatenterprise linux (2.6.9-22.EL) > >> root (hd0,0) > >> kernel /vmlinuz-2.6.9-22.EL ro root=LABEL=/ rhgb quiet > >> initrd /initrd- 2.6.9-22.EL.img > >> title Xen 3.0 / XenLinux 2.6 > >> root (hd0,0) > >> kernel /xen-3.0.gz > >> module /vmlinuz-2.6-xen root=LABEL=/ ro console=tty0 > >> module /initrd-2.6.16-xen.img > >> I have tried giving different options to creation of mkinitrd command > >> but it doesnot work. I have tried "builtin" and "with" options and it > >> doesnot worl. In addition, I have tried to make hyperthreading > >> disabled,it doesnot work for me. > >> I have seen many such messages but no concrete solution to this > >> problem. Please help. > >> > >> > >> -Vineet_________________________________________ > >> ______ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > ------=_Part_9395_13566447.1150316904837 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi keir,
 
Normal kernel is booting and detecting SCSI disk fine. When i boot in Xen mode, it gives this problem. If you put search "switchroot mount failed" in Xen user/dev list, u will see this has been a common issuse with no solution posted. Yes, I also believe it is problem with xen kernel not detecting the SCSI drivers or something.
which log file u want me to check.
 
Regards,
Vineet

 
On 6/14/06, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote:

Does teh kernel boot output indicate that the SCSI module has loaded
and actually detected any discs (sda in particular)? This doesn't look
like a Xen-specific problem.

-- Keir


On 14 Jun 2006, at 20:38, vineet chadha wrote:

> Hi,
>
> I am attaching lpci and lsmod for Xen boot problem mentioned below.
> Any clues ?
>
> -Vineet
>
> On 6/13/06, vineet chadha <virtual.chadha@gmail.com> wrote: Hi,
>>
>> Can xen developers kindly post relevant solution to this problem. I
>> have seen many times onxen list- not a simple answer. It has come
>> to the point of frustration. I can provide any information needed.
>>
>> Regards,
>> Vineet
>>
>> ---------- Forwarded message ----------
>> From: vineet chadha <virtual.chadha@gmail.com>
>> Date: Jun 13, 2006 8:42 AM
>> Subject: switchroot mount failed
>> To: xen-users@lists.xensource.com, xen-devel@lists.xensource.com
>>
>>
>> All,
>> I am running xen3.0.2 and xen unstable on RHEL 4, and get this error
>> when trying to boot Xen kernel(domain0)
>>  ......
>> Creating root device
>> Mounting root filesystem
>> mount: error 6 mounting ext3
>> mount: error 2 mounting none
>> Switching to new root
>> switchroot: mount failed: 22
>> umount /initrd/dev failed: 2
>> Kernel panic - not syncing: Attempting to kill init!
>> Then system reboot.In grub.conf,I have change  d the root=LABEL=/ to
>> the actual device
>> (root=/dev/sda  3),and make the same change in /etc/fstab,  but I got
>> same error.
>> My system is Intel Xeon, Dual Core Machine, 2.8GHz. 32 bit Linux
>>
>> my installation steps as below,
>> # pwd
>> /home/vineet/xen-3.0.2
>> # make world
>> # make install
>>
>>  # cd /boot
>> # depmod 2.6.16-xen
>>  # mkinitrd -f -v initrd-2.6.16-xen.img 2.6.16-xen
>> Creating initramfs
>> Looking for deps of module scsi_mod
>> Looking for deps of module sd_mod scsi_mod
>>  Looking for deps of module scsi_mod
>> Looking for deps of module unknown
>> Looking for deps of module mptbase
>> Looking for deps of module mptscsih mptbase scsi_mod
>> Looking for deps of module mptbase
>> Looking for deps of module scsi_mod
>> Looking for deps of module ide-disk
>> Looking for deps of module dm-mod
>> Looking for deps of module ext3 jbd
>>  Looking for deps of module jbd
>> Using modules: ./kernel/drivers/scsi/scsi_mod.ko
>> ./kernel/drivers/scsi/sd_mod.ko
>> ./kernel/drivers/message/fusion/mptbase.ko
>> ./kernel/drivers/message/fusion/mptscsih.ko ./kernel/drivers/md/dm-
>> mod.ko ./kernel/fs/jbd/jbd.ko ./kernel/fs/ext3/ext3.ko
>> /sbin/nash -> /tmp/initrd.L28813/bin/nash
>> /sbin/insmod.static -> /tmp/initrd.L28813/bin/insmod
>> /sbin/udev.static -> /tmp/initrd.L28813/sbin/udev
>> /etc/udev/udev.conf -> /tmp/initrd.L28813/etc/udev/udev.conf
>> copy from
>> /lib/modules/2.6.16-xen/./kernel/drivers/scsi/scsi_mod.ko(elf32-i386)
>> to /tmp/initrd.L28813/lib/scsi_mod.ko(elf32-i386)
>> copy from
>> /lib/modules/2.6.16-xen/./kernel/drivers/scsi/sd_mod.ko(elf32-i386)
>> to /tmp/initrd.L28813/lib/sd_mod.ko(elf32-i386)
>> copy from
>> /lib/modules/2.6.16-xen/./kernel/drivers/message/fusion/
>> mptbase.ko(elf32-i386) to
>> /tmp/initrd.L28813/lib/mptbase.ko(elf32-i386)
>> copy from
>> /lib/modules/2.6.16-xen/./kernel/drivers/message/fusion/
>> mptscsih.ko(elf32-i386) to
>> /tmp/initrd.L28813/lib/mptscsih.ko(elf32-i386)
>> copy from
>> /lib/modules/2.6.16-xen/./kernel/drivers/md/dm-mod.ko(elf32-i386) to
>> /tmp/initrd.L28813/lib/dm-mod.ko(elf32-i386)
>> copy from /lib/modules/2.6.16-xen/./kernel/fs/jbd/jbd.ko(elf32-i386)
>> to /tmp/initrd.L28813/lib/jbd.ko(elf32-i386)
>>  copy from
>> /lib/modules/2.6.16-xen/./kernel/fs/ext3/ext3.ko(elf32-i386) to
>> /tmp/initrd.L28813/lib/ext3.ko(elf32-i386)
>> Loading module scsi_mod
>> Loading module sd_mod
>> Loading module mptbase
>>  Loading module mptscsih
>> Loading module dm-mod
>> Loading module jbd
>> Loading module ext3
>> #
>> My grub.conf file:
>> default=0
>> timeout=5
>> splashimage=(hd0,0)/grub/splash.xpm.gz
>> hiddenmenu
>> titleRed Hatenterprise linux(2.6.9-22.ELsmp)
>> root (hd0,0)
>> kernel /vmlinuz-2.6.9-22.ELsmp ro root=LABEL=/ rhgb quiet
>>   initrd /initrd-2.6.9-22.ELsmp.img
>> title Red Hatenterprise linux ( 2.6.9-22.EL)
>>   root (hd0,0)
>> kernel /vmlinuz-2.6.9-22.EL ro root=LABEL=/ rhgb quiet
>> initrd /initrd- 2.6.9-22.EL.img
>> title Xen 3.0 / XenLinux 2.6
>> root (hd0,0)
>> kernel /xen- 3.0.gz
>> module /vmlinuz-2.6-xen root=LABEL=/ ro console=tty0
>>   module /initrd-2.6.16-xen.img
>> I have tried giving different options to creation of mkinitrd command
>> but it doesnot work. I have tried "builtin" and "with" options and it
>> doesnot worl. In addition, I have tried to make hyperthreading
>> disabled,it doesnot work for me.
>> I have seen many such messages but no concrete solution to this
>> problem. Please help.
>>
>>
>> -Vineet<lspci.out><lsmod.out>_________________________________________
>> ______
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel


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

------=_Part_9395_13566447.1150316904837-- --===============1408180408== 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 --===============1408180408==--