[Bug 941874] Re: (fakeraid) root device not activated during boot
path
patrick.harzheim at gmail.com
Wed May 2 19:49:28 UTC 2012
Just worked around the same problem that Adi Piracalabu described.
Installed Ubuntu 12.04 release Amd64 image on fakeraid raid5. With my
boot loader, root directory and swap all on a separate disc. Then my
home directory on my raid 5. Installation completed successfully.
Rebooting fails to mount my raid5 drive, I skip mounting the home
directory and I can't access my main account that has the home directory
on those discs. Logging in with a guest account and creating a separate
admin account with my main accounts passwords, permitted me to install
dmraid. With a reboot from that software state. The home directory on
the raid5 is mounted and my account that has the home directory in the
raid5 is accessible. That's where it works for me right now.
With some analysis, after a few re installations. I noticed that the
installation of 12.04 does not install dmraid at all? Basically if I
performed the installation and continued to try ubuntu before restarting
into it. Then mounted the disk I installed to. Dmraid does not appear to
be installed in the libs, binaries, initramfs...
While trying ubuntu 12.04 the raids are accessible, but when you install
12.04, it skips or fails the dmraid package and the rest of those
dependencies.
If this could be fixed; if the installer can successfully place the
dmraid package, if it installs on a system that has fakeraids; then I
think I'll finally be able to boot off of a fakeraid without a
workaround.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to multipath-tools in Ubuntu.
https://bugs.launchpad.net/bugs/941874
Title:
(fakeraid) root device not activated during boot
Status in “dmraid” package in Ubuntu:
Fix Released
Status in “multipath-tools” package in Ubuntu:
Fix Released
Bug description:
I have installed Precise Pangolin Alpha 2 to a fakeraid stripe, but
ubuntu fails to boot after install. When choosing recovery option, the
boot process times out waiting for root device and drops to busybox
shell. Running "dmraid -ay" and exiting busybox resumes boot and it
continues normally.
---
The problems are:
* There are no initramfs hooks for kpartx, so kpartx is not available during boot.
the following files are needed:
/sbin/kpartx
/lib/udev/kpartx_id
/lib/udev/dmsetup_env
/lib/udev/rules.d/95-kpartx.rules
* The hook for dmraid udev rules is wrong:
The script /usr/share/initramfs-tools/hooks/dmraid
tries to add:
/lib/udev/rules.d/85-dmraid.rules
but the existing file is called:
/lib/udev/rules.d/97-dmraid.rules
After fixing the above two issues, system boots normally.
* dmraid-activate is sometimes called with full device name
dmraid-activate expecte device name withouth "/dev/", e.g. "sda" not "/dev/sda". However the script
/usr/share/initramfs-tools/scripts/local-top/dmraid
calls dmraid-activate using the full device name and path.
* There might also be antoher bug on line 100 in dmraid-activate (in the awk script):
# Heximal to decimal conversion array
for (i = 0; i <= 9; i++) hex2dec[i] = i
hex2dec["a"] = 10; hex2dec["b"] = 11; hex2dec["c"] = 12
hex2dec["e"] = 13; hex2dec["d"] = 14; hex2dec["f"] = 15;
Element "e" and "d" appears to have been switched. I'm not entirely sure what the script is trying to do though, and that part of the script does not affect my system.
---
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: dmraid 1.0.0.rc16-4.1ubuntu6 [modified: sbin/dmraid-activate usr/share/initramfs-tools/scripts/local-top/dmraid]
ProcVersionSignature: Ubuntu 3.2.0-17.26-generic 3.2.6
Uname: Linux 3.2.0-17-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 1.93-0ubuntu2
Architecture: amd64
Date: Mon Feb 27 12:59:55 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120201.2)
ProcEnviron:
PATH=(custom, user)
LANG=sv_SE.UTF-8
SHELL=/bin/bash
SourcePackage: dmraid
UpgradeStatus: Upgraded to precise on 2012-02-21 (5 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dmraid/+bug/941874/+subscriptions
More information about the foundations-bugs
mailing list