Bug#668920: grub-pc: grub 1.99-21 fails to detect mdraid partitions

2013-03-02 Thread Michael Gilbert
control: severity -1 important

Downgrading the severity since those facing this problem incorrectly
configured grub for their setup.

Best wishes,
Mike


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#668920: grub-pc: grub 1.99-21 fails to detect mdraid partitions

2012-06-30 Thread Adam R. Skutt
Package: grub-pc
Version: 1.99-22.1
Followup-For: Bug #668920

Transitioned to grub2 from LILO and saw this problem as well.  After booting 
rescue mode, fixing up prefix and root, and loading the raid modules, grub 
still doesn't see my md device at all.  I tried using grub-install to include 
the RAID modules early, but that did not seem to help either.  Going back to 
LILO for now.

Thanks,
Adam

-- Package-specific info:

*** BEGIN /proc/mounts
/dev/disk/by-uuid/8aff5614-49c4-4f3b-b35e-4d2b12309731 / ext3 
rw,seclabel,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=ordered,usrquota,grpquota
 0 0
*** END /proc/mounts

*** BEGIN /boot/grub/device.map
(hd0)   /dev/disk/by-id/ata-ST3160815AS_6RA9KQRJ
(hd1)   /dev/disk/by-id/ata-ST3160815AS_6RA9JHRC
*** END /boot/grub/device.map

*** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default=0
if [ ${prev_saved_entry} ]; then
  set saved_entry=${prev_saved_entry}
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod raid
insmod mdraid09
insmod mdraid1x
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(mduuid/95d2cd1a38d1ba55c216e01b73103c90)'
search --no-floppy --fs-uuid --set=root 8aff5614-49c4-4f3b-b35e-4d2b12309731
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
  insmod raid
  insmod mdraid09
  insmod part_msdos
  insmod part_msdos
  insmod ext2
  set root='(mduuid/95d2cd1a38d1ba55c216e01b73103c90)'
  search --no-floppy --fs-uuid --set=root 8aff5614-49c4-4f3b-b35e-4d2b12309731
  set locale_dir=($root)/boot/grub/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 3.2.0-3-686-pae' --class debian --class 
gnu-linux --class gnu --class os {
insmod gzio
insmod raid
insmod mdraid09
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(mduuid/95d2cd1a38d1ba55c216e01b73103c90)'
search --no-floppy --fs-uuid --set=root 
8aff5614-49c4-4f3b-b35e-4d2b12309731
echo'Loading Linux 3.2.0-3-686-pae ...'
linux   /boot/vmlinuz-3.2.0-3-686-pae 
root=UUID=8aff5614-49c4-4f3b-b35e-4d2b12309731 ro security=selinux quiet
echo'Loading initial ramdisk ...'
initrd  /boot/initrd.img-3.2.0-3-686-pae
}
menuentry 'Debian GNU/Linux, with Linux 3.2.0-3-686-pae (recovery mode)' 
--class debian --class gnu-linux --class gnu --class os {
insmod gzio
insmod raid
insmod mdraid09
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(mduuid/95d2cd1a38d1ba55c216e01b73103c90)'
search --no-floppy --fs-uuid --set=root 
8aff5614-49c4-4f3b-b35e-4d2b12309731
echo'Loading Linux 3.2.0-3-686-pae ...'
linux   /boot/vmlinuz-3.2.0-3-686-pae 
root=UUID=8aff5614-49c4-4f3b-b35e-4d2b12309731 ro single security=selinux
echo'Loading initial ramdisk ...'
initrd  /boot/initrd.img-3.2.0-3-686-pae
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry Debian GNU/Linux, with Linux 3.2.0-3-686-pae (on /dev/sda1) --class 
gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 
8aff5614-49c4-4f3b-b35e-4d2b12309731
linux /boot/vmlinuz-3.2.0-3-686-pae 
root=UUID=8aff5614-49c4-4f3b-b35e-4d2b12309731 ro security=selinux quiet
initrd /boot/initrd.img-3.2.0-3-686-pae
}
menuentry Debian GNU/Linux, with Linux 3.2.0-3-686-pae (recovery mode) (on 
/dev/sda1) --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 
8aff5614-49c4-4f3b-b35e-4d2b12309731
linux /boot/vmlinuz-3.2.0-3-686-pae 
root=UUID=8aff5614-49c4-4f3b-b35e-4d2b12309731 ro single security=selinux
initrd /boot/initrd.img-3.2.0-3-686-pae
}
menuentry Debian GNU/Linux, with Linux 3.2.0-3-686-pae (on /dev/sdb1) --class 
gnu-linux --class gnu --class os {
insmod part_msdos

Bug#668920: grub-pc: grub 1.99-21 fails to detect mdraid partitions

2012-05-05 Thread Luís Picciochi Oliveira
Hi,

My setup is somewhat similar as my root partition is also on a RAID1
array with two disks. GRUB is installed on both of them.
This is just to note that I did not reproduce the reported problem
when I recently upgraded from 1.99-17 to 1.99-21. The upgrade went on
swiftly as always.


Best regards,
Luís Picciochi

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]  1.5.42
ii  grub-common1.99-21
ii  grub-pc-bin1.99-21
ii  grub2-common   1.99-21
ii  ucf3.0025+nmu3

grub-pc recommends no packages.

grub-pc suggests no packages.

-- debconf information:
  grub2/kfreebsd_cmdline:
* grub2/device_map_regenerated:
* grub2/linux_cmdline:
  grub-pc/install_devices_empty: false
  grub-pc/install_devices_failed: false
* grub-pc/chainload_from_menu.lst: true
  grub-pc/kopt_extracted: true
* grub-pc/install_devices:
/dev/disk/by-id/ata-WDC_WD10EARS-00MVWB0_WD-WCAZAA070307
  grub-pc/postrm_purge_boot_grub: false
  grub-pc/install_devices_failed_upgrade: true
  grub-pc/disk_description:
  grub2/kfreebsd_cmdline_default: quiet
  grub-pc/partition_description:
* grub-pc/install_devices_disks_changed:
/dev/disk/by-id/ata-WDC_WD10EARS-00MVWB0_WD-WCAZAA070307
* grub2/linux_cmdline_default: quiet
  grub-pc/mixed_legacy_and_grub2: true



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#668920: grub-pc: grub 1.99-21 fails to detect mdraid partitions

2012-04-19 Thread Arne Goetje
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 04/16/2012 03:56 PM, Colin Watson wrote:
 On Mon, Apr 16, 2012 at 12:17:59AM +0800, Arne Goetje wrote:
 Upgrading from 1.99-17 to 1.99-21 on wheezy today renders the
 system unbootable. Grub cannot detect any mdraid partition and is
 therefor unable to load the kernel.
 
 Does it emit any error messages that might be useful to help us
 track this down?

Error message for each HD is error: no such partition.
Since I have 4 HDs, the message appears 4 times.

 Downgrading to 1.99-17 solves the problem.
 [...]
 *** BEGIN /proc/mdstat Personalities :
 [raid1] md1 : active raid1 sdc[0] sdd[1] 488386496 blocks [2/2]
 [UU] md127 : active raid1 sda[0] sdb[1] 488386496 blocks [2/2]
 [UU] unused devices: none *** END
 /proc/mdstat
 [...]
 * grub-pc/install_devices: /dev/sdc
 
 This jumped out at me.  Are you quite sure that your BIOS is
 actually booting from /dev/sdc?  It's possible that it's attempting
 to boot from an old copy of the GRUB core image installed to a
 different disk, which then gets confused by the newer modules in
 /boot/grub/.  In this theory, downgrading to 1.99-17 would help
 because perhaps that core image is ABI-compatible with those
 modules; the support for non-512-byte sectors in 1.99-19 was
 probably a core/modules ABI break so this is plausible enough.
 
 My standard advice is to install GRUB to all fixed disks 
 ('dpkg-reconfigure grub-pc') unless you have a good reason not to.

I remember I installed grub on all disks when I set up the machine.
However, 'dpkg-reconfigure grub-pc' doesn't give me any option to
configure that any more. I tried a manual 'grub-setup /dev/md127 ;
grub-setup /dev/md1' after installing the new version, but it didn't
help. grub-setup doesn't let me install on /dev/sd*, since the disks
are grouped into raid arrays now.

The boot device is /dev/md127 and the root partition /dev/md127p1.
(Itʼs named md127, because when I installed squeeze on the machine, I
chose the name md0 for the first raid array, not knowing that it would
secretly rename it to md127, since it somehow doesn't like the
numbering start from 0.)

Attached is my grub.cfg

HTH

