我是否需要担心“错误:多余的 RAID 成员”?

我是否需要担心“错误:多余的 RAID 成员”?

update-grub当在新安装的 Ubuntu 12.04 上使用较旧的软件 RAID(md)运行时,我得到:

error: superfluous RAID member (5 found).
error: superfluous RAID member (5 found).
Generating grub.cfg ...
error: superfluous RAID member (5 found).
error: superfluous RAID member (5 found).
error: superfluous RAID member (5 found).
error: superfluous RAID member (5 found).
error: superfluous RAID member (5 found).
error: superfluous RAID member (5 found).
error: superfluous RAID member (5 found).
error: superfluous RAID member (5 found).
error: superfluous RAID member (5 found).
error: superfluous RAID member (5 found).
error: superfluous RAID member (5 found).
Found linux image: /boot/vmlinuz-3.2.0-24-generic
Found initrd image: /boot/initrd.img-3.2.0-24-generic
error: superfluous RAID member (5 found).
error: superfluous RAID member (5 found).
error: superfluous RAID member (5 found).
error: superfluous RAID member (5 found).
Found linux image: /boot/vmlinuz-3.2.0-23-generic
Found initrd image: /boot/initrd.img-3.2.0-23-generic
error: superfluous RAID member (5 found).
error: superfluous RAID member (5 found).
error: superfluous RAID member (5 found).
error: superfluous RAID member (5 found).
error: superfluous RAID member (5 found).
Found memtest86+ image: /boot/memtest86+.bin
error: superfluous RAID member (5 found).
error: superfluous RAID member (5 found).
error: superfluous RAID member (5 found).
error: superfluous RAID member (5 found).
error: superfluous RAID member (5 found).
Found Debian GNU/Linux (5.0.9) on /dev/sdb1
Found Debian GNU/Linux (5.0.9) on /dev/sdc1
done

如果消息中说warning: ...,我就不会那么担心,但是既然它说,error: ...我想知道问题是什么。

# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md2 : active raid1 sdc1[1] sdb1[0]
      48829440 blocks [2/2] [UU]

md3 : active raid1 sdc2[1] sdb2[0]
      263739008 blocks [2/2] [UU]

md1 : active raid5 sdg1[3] sdf1[2] sde1[1] sdh1[0] sdi1[4] sdd1[5](S)
      1250274304 blocks level 5, 64k chunk, algorithm 2 [5/5] [UUUUU]

unused devices: <none>

我是否需要担心,或者这是否无害?

顺便说一句:忽略 Debian 5.0.9 的提及,那是之前安装的系统,将被覆盖。它/dev/md2实际上是打开的。

答案1

如上所述这里经过挑剔的婆罗门参这似乎是一个漏洞使用 RAID 阵列中的备用设备运行 update-grub 脚本。如上所述这里补丁已经应用并且稍后会在 Ubuntu 上发布。

小博伊德·史蒂芬·史密斯他说他认为这个错误报告可能只是表面现象这里弗拉基米尔·“φ-coder/phcoder”·塞宾年科提交了修补这似乎只是将错误报告更改为“备件未实施”。

另外,在启动板上还有一个错误报告(#816475)以及可能解决方法这涉及到更改分区。这个错误的重要性在启动板上尚未确定,但看起来它确实给比约恩·蒂勒尼乌斯无法升级/安装 grub。看来你应该小心了。

答案2

我在 ubuntu 12.04 上升级 grub 时以及在启动 PC 时都遇到了这个错误,但这是由于我这边的配置错误造成的:

我在两个磁盘上有两个分区,并使用 RAID1 与 mdadm 配对。一个磁盘崩溃后,我更换了它并添加了一个新磁盘,但在输入添加分区的命令时(mdadm --manage /dev/md... -a /dev/sd...)我错误地添加了整个磁盘(/dev/安全数据库)而不是分区(/dev/sdb1) 作为 /dev/md1 的一部分。我移除了整个磁盘并正确添加了分区,而 /proc/mdstat 上一切正常,所以我认为我已经完成了。

然而,重新启动时,“错误:多余的 RAID 成员(发现 2 个)”短暂地出现在我的屏幕上,并且 RAID 阵列没有使用新磁盘的分区重建。

我必须将 /dev/sdb (磁盘) 的超级块清零才能mdadm --zero-superblock /dev/sdb修复它,启动和更新 grub 都会出现“错误:多余的 RAID 成员 (发现 2 个)。”。

相关内容