bugGNU GRUB - Bugs: bug #38406, GRUB assembles wrong disks for md...


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

bug #38406: GRUB assembles wrong disks for md RAID device

Submitted by:  Marc Warne (GigaTux) <gigatux>
Submitted on:  Mon 25 Feb 2013 11:25:32 AM UTC  
Category: BootingSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: Marc Warne
Open/Closed: OpenRelease: 
Release: 1.98Reproducibility: Every Time
Planned Release: 2.03+

Wed 02 Mar 2016 02:21:24 PM UTC, comment #1:

Fixing this is somewhat hairy. Postponing after release to avoid introducing worse bugs

Vladimir Serbinenko <phcoder>
Project Administrator
Mon 25 Feb 2013 11:25:32 AM UTC, original submission:


I haven't yet attempted to reproduce this as it occurred on a production system that I needed to get up as soon as I could, but when it was an issue, it was fully repeatable.


1. /boot stored on a four disk MD RAID-1 array.
2. Two disks had failed simultaneously.
3. Upon GRUB boot, GRUB was assembling the two failed disks (which comprised a valid but somewhat old filesystem) instead of the two more recently updated disks.

My best guess is that GRUB isn't taking account the relevant timestamps on the RAID members which should specify when they were last updated.

It should be possible to reproduce this by failing two md devices simultaneously and then getting GRUB to use it as its filesystem. I'm not sure which two would need to fail (e.g. does GRUB just use the devices with the lowest numbers?) but I think some simple checking of timestamps would be required.

Marc Warne (GigaTux) <gigatux>


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 gigatux (Submitted the item)
  • -unavailable- added by gigatux

    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 02 Mar 2016 02:21:24 PM UTCphcoderPlanned ReleaseNone=>2.03+
    Mon 25 Feb 2013 11:25:32 AM UTCgigatuxCarbon-Copy-=>Added -unavailable-

    Back to the top

    Powered by Savane 3.1-cleanup1