grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grub RAID heuristics (how can we avoid "superfluous RAID member (2 f


From: Daniel Kahn Gillmor
Subject: Re: grub RAID heuristics (how can we avoid "superfluous RAID member (2 found)")
Date: Sun, 26 Feb 2012 22:29:12 -0500
User-agent: Notmuch/0.11.1 (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu)

On Sat, 25 Feb 2012 16:49:00 -0500, Daniel Kahn Gillmor <address@hidden> wrote:
> On Thu, 23 Feb 2012 06:43:23 +0100, Vladimir 'φ-coder/phcoder' Serbinenko 
> <address@hidden> wrote:
> > [dkg wrote:]
> > > Select the smallest known block device that can completely enclose the
> > > RAID member.  The larger block device(s) should not be considered to be
> > > exporting that RAID.

I just built the latest (r4008) bzr head, which i believe includes the
proposed changes, and installed it on a machine with two disks in RAID1:

0 address@hidden:/home/dkg/src/grub/grub# cat /proc/partitions 
major minor  #blocks  name

   8        0   19531250 sda
   8        1    6266913 sda1
   8        2   13256178 sda2
   8       16   13260240 sdb
   8       17   13258192 sdb1
   9        0   13256064 md0
 253        0    3145728 dm-0
0 address@hidden:/home/dkg/src/grub/grub# cat /proc/mdstat 
Personalities : [raid1] 
md0 : active raid1 sdb1[0] sda2[1]
      13256064 blocks [2/2] [UU]
      
unused devices: <none>
0 address@hidden:/home/dkg/src/grub/grub# pvs
  PV         VG        Fmt  Attr PSize  PFree
  /dev/md0   vg_trash0 lvm2 a--  12.64g 9.64g
0 address@hidden:/home/dkg/src/grub/grub# vgs
  VG        #PV #LV #SN Attr   VSize  VFree
  vg_trash0   1   1   0 wz--n- 12.64g 9.64g
0 address@hidden:/home/dkg/src/grub/grub# lvs
  LV   VG        Attr   LSize Origin Snap%  Move Log Copy%  Convert
  root vg_trash0 -wi-ao 3.00g                                      
0 address@hidden:/home/dkg/src/grub/grub# 


it boots correctly on this setup, yay!

booting to the grub command line, however, i do see some weirdness:

grub> ls
(lvm/vg_trash0-root) (hd0) (hd0,msdos2) (hd0,msdos1) (hd1) (hd1,msdos1)
(fd0) (lvm/vg_trash0-root)

grub> insmod mdraid09
grub> ls
(lvm/vg_trash0-root) (hd0) (hd0,msdos2) (hd0,msdos1) (hd1) (hd1,msdos1)
(fd0) (md/md0) (md/md0,msdos2) (md/md0,msdos1) (lvm/vg_trash0-root)

grub> rmmod mdraid09
grub> ls
(md/md0) (lvm/vg_trash0-root) (hd0) (hd0,msdos2) (hd0,msdos1) (hd1)
(hd1,msdos1) (fd0) (md/md0)

grub> insmod mdraid09
grub> ls
(md/md0) (lvm/vg_trash0-root) (hd0) (hd0,msdos2) (hd0,msdos1) (hd1)
(hd1,msdos1) (fd0) (md/md0)


             --dkg

Attachment: pgpBKFH8Ad_XQ.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]