Bug#259238: marked as done (Patches for / on RAID)
Debian Bug Tracking System
owner@bugs.debian.org
Tue, 20 Jul 2004 17:18:06 -0700
Your message dated Tue, 20 Jul 2004 20:02:19 -0400
with message-id <E1Bn4Yt-0000vV-00@newraff.debian.org>
and subject line Bug#259238: fixed in grub 0.95+cvs20040624-5
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 31 May 2004 16:38:48 +0000
>From tbm@cyrius.com Mon May 31 09:38:48 2004
Return-path: <tbm@cyrius.com>
Received: from sorrow.cyrius.com [65.19.161.204]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1BUpoG-00037I-00; Mon, 31 May 2004 09:38:48 -0700
Received: by sorrow.cyrius.com (Postfix, from userid 10)
id E6DBB64D3B; Mon, 31 May 2004 16:38:45 +0000 (UTC)
Received: by deprecation.cyrius.com (Postfix, from userid 1000)
id 015B9101DB; Mon, 31 May 2004 13:37:44 -0300 (BRT)
Date: Mon, 31 May 2004 13:37:44 -0300
From: Martin Michlmayr <tbm@cyrius.com>
To: submit@bugs.debian.org
Subject: Problems/workarounds for install to root on LVM on RAID
Message-ID: <20040531163744.GA7163@deprecation.cyrius.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.6i
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-7.0 required=4.0 tests=BAYES_01,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level:
Package: lvmcfg
----- Forwarded message from Charles Steinkuehler <charles@steinkuehler.net> -----
From: Charles Steinkuehler <charles@steinkuehler.net>
Subject: Problems/workarounds for install to root on LVM on RAID
Date: Thu, 27 May 2004 11:02:17 -0500
To: debian-boot@lists.debian.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007
X-Accept-Language: en-us, en
I'm trying to install testing onto an x86 box with root on LVM on RAID1,
and I ran into several issues with the latest daily image:
http://cdimage.debian.org/pub/cdimage-testing/sarge_d-i/i386/20040526/sarge-i386-netinst.iso
First, the problems:
--------------------
1) partman won't let you build an LVM on top of a RAID device
2) Kernel install portion of base install fails due to mkinitrd failure
2a) LVM tools missing
2b) Raidtools (actually mdadm) missing
2c) LVM entries in /dev missing on target
2d) initrd defaults to LVM1 instead of LVM2
3) Grub install fails when /boot is on a RAID1 device
Workarounds:
------------
1) partman won't let you build an LVM on top of a RAID device
This is the easiest to fix...just switch over to the console and
manually run pvcreate, etc. to build the LVM VG(s) & LV(s). Once
created, the logical volums are properly recognized by partman, allowing
them to be formatted, mount points to be set, etc.
------------
2) Kernel install portion of base install fails due to mkinitrd failure
2a) LVM tools missing
2b) Raidtools (actually mdadm) missing
Prior to installing the base system, switch to a console and edit
/usr/lib/debootstrap/scripts/sarge, adding the following modules to the
base="..." line near the top of the file:
LVM Packages: binutils libdevmapper1.00 lvm-common lvm2
RAID Packages: mdadm
------------
2c) LVM entries in /dev missing
Switch to a console and copy the entries from the install system to the
target system:
cp -aR /dev/<vg> /target/dev/
cp -aR /dev/mapper/<vg>* /target/dev/mapper/
------------
2d) initrd defaults to LVM1 instead of LVM2
This is a nasty one, and oddly confusing. If both LVM2 and LVM1 are
present (as determined by the existance of appropriate kernel modules),
LVM1 is selected. This seems odd, since LVM2 can talk to LVM1 formatted
volumes, but not the other way around. Anyway, to fix this I did the
following:
- Add initrd (plus dash and cramfsprogs dependencies) to base= line in
sarge script (see 2a & 2b, above) prior to installing base system
- chroot to target system
- Prior to installing kernel, edit /etc/mkinitrd/mkinitrd.conf and set
root=/dev/hda1 (a dummy entry that allows mkinitrd to complete
successfully, letting the install continue)
- Install kernel 2.4.26-1-386
- Move (or delete) /lib/modules/2.4.16-1-386/kernel/drivers/md/lvm-mod.o
so mkinitrd won't find it and default to LVM1
- mount -t proc proc /proc
- verify /etc/mkinitrd/mkinitrd.conf now lists root=probe (kernel
install apparently causes config mods to be lost)
- run mkinitrd to replace currently broken root=/dev/hda1 image:
mkinitrd -o /boot/initrd.img-2.4.26-1-386 2.4.26-1-386
- umount /proc
------------
3) Grub install fails when /boot is on a RAID1 device
Apparently, grub is trying to get 'smarter' about devices, but in the
process is breaking functionality that used to work. With /boot
installed on a raid1 device (md0), grub-install and update-grub both
fail dismally, reporting that /dev/md0 doesn't exist as a BIOS device
(like that's a news flash!).
The stupid hack to get this to work is:
- Install grub from the debian installer menu (it will fail)
- Switch to a console and edit /boot/grub/device.map, replacing the
(hd0) /dev/??? entry with (hd0) /dev/md0
- Re-run install grub from the debian installer menu (it will still
fail, but get farther this time)
- Run update-grub from a console to create /boot/grub/menu.lst
- run grub and install grub to both HDD's:
root (hd0,0)
setup (hd0)
setup (hd1)
- Continue w/o boot loader from the debian installer menu (you manually
installed grub)
It's worth noting that grub from stable has no problems with /boot on a
raid device (once installed). I can see grub-install perhaps failing
with /boot on a md device, but why in the world does update-grub even
care where boot is?!? All it needs to do is edit menu.lst...
NOTE: Your device numbers might be different. Also, it's typically OK
to install grub with root set to (hd0,0) on both hd0 and hd1, since if
hd0 fails, hd1 will usually become hd0 with most BIOS's.
------------
Reboot and cross your fingers!!!!
I can provide additional information, if needed or desired.
--
Charles Steinkuehler
charles@steinkuehler.net
--
To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
----- End forwarded message -----
--
Martin Michlmayr
tbm@cyrius.com
---------------------------------------
Received: (at 259238-close) by bugs.debian.org; 21 Jul 2004 00:09:01 +0000
>From katie@ftp-master.debian.org Tue Jul 20 17:09:01 2004
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1Bn4fN-00089h-00; Tue, 20 Jul 2004 17:09:01 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
id 1Bn4Yt-0000vV-00; Tue, 20 Jul 2004 20:02:19 -0400
From: Robert Millan <rmh@debian.org>
To: 259238-close@bugs.debian.org
X-Katie: $Revision: 1.51 $
Subject: Bug#259238: fixed in grub 0.95+cvs20040624-5
Message-Id: <E1Bn4Yt-0000vV-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Tue, 20 Jul 2004 20:02:19 -0400
Delivered-To: 259238-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER
autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level:
Source: grub
Source-Version: 0.95+cvs20040624-5
We believe that the bug you reported is fixed in the latest version of
grub, which is due to be installed in the Debian FTP archive:
grub-disk_0.95+cvs20040624-5_all.deb
to pool/main/g/grub/grub-disk_0.95+cvs20040624-5_all.deb
grub-doc_0.95+cvs20040624-5_all.deb
to pool/main/g/grub/grub-doc_0.95+cvs20040624-5_all.deb
grub_0.95+cvs20040624-5.diff.gz
to pool/main/g/grub/grub_0.95+cvs20040624-5.diff.gz
grub_0.95+cvs20040624-5.dsc
to pool/main/g/grub/grub_0.95+cvs20040624-5.dsc
grub_0.95+cvs20040624-5_i386.deb
to pool/main/g/grub/grub_0.95+cvs20040624-5_i386.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 259238@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Robert Millan <rmh@debian.org> (supplier of updated grub package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Wed, 21 Jul 2004 01:03:34 +0200
Source: grub
Binary: grub-disk grub grub-doc
Architecture: source i386 all
Version: 0.95+cvs20040624-5
Distribution: unstable
Urgency: low
Maintainer: Grub Maintainers <pkg-grub-devel@lists.alioth.debian.org>
Changed-By: Robert Millan <rmh@debian.org>
Description:
grub - GRand Unified Bootloader
grub-disk - GRUB bootable disk image
grub-doc - Documentation for GRand Unified Bootloader
Closes: 259238
Changes:
grub (0.95+cvs20040624-5) unstable; urgency=low
.
* Fix update-grub and grub-install for d-i installs on RAID hardware.
Thanks Charles Steinkuehler. (Closes: #259238)
- patches/raid.diff: New. Fix util/grub-install.in.
- update-grub
Files:
e2ff4d5749b4793c2cd9cab7e1ad03b5 831 admin optional grub_0.95+cvs20040624-5.dsc
7be19fe7b55060eb2e641c2299f3d1f6 50268 admin optional grub_0.95+cvs20040624-5.diff.gz
f8af284bb228838a503d04a1239a149b 355920 admin optional grub_0.95+cvs20040624-5_i386.deb
9e3eb3998f2f4a00d12cb87dfec5e2c2 226096 admin optional grub-disk_0.95+cvs20040624-5_all.deb
fa934f13c6eee49abe417a7246cb7e4e 258858 doc optional grub-doc_0.95+cvs20040624-5_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFA/a+EC19io6rUCv8RArasAJ0S6GHvTVWIVnOqJIdc7VsNQlstxACcDLkn
aW8PN6KQAEegq0EhrBS11sw=
=H50T
-----END PGP SIGNATURE-----