[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#594545: initramfs-tools: "mount" command fails to mount root filesystem.



(Resending after reopening bug.)

I encountered this bug in a fresh squeeze install this week. I believe
the problem was that my dom0 was using ext4 filesystems (and not
ext3), while my domU was using an ext3 root filesystem. Therefore, the
initramfs created for dom0 did not include the ext3 module and domU
could not boot.

After running the following commands on dom0, the domU booted successfully:

root@xen2:~# echo ext3 >> /etc/initramfs-tools/modules
root@xen2:~# update-initramfs -u

I suspect this may be more a bug in xen-tools than in initramfs-tools.
Before encountering this bug, I had already had to add "xen-blkfront"
to /etc/initramfs-tools/modules to fix the problem described in bug
#640099. Perhaps the more general problem here is that xen-tools is
creating domUs with initramfs that are tailored for dom0 and not domU.
For instance, the boot output below also shows an attempt to find the
dom0's LVM volumes, which are irrelevant for the domU.

Excerpt of console output from domU before adding ext3 to
/etc/initramfs-tools/modules:

Loading, please wait...
[    0.207272] udev[46]: starting version 164
[    0.283519] blkfront: xvda2: barriers enabled
[    0.294047] blkfront: xvda1: barriers enabled
Begin: Loading essential drivers ... [    0.568088] SCSI subsystem initialized
[    0.592665] device-mapper: uevent: version 1.0.3
[    0.593187] device-mapper: ioctl: 4.15.0-ioctl (2009-04-01)
initialised: dm-devel@redhat.com
done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top
...   Volume group "xen2" not found
  Skipping volume group xen2
Unable to find LVM volume xen2/dom0-swap
done.
Begin: Running /scripts/local-premount ... done.
mount: mounting /dev/xvda2 on /root failed: No such device
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... mount: mounting /dev on
/root/dev failed: No such file or directory
done.
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed: No such file or directory
Target filesystem doesn't have requested /sbin/init.
No init found. Try passing init= bootarg.

Versions of some relevant packages on dom0:

root@xen2:~# dpkg -l | egrep "(linux-image|initram|xen)"
ii  initramfs-tools                     0.98.8
tools for generating an initramfs
ii  libklibc                            1.5.20-1+squeeze1
minimal libc subset for use with initramfs
ii  libxenstore3.0                      4.0.1-4
Xenstore communications library for Xen
ii  linux-image-2.6.32-5-amd64          2.6.32-41
Linux 2.6.32 for 64-bit PCs
ii  linux-image-2.6.32-5-xen-amd64      2.6.32-41
Linux 2.6.32 for 64-bit PCs, Xen dom0 support
ii  xen-hypervisor-4.0-amd64            4.0.1-4
The Xen Hypervisor on AMD64
ii  xen-linux-system-2.6-xen-amd64      2.6.32+29
Xen system with Linux 2.6 for 64-bit PCs (meta-package)
ii  xen-linux-system-2.6.32-5-xen-amd64 2.6.32-41
Xen system with Linux 2.6.32 on 64-bit PCs (meta-package)
ii  xen-qemu-dm-4.0                     4.0.1-2+squeeze1
Xen Qemu Device Model virtual machine hardware emulator
ii  xen-tools                           4.2-1
Tools to manage Xen virtual servers
ii  xen-utils-4.0                       4.0.1-4
XEN administrative tools
ii  xen-utils-common                    4.0.0-1
XEN administrative tools - common files
ii  xenstore-utils                      4.0.1-4
Xenstore utilities for Xen



Reply to: