我没有 RAID 但收到警告 mdadm.conf 没有定义阵列

Pau*_*aul 48 server mdadm 16.04

我安装了 16.04 Server,当我initramfs通过正常的软件包升级升级软件包时,我的日志中也有类似的消息和此消息。

...
Setting up initramfs-tools (0.122ubuntu8.3) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.122ubuntu8.3) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-38-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
Run Code Online (Sandbox Code Playgroud)

这是正常的,还是 Ubuntu 由于某处配置错误而希望找到 RAID?

以下是内容/etc/mdadm/mdadm.conf

# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default (built-in), scan all partitions (/proc/partitions) and all
# containers for MD superblocks. alternatively, specify devices to scan, using
# wildcards if desired.
#DEVICE partitions containers

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST <system>

# instruct the monitoring daemon where to send mail alerts
MAILADDR root

# definitions of existing MD arrays
Run Code Online (Sandbox Code Playgroud)

小智 47

错误说 W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.

我认为,只要没有显示警告ARRAY的线mdadm.conf

显而易见的解决方案是添加一个:

ARRAY <ignore> devices=/dev/sda

为我工作...

  • @Kangarooo 在这个问题的任何地方都没有报告“崩溃”问题。问题只是让警告消失。Steffen 提供了一个适当的解决方案,它告诉 mdadm 它不应该期望有任何数组,这就是警告所说的全部内容。 (3认同)
  • 有趣的是:我在类似的硬件上几乎同时安装了两个 16.04.4 实例。第一个有 /etc/mdadm/mdadm.conf 并因此给出错误;第二个甚至没有那个文件。有人想知道是什么触发了该文件的安装 - 也许它(错误地?)即使没有使用阵列控制器也存在阵列控制器? (3认同)
  • 它有什么作用?它不会显示错误?或者不会显示并且仍然会崩溃?或者它没有崩溃但只是显示错误?如果只是显示那么如果不修复崩溃,我不在乎添加一些东西。 (2认同)