bugGNU GRUB - Bugs: bug #33496, GRUB should support mdadm array...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #33496: GRUB should support mdadm array with 1.2 metadata

Submitted by:  Jean-Baptiste Onofré <jbonofre>
Submitted on:  Wed 08 Jun 2011 12:31:19 PM UTC  
 
Category: NoneSeverity: Major
Priority: 5 - NormalItem Group: Feature Request
Status: InvalidPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: otherReproducibility: Every Time
Planned Release: None

Wed 08 Jun 2011 01:44:40 PM UTC, comment #3:

You need to install to sdX, not mdX. Also be sure to RAID partitions and not entire disks.

Vladimir Serbinenko <phcoder>
Project Administrator
Wed 08 Jun 2011 01:24:06 PM UTC, comment #2:

Thanks for the quick update.

My only concern is when I try:

# grub-probe --target=device /boot/grub/locale/
/dev/md0
# grub-probe --target=abstraction --device /dev/md0
grub-probe: error: no such disk.

The grub-mkdevicemap only generates:

# cat /boot/grub/device.map
(hd0) /dev/disk/by-id/ata-WDC_WD800JD-75LSA0_WD-WMAM99867192
(hd1) /dev/disk/by-id/ata-HDS728080PLA380_PFDBU0SYRPNHDX

(md0) is not defined in the device.map (which is normal).

Should I perform grub-install --modules="raid mdraid1x" to "force" the mdraid1x installation ?

Thanks
Regards
JB

Jean-Baptiste Onofré <jbonofre>
Wed 08 Jun 2011 01:09:47 PM UTC, comment #1:

If you have "mdraid" modulke at all it means that you have an older version (not 1.99~rc1). Possibly you forgot to run grub-install. In 1.99~rc1 there are 2 modules: mdraid09 and mdraid1x with self-explaining names

Vladimir Serbinenko <phcoder>
Project Administrator
Wed 08 Jun 2011 12:31:19 PM UTC, original submission:

I use GRUB 1.99~rc1-13 (tested in Debian Testing and Fedora 14).

Currently, if I create a mdadm array with 0.90 metadata containing the /boot:

mdadm --create /dev/md0 --level=raid10 --raid-devices=2 --metadata=0.90 /dev/sda1 /dev/sdb1
mkfs.ext4 /dev/md0

and load raid and mdraid modules in GRUB, it works without problem.
In GRUB command line, "ls" command shows me (md0).

But, if I create my array with 1.2 metadata:

mdadm --create /dev/md0 --level=raid10 --raid-devices=2 --metadata=1.2 /dev/sda1 /dev/sdb1

In that case, grub "ls" command doesn't show the (md0).

It looks that GRUB doesn't support mdadm 1.2 metadata.

Jean-Baptiste Onofré <jbonofre>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by phcoder (Posted a comment)
  • -unavailable- added by jbonofre (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 08 Jun 2011 01:09:47 PM UTCphcoderStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1