On Sat, 25 Feb 2012 16:49:00 -0500, Daniel Kahn Gillmor <[email protected]> wrote: > On Thu, 23 Feb 2012 06:43:23 +0100, Vladimir 'φ-coder/phcoder' Serbinenko > <[email protected]> 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 root@trash:/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 root@trash:/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 root@trash:/home/dkg/src/grub/grub# pvs
PV VG Fmt Attr PSize PFree
/dev/md0 vg_trash0 lvm2 a-- 12.64g 9.64g
0 root@trash:/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 root@trash:/home/dkg/src/grub/grub# lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
root vg_trash0 -wi-ao 3.00g
0 root@trash:/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
pgp7TMzghOykF.pgp
Description: PGP signature
_______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