Cheers
Arne
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCAAGBQJPj7qnAAoJENiwmJtstTzsdEsQAJMyrigq08JBYf4YJgHUQK4o
xV2qQrFI6Uk/3nfwRFx3G4287c+BTNKPusV7wtS/PaNPLntXgNoy3TGu0LQioKiu
Q3nsqUJjCiNT7CbxyVpBeEdH+msT4qgP67V9pbVqwJLVHETDkecxWk67tcAHaETi
NNLZWDxqx4afHuBfX+7WvVPuuLwFWqKn6AZYp7S3xCZk0j3V9r9wuwO69maW5iuA
Lxh34LExEvD6+wzUpupDZdxo7Q3Diz1Z1e/w2t4ADRwhAoTYJPLxQx6n4K7nIk6R
79fXa8Alkb+8fzop8NQkj+b79Xp2Tqb/6tfjBQbFXr4Cr/Oayk+QLuQt1MEnY8qm
nQtyY76FOPSiasWRT2smM7syif4vZBSCJVG6XCO2+geva40kjeq/iD/Qv3d7hsfS
wmM7nnvGGS4jPwDsl5mpKpUjzZmb8f1rBVUWcjMEpcispX1btrrpGTJDNCVOIWui
HgTRo0SHwQSQORMsOUJoQFuV5sA5giWzqEUV7bDeFKLhS+g6XifoEQocHnLT9qf0
yFbgOxcYStYDzjktM+MzmqScoGVxRvwmddWQQ/gEeTt8fxhANV+Am9XL47WMhukz
zZvZYwEkEckzw5srEYAx8lFbcLViPOGrffw4/46Efp34Wftlt/IdoVnigCImQhKr
j8ldZU6tWaUdpmjKvGFU
=bB4z
-END PGP SIGNATURE-
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default=0
if [ ${prev_saved_entry} ]; then
  set saved_entry=${prev_saved_entry}
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod raid
insmod mdraid09
insmod part_msdos
insmod ext2
set root='(mduuid/a64afb126a34e01de368bf24bd0fce41,1)'
search --no-floppy --fs-uuid --set=root fe2d67a4-6b34-4abb-bf1d-9fcb39b65b30
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
  insmod raid
  insmod mdraid09
  insmod part_msdos
  insmod ext2
  set root='(mduuid/a64afb126a34e01de368bf24bd0fce41,1)'
  search --no-floppy --fs-uuid --set=root fe2d67a4-6b34-4abb-bf1d-9fcb39b65b30
  set locale_dir=($root)/boot/grub/locale
  set lang=C
  insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod raid
insmod mdraid09
insmod part_msdos
insmod ext2
set root='(mduuid/a64afb126a34e01de368bf24bd0fce41,1)'
search --no-floppy --fs-uuid --set=root fe2d67a4-6b34-4abb-bf1d-9fcb39b65b30
insmod png
if background_image /usr/share/images/desktop-base/spacefun-grub.png; then
  set color_normal=light-gray/black
  set color_highlight=white/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 3.2.0-2-686-pae' --class 

Bug#668920: grub-pc: grub 1.99-21 fails to detect mdraid, partitions

2012-04-18 Thread Alex Normand

Hi,

I had the exact same problem as Arne,

I ran:

dpkg-reconfigure grub-pc

and followed Colin's advice  by installing grub on all disks.

This solved the problem perfectly ;).

Cheers,

Alex Normand



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#668920: grub-pc: grub 1.99-21 fails to detect mdraid partitions

2012-04-16 Thread Colin Watson
On Mon, Apr 16, 2012 at 12:17:59AM +0800, Arne Goetje wrote:
 Upgrading from 1.99-17 to 1.99-21 on wheezy today renders the system
 unbootable.
 Grub cannot detect any mdraid partition and is therefor unable to load
 the kernel.

Does it emit any error messages that might be useful to help us track
this down?

 Downgrading to 1.99-17 solves the problem.
[...]
 *** BEGIN /proc/mdstat
 Personalities : [raid1] md1 : active raid1 sdc[0] sdd[1]
   488386496 blocks [2/2] [UU]
   md127 : active raid1 sda[0] sdb[1]
   488386496 blocks [2/2] [UU]
   unused devices: none
 *** END /proc/mdstat
[...]
 * grub-pc/install_devices: /dev/sdc

This jumped out at me.  Are you quite sure that your BIOS is actually
booting from /dev/sdc?  It's possible that it's attempting to boot from
an old copy of the GRUB core image installed to a different disk, which
then gets confused by the newer modules in /boot/grub/.  In this theory,
downgrading to 1.99-17 would help because perhaps that core image is
ABI-compatible with those modules; the support for non-512-byte sectors
in 1.99-19 was probably a core/modules ABI break so this is plausible
enough.

My standard advice is to install GRUB to all fixed disks
('dpkg-reconfigure grub-pc') unless you have a good reason not to.

Cheers,

-- 
Colin Watson   [cjwat...@debian.org]



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#668920: grub-pc: grub 1.99-21 fails to detect mdraid partitions

2012-04-15 Thread Arne Goetje
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Package: grub-pc
Version: 1.99-21
Severity: critical
Justification: breaks the whole system

Upgrading from 1.99-17 to 1.99-21 on wheezy today renders the system
unbootable.
Grub cannot detect any mdraid partition and is therefor unable to load
the kernel.
Downgrading to 1.99-17 solves the problem.

- -- Package-specific info:

*** BEGIN /proc/mounts
/dev/md127p1 / ext4
rw,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/md127p3 /home ext4
rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/md127p2 /var ext4
rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/md1p2 /home/arne/build ext4
rw,nosuid,nodev,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/md1p5 /mnt/mail ext4
rw,nosuid,nodev,noexec,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/md1p6 /home/arne/images ext4
rw,nosuid,nodev,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/sr0 /media/Debian\040squeeze\04020110324-08:07 iso9660
ro,nosuid,nodev,relatime,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500
0 0
*** END /proc/mounts

*** BEGIN /boot/grub/device.map
*** END /boot/grub/device.map

*** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default=0
if [ ${prev_saved_entry} ]; then
  set saved_entry=${prev_saved_entry}
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod raid
insmod mdraid09
insmod part_msdos
insmod ext2
set root='(mduuid/a64afb126a34e01de368bf24bd0fce41,1)'
search --no-floppy --fs-uuid --set=root
fe2d67a4-6b34-4abb-bf1d-9fcb39b65b30
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
  insmod raid
  insmod mdraid09
  insmod part_msdos
  insmod ext2
  set root='(mduuid/a64afb126a34e01de368bf24bd0fce41,1)'
  search --no-floppy --fs-uuid --set=root
fe2d67a4-6b34-4abb-bf1d-9fcb39b65b30
  set locale_dir=($root)/boot/grub/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod raid
insmod mdraid09
insmod part_msdos
insmod ext2
set root='(mduuid/a64afb126a34e01de368bf24bd0fce41,1)'
search --no-floppy --fs-uuid --set=root
fe2d67a4-6b34-4abb-bf1d-9fcb39b65b30
insmod png
if background_image /usr/share/images/desktop-base/spacefun-grub.png; then
  set color_normal=light-gray/black
  set color_highlight=white/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 3.2.0-2-686-pae' --class
debian --class gnu-linux --class gnu --class os {
insmod gzio
insmod raid
insmod mdraid09
insmod part_msdos
insmod ext2
set root='(mduuid/a64afb126a34e01de368bf24bd0fce41,1)'
search --no-floppy --fs-uuid --set=root
fe2d67a4-6b34-4abb-bf1d-9fcb39b65b30
echo'Loading Linux 3.2.0-2-686-pae ...'
linux   /boot/vmlinuz-3.2.0-2-686-pae root=/dev/md127p1 ro  quiet
echo'Loading initial ramdisk ...'
initrd  /boot/initrd.img-3.2.0-2-686-pae
}
menuentry 'Debian GNU/Linux, with Linux 3.2.0-2-686-pae (recovery
mode)' --class debian --class gnu-linux --class gnu --class os {
insmod gzio
insmod raid
insmod mdraid09
insmod part_msdos
insmod ext2
set root='(mduuid/a64afb126a34e01de368bf24bd0fce41,1)'
search --no-floppy --fs-uuid --set=root
fe2d67a4-6b34-4abb-bf1d-9fcb39b65b30
echo'Loading Linux 3.2.0-2-686-pae ...'
linux   /boot/vmlinuz-3.2.0-2-686-pae root=/dev/md127p1 ro single
echo'Loading initial ramdisk ...'
initrd  /boot/initrd.img-3.2.0-2-686-pae
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply
type the
# menu entries you want to add after this comment.  Be careful not to
change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
*** END /boot/grub/grub.cfg

*** BEGIN /proc/mdstat