All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Priebe - Profihost AG <s.priebe@profihost.ag>
To: linux-raid@vger.kernel.org
Subject: grub2/grub-pc install not possible on mdadm
Date: Tue, 28 Feb 2012 10:10:41 +0100	[thread overview]
Message-ID: <4F4C9A11.9060302@profihost.ag> (raw)

Hi list,

i've configured a raid1 and i'm trying to install grub on it. But it
doesn't work.

~# grub-mkdevicemap -n
~# cat /boot/grub/device.map
(hd0)   /dev/disk/by-id/ata-INTEL_SSDSA2CW160G3_CVPR14530C6J160DGN
(hd1)   /dev/disk/by-id/ata-INTEL_SSDSA2CW160G3_CVPR145101F9160DGN

~# grub-install /dev/md127
error: found two disks with the index 0 for RAID md/raidone.
error: superfluous RAID member (2 found).
error: found two disks with the index 0 for RAID md/raidone.
error: superfluous RAID member (2 found).
error: found two disks with the index 0 for RAID md/raidone.
error: superfluous RAID member (2 found).
error: found two disks with the index 0 for RAID md/raidone.
error: superfluous RAID member (2 found).
error: found two disks with the index 0 for RAID md/raidone.
error: superfluous RAID member (2 found).
/usr/sbin/grub-install: line 661: 20158 Segmentation fault
"$grub_setup" ${allow_floppy} ${setup_verbose} ${setup_force}
--directory="${grubdir}" --device-map="${device_map}" "${install_device}"

When i then add /dev/md127 to my device.map i got this:

~# grub-install /dev/md127
error: found two disks with the index 0 for RAID md/raidone.
error: superfluous RAID member (2 found).
error: found two disks with the index 0 for RAID md/raidone.
error: superfluous RAID member (2 found).
error: found two disks with the index 0 for RAID md/raidone.
error: superfluous RAID member (2 found).
error: found two disks with the index 0 for RAID md/raidone.
error: superfluous RAID member (2 found).
error: found two disks with the index 0 for RAID md/raidone.
error: superfluous RAID member (2 found).
error: found two disks with the index 0 for RAID md/raidone.
error: superfluous RAID member (2 found).
Installation finished. No error reported.

But the device still does not boot. Installing grub to sda / sdb does
not work either as they do not contain any partition table. What's wrong
here?

Greets
Stefan

Raid details:
~# parted
Model: Linux Software RAID Array (md)
Disk /dev/md127: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system     Name       Flags
 1      1049kB  2097kB  1049kB                  GRUB_BOOT  bios_grub
 2      2097kB  99,6MB  97,5MB  ext2            BOOT
 3      99,6MB  157GB   157GB   xfs             ROOT
 4      157GB   160GB   3056MB  linux-swap(v1)  SWAP

~# mdadm -E /dev/md127
/dev/md127:
   MBR Magic : aa55
Partition[0] :    312579615 sectors at            1 (type ee)

~# mdadm -D /dev/md127
/dev/md127:
        Version : 1.2
  Creation Time : Tue Feb 28 09:49:58 2012
     Raid Level : raid1
     Array Size : 156289808 (149.05 GiB 160.04 GB)
  Used Dev Size : 156289808 (149.05 GiB 160.04 GB)
   Raid Devices : 2
  Total Devices : 2
    Persistence : Superblock is persistent

    Update Time : Tue Feb 28 10:01:11 2012
          State : active, resyncing
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

 Rebuild Status : 56% complete

           Name : systembootimage:raidone  (local to host systembootimage)
           UUID : b018eac7:1a44871a:c37f9dca:80e55a6e
         Events : 23

    Number   Major   Minor   RaidDevice State
       0       8        0        0      active sync   /dev/sda
       1       8       16        1      active sync   /dev/sdb


             reply	other threads:[~2012-02-28  9:10 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-28  9:10 Stefan Priebe - Profihost AG [this message]
2012-03-01 10:10 ` grub2/grub-pc install not possible on mdadm Jes Sorensen
2012-03-01 10:25   ` Stefan Priebe - Profihost AG
2012-03-01 10:38     ` Jes Sorensen
2012-03-02  8:44       ` Stefan Priebe - Profihost AG
2012-03-02  9:06         ` Lars Täuber
2012-03-02  9:11           ` Stefan Priebe - Profihost AG
2012-03-02  9:24             ` John Robinson
2012-03-02  9:33               ` Stefan Priebe - Profihost AG
2012-03-02 11:14                 ` John Robinson
2012-03-02 13:15                   ` Stefan Priebe - Profihost AG
2012-03-02 13:45                     ` John Robinson
2012-03-02 15:32                     ` Lars Täuber
2012-03-05  7:50                       ` Stefan Priebe - Profihost AG
2012-03-05  9:38                         ` John Robinson
2012-03-05 10:14                           ` Lars Täuber
2012-03-05 11:31                             ` John Robinson
2012-03-05 11:38                               ` Lars Täuber
2012-03-05 12:34                                 ` John Robinson
2012-03-02  9:14           ` Lars Täuber
2012-03-02  9:15           ` Lars Täuber
2012-03-02 10:56         ` Jes Sorensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F4C9A11.9060302@profihost.ag \
    --to=s.priebe@profihost.ag \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.