bugGNU GRUB - Bugs: bug #33194, Grub-probe fails for LVM volume...

 
 

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

bug #33194: Grub-probe fails for LVM volume groups which contain a mirrored LV

Submitter:  Pete Chown <pchown>
Submitted:  Sun 01 May 2011 07:17:14 PM UTC
   
 
Category:  Installation Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  other
Release:  Reproducibility:  Every Time
Planned Release:  None

Mon 02 May 2011 09:18:45 AM UTC, comment #1: 

This was fixed in 1.99~rc2

Vladimir Serbinenko <phcoder>
Group administrator
Sun 01 May 2011 07:17:14 PM UTC, original submission:  

With LVM it is possible to create logical volumes which are mirrored across a number of the physical volumes in the volume group.  If a volume group contains one or more of these volumes, grub-probe generally fails.

To avoid any confusion, I am talking about using the mirroring feature which is built into LVM (lvcreate -m1 etc.).  I'm not talking about the /dev/mdX type of mirroring.

When grub-probe looks at a volume group containing a mirror set, it attempts to parse the configuration by calling grub_lvm_scan_device.  This function looks for a line in the configuration information for each logical volume that matches "stripes = [" (grub-core/disk/lvm.c line 608).

If the volume is a mirror set, it doesn't contain a list of stripes.  Instead it contains a list of pointers to other logical volumes.  (One of those volumes is the mirror log, and the others represent the redundant copies of the data.)  As a result, the call on line 608 doesn't match where it should.  Instead of matching somewhere in the current logical volume, it matches in the first subsequent volume which is not a mirror set.

As a result, grub-probe skips a number of LVs, and then mixes two volumes' configuration information together.  Usually this causes an error but I think it could also cause grub-probe to return wrong information.

I am using Grub from Ubuntu Natty, grub2_1.99~rc1-13ubuntu3.  I'm also running Natty amd64.  This problem exists with the desktop and server builds.  I haven't tested the 32-bit builds but based on the above, it seems likely that they would suffer from the problem too.

I hope this is helpful and please ask if you need any more information.

Pete Chown <pchown>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-05-02 phcoder StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code