[Bug 617725] [NEW] post installation handling of raid devices on boot
Trenton D. Adams
617725 at bugs.launchpad.net
Sat Aug 14 06:52:06 UTC 2010
Public bug reported:
Binary package hint: initramfs-tools
I added raid to my system after installation. /etc/mdadm/mdadm.conf
was not updated to reflect my raid devices, and the default
configuration is not detecting my raid devices, for whatever reason. As
a result, I get an error during boot, saying "ALERT! /dev/mapper/sys-
ubuntu does not exist. Dropping to a shell."
At that point, I do the following...
mdadm --assemble /dev/md0 /dev/sda3 /dev/sdb3
mdadm --assemble /dev/md1 /dev/sda5 /dev/sdb5
Then I logout of the shell, and the system boots normally.
After poking around in /usr/share/initramfs-tools, I found the mdadm hook copies /etc/mdadm/mdadm.conf verbatim. So, I then did this...
mdadm --detail --scan > /etc/mdadm/mdadm.conf
update-initramfs -ck all
My system now boots normally.
Now, I suggest that the following be added to /etc/initramfs-tools/conf.d/mdadm
# GENERATE_CONFIG
# Do you want to generate on /etc/mdadm/mdadm.conf file based on your
# currently running raid arrays?
#
# This is REQUIRED if you did not setup your software raid during
# installation. e.g. You obtained a new drive some time after
# ubuntu installation, and
# decided to raid your system.
#
# essentially we run mdadm --detail --scan > /etc/mdadm/mdadm.conf
GENERATE_CONFIG=true
I then suggest that /usr/share/initramfs-tools/hooks/mdadm be updated to run...
mdadm --detail --scan > /etc/mdadm/mdadm.conf if GENERATE_CONFIG=true.
Any thoughts? Or was there an easier way for me to have my system boot
normally?
I'm using 10.04, which I assume was automatically included in the bug
report.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: initramfs-tools 0.92bubuntu78
ProcVersionSignature: Ubuntu 2.6.32-24.39-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-generic x86_64
Architecture: amd64
Date: Sat Aug 14 00:43:28 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
PackageArchitecture: all
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, no user)
LANG=en_CA.UTF-8
SourcePackage: initramfs-tools
** Affects: initramfs-tools (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug lucid
--
post installation handling of raid devices on boot
https://bugs.launchpad.net/bugs/617725
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to initramfs-tools in ubuntu.
More information about the kernel-bugs
mailing list