![我没有 RAID,但收到警告 mdadm.conf 没有定义阵列](https://linux22.com/image/1141205/%E6%88%91%E6%B2%A1%E6%9C%89%20RAID%EF%BC%8C%E4%BD%86%E6%94%B6%E5%88%B0%E8%AD%A6%E5%91%8A%20mdadm.conf%20%E6%B2%A1%E6%9C%89%E5%AE%9A%E4%B9%89%E9%98%B5%E5%88%97.png)
我安装了 16.04 服务器,并且在我的日志中出现了类似的消息,当我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.
这是正常的吗,还是 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
答案1
错误说W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
ARRAY
我认为只要没有行就会显示警告mdadm.conf
。
显而易见的解决方案是添加一个:
ARRAY <ignore> devices=/dev/sda
对我有用......