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

Superfluous RAID member



Hi,


I'm installing a server with raid, 2 disks of 2 TB.
There was a previous similar raid config on it. I clear parts of the
disks with dd. Then I create the partitions, make the raids (no errors), 
debootstrap. /boot on /dev/md0, / on /dev/md1 and lvm on /dev/md2.

However, by the time I'm installing grub, I get this error:

error: found two disks with the index 0 for RAID md2.
error: superfluous RAID member (2 found).
error: found two disks with the index 0 for RAID md2.
error: superfluous RAID member (2 found).
error: found two disks with the index 0 for RAID md2.
error: superfluous RAID member (2 found).
...

How is it possible if I create new raid devices, have made a new GPT
table when partitioning with gdisk, and did a dd run for the first 40 
GB's?

The way I create the arrays:

mdadm --create --verbose /dev/md0 --level=1 --metadata=0.90 --raid-
devices=2 /dev/sda2 /dev/sdb2 --assume-clean
mdadm --create --verbose /dev/md1 --level=1 --metadata=0.90 --raid-
devices=2 /dev/sda3 /dev/sdb3 --assume-clean
mdadm --create --verbose /dev/md2 --level=1 --metadata=0.90 --raid-
devices=2 /dev/sda4 /dev/sdb4 --assume-clean

I have found some info, and it said zero the superblocks.
However, if I do that on the md2 raid array, I lose my LVM partitions.

mdadm --zero-superblock /dev/sd[ab]4

$ cat /proc/mdstat

Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] 
[multipath] [faulty] 
md1 : active raid1 sdb3[1] sda3[0]
      10228672 blocks [2/2] [UU]
      
md2 : active raid1 sdb4[1] sda4[0]
      1943027712 blocks [2/2] [UU]
      
md0 : active raid1 sdb2[1] sda2[0]
      252864 blocks [2/2] [UU]
      
unused devices: <none>

Why am I getting this error? Is there a way to see if this error will
turn up before I proceed to do the rest of the installation?

It's very annoying to encounter this at then end of the install when
the mdadm --create didn't return an error or warning.


Thanks
Bene


Reply to: